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

View File

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