Split to device and global
This commit is contained in:
parent
3142f5b672
commit
47ee9a381f
2 changed files with 43 additions and 44 deletions
|
|
@ -1,38 +1,6 @@
|
||||||
esphome:
|
|
||||||
name: ${devicename}
|
|
||||||
|
|
||||||
esp8266:
|
esp8266:
|
||||||
board: esp01_1m
|
board: esp01_1m
|
||||||
|
|
||||||
wifi:
|
|
||||||
ssid: ${ssid}
|
|
||||||
password: ${wifipass}
|
|
||||||
fast_connect: on
|
|
||||||
domain: .phiax.nl
|
|
||||||
min_auth_mode: WPA2
|
|
||||||
ap:
|
|
||||||
ssid: "${friendly_devicename} Hotspot"
|
|
||||||
password: ${hotspotpass}
|
|
||||||
|
|
||||||
captive_portal:
|
|
||||||
|
|
||||||
api:
|
|
||||||
encryption:
|
|
||||||
key: ${apikey}
|
|
||||||
on_client_connected:
|
|
||||||
then:
|
|
||||||
- light.turn_on: blue_led_light
|
|
||||||
on_client_disconnected:
|
|
||||||
then:
|
|
||||||
- light.turn_off: blue_led_light
|
|
||||||
|
|
||||||
ota:
|
|
||||||
- platform: esphome
|
|
||||||
password: ${otapass}
|
|
||||||
|
|
||||||
web_server:
|
|
||||||
port: 80
|
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
pin:
|
pin:
|
||||||
|
|
@ -43,11 +11,6 @@ binary_sensor:
|
||||||
on_press:
|
on_press:
|
||||||
- light.toggle: light_switch
|
- light.toggle: light_switch
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: wifi_signal
|
|
||||||
name: "${devicename} WiFi Signal"
|
|
||||||
update_interval: 300s
|
|
||||||
|
|
||||||
output:
|
output:
|
||||||
- platform: esp8266_pwm
|
- platform: esp8266_pwm
|
||||||
id: blue_led
|
id: blue_led
|
||||||
|
|
@ -66,9 +29,3 @@ light:
|
||||||
name: "${friendly_devicename} Licht"
|
name: "${friendly_devicename} Licht"
|
||||||
output: relay
|
output: relay
|
||||||
id: light_switch
|
id: light_switch
|
||||||
|
|
||||||
switch:
|
|
||||||
- platform: restart
|
|
||||||
name: "${friendly_devicename} Restart"
|
|
||||||
|
|
||||||
logger:
|
|
||||||
42
esphome/esphome-base.yaml
Normal file
42
esphome/esphome-base.yaml
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
esphome:
|
||||||
|
name: ${devicename}
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: ${ssid}
|
||||||
|
password: ${wifipass}
|
||||||
|
fast_connect: on
|
||||||
|
domain: .phiax.nl
|
||||||
|
min_auth_mode: WPA2
|
||||||
|
ap:
|
||||||
|
ssid: "${friendly_devicename} Hotspot"
|
||||||
|
password: ${hotspotpass}
|
||||||
|
|
||||||
|
captive_portal:
|
||||||
|
|
||||||
|
api:
|
||||||
|
encryption:
|
||||||
|
key: ${apikey}
|
||||||
|
on_client_connected:
|
||||||
|
then:
|
||||||
|
- light.turn_on: blue_led_light
|
||||||
|
on_client_disconnected:
|
||||||
|
then:
|
||||||
|
- light.turn_off: blue_led_light
|
||||||
|
|
||||||
|
ota:
|
||||||
|
- platform: esphome
|
||||||
|
password: ${otapass}
|
||||||
|
|
||||||
|
web_server:
|
||||||
|
port: 80
|
||||||
|
|
||||||
|
logger:
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: wifi_signal
|
||||||
|
name: "${devicename} WiFi Signal"
|
||||||
|
update_interval: 300s
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: restart
|
||||||
|
name: "${friendly_devicename} Restart"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue