Moved wifi related settings to their own file so they can be shared with other devices.

This commit is contained in:
John Dillenburg
2024-12-05 18:59:15 -06:00
parent 9c6cafcfdf
commit 28a155901f
3 changed files with 22 additions and 17 deletions

3
.gitignore vendored
View File

@@ -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

View File

@@ -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
View 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: