Skip to content
Snippets Groups Projects
Commit f2c417cb authored by Jan Grewe's avatar Jan Grewe
Browse files

fix power plugs not saving switch state

parent 37d05dd5
Branches
No related tags found
No related merge requests found
Pipeline #991 passed
......@@ -4,6 +4,7 @@ substitutions:
esp8266:
board: esp8285
restore_from_flash: true
light:
- platform: status_led
......@@ -13,7 +14,6 @@ light:
inverted: true
binary_sensor:
# toggle relay on/off
- platform: gpio
id: button_state
pin:
......@@ -25,8 +25,8 @@ binary_sensor:
switch:
- platform: template
name: "Power"
optimistic: true
id: power
restore_mode: RESTORE_DEFAULT_OFF
lambda: |-
if (id(relay).state) {
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment