mirror of
https://github.com/jdillenburg/esphome.git
synced 2026-03-18 20:29:14 -06: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
|
# List of files to consider for check in
|
||||||
!garage-door-controller.yaml
|
!garage-door-controller.yaml
|
||||||
!TFmini.h
|
!TFmini.h
|
||||||
|
!/packages/
|
||||||
|
!/packages/wifi.yaml
|
||||||
|
!/packages/beacon.yaml
|
||||||
|
|||||||
@@ -5,7 +5,8 @@ esphome:
|
|||||||
- TFmini.h
|
- TFmini.h
|
||||||
|
|
||||||
packages:
|
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:
|
substitutions:
|
||||||
led_count: "60"
|
led_count: "60"
|
||||||
@@ -28,22 +29,6 @@ ota:
|
|||||||
- platform: esphome
|
- platform: esphome
|
||||||
password: !secret garage_door_ota_password
|
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:
|
globals:
|
||||||
- id: sensor_counter
|
- id: sensor_counter
|
||||||
type: int
|
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