mirror of
https://github.com/jdillenburg/esphome.git
synced 2026-01-08 22:40:39 -07:00
Moved wifi related settings to their own file so they can be shared with other devices.
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -11,3 +11,6 @@
|
||||
# List of files to consider for check in
|
||||
!garage-door-controller.yaml
|
||||
!TFmini.h
|
||||
!/packages/
|
||||
!/packages/wifi.yaml
|
||||
!/packages/beacon.yaml
|
||||
|
||||
@@ -5,7 +5,8 @@ esphome:
|
||||
- TFmini.h
|
||||
|
||||
packages:
|
||||
beacon: !include { file: packages/beacon.yaml, vars: { area: "Garage" }}
|
||||
beacon: !include { file: packages/beacon.yaml }
|
||||
wifi: !include { file: packages/wifi.yaml, vars: { ssid: "garage-door-controller" }}
|
||||
|
||||
substitutions:
|
||||
led_count: "60"
|
||||
@@ -27,23 +28,7 @@ api:
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: !secret garage_door_ota_password
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Garage-Door-Controller"
|
||||
password: !secret garage_door_ap_password
|
||||
|
||||
web_server:
|
||||
auth:
|
||||
username: johndillenburg
|
||||
password: !secret garage_door_ap_password
|
||||
|
||||
captive_portal:
|
||||
|
||||
globals:
|
||||
- id: sensor_counter
|
||||
type: int
|
||||
|
||||
17
packages/wifi.yaml
Normal file
17
packages/wifi.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
esphome:
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "${ssid}"
|
||||
password: !secret ap_and_web_server_password
|
||||
|
||||
web_server:
|
||||
auth:
|
||||
username: johndillenburg
|
||||
password: !secret ap_and_web_server_password
|
||||
|
||||
captive_portal:
|
||||
Reference in New Issue
Block a user