This commit is contained in:
neri 2024-03-02 03:10:59 +01:00
parent 3ba74732f6
commit b64ef0e21f
1 changed files with 13 additions and 13 deletions

View File

@ -15,19 +15,19 @@ esphome:
name: mlock-${name_of_board}
platform: ESP8266
board: d1_mini
on_boot:
- priority: -100
then:
- if: # return LED to switch state before
condition:
switch.is_on: mlock_${name_of_board}_switch
then:
- light.addressable_set: { id: status_led, red: 0%, green: 100%, blue: 0% }
else:
- light.addressable_set: { id: status_led, red: 100%, green: 0%, blue: 0% }
- priority: 600
then:
- light.addressable_set: { id: status_led, red: 0%, green: 0%, blue: 50% }
# on_boot:
# - priority: -100
# then:
# - if: # return LED to switch state before
# condition:
# switch.is_on: mlock_${name_of_board}_switch
# then:
# - light.addressable_set: { id: status_led, red: 0%, green: 100%, blue: 0% }
# else:
# - light.addressable_set: { id: status_led, red: 100%, green: 0%, blue: 0% }
# - priority: 600
# then:
# - light.addressable_set: { id: status_led, red: 0%, green: 0%, blue: 50% }
# Enable logging
logger: