no init
This commit is contained in:
parent
3ba74732f6
commit
b64ef0e21f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue