Alter startup sequence and remove dead code
This commit is contained in:
@@ -31,19 +31,22 @@ esphome:
|
||||
on_boot:
|
||||
- priority: 600
|
||||
then:
|
||||
- light.turn_on:
|
||||
id: output_led
|
||||
- delay: 0.25s
|
||||
- light.turn_off:
|
||||
id: output_led
|
||||
- delay: 0.25s
|
||||
- light.turn_on:
|
||||
id: output_led
|
||||
- delay: 0.25s
|
||||
- light.turn_off:
|
||||
id: output_led
|
||||
- lambda: |-
|
||||
id(supersensor_occupancy).publish_state(false);
|
||||
id(pir_presence).publish_state(false);
|
||||
id(light_presence).publish_state(false);
|
||||
id(radar_presence).publish_state(false);
|
||||
- priority: 100
|
||||
then:
|
||||
- light.turn_on:
|
||||
id: output_led
|
||||
effect: flash_white
|
||||
- delay: 2s
|
||||
- light.turn_off:
|
||||
id: output_led
|
||||
- priority: -100
|
||||
then:
|
||||
- if:
|
||||
@@ -302,32 +305,6 @@ logger:
|
||||
|
||||
api:
|
||||
reboot_timeout: 15min
|
||||
# on_client_connected:
|
||||
# - logger.log:
|
||||
# format: "Client %s (IP %s) connected to API"
|
||||
# args: ["client_info.c_str()", "client_address.c_str()"]
|
||||
# - script.execute: light_off
|
||||
# - if:
|
||||
# condition:
|
||||
# lambda: |-
|
||||
# return id(enable_voice_support).state &&
|
||||
# !id(mww).is_running();
|
||||
# then:
|
||||
# - micro_wake_word.start:
|
||||
# on_client_disconnected:
|
||||
# - logger.log:
|
||||
# format: "Client %s (IP %s) disconnected from API"
|
||||
# args: ["client_info.c_str()", "client_address.c_str()"]
|
||||
# - if:
|
||||
# condition:
|
||||
# lambda: |-
|
||||
# return id(enable_voice_support).state &&
|
||||
# id(mww).is_running();
|
||||
# then:
|
||||
# - micro_wake_word.stop:
|
||||
# - light.turn_on:
|
||||
# id: output_led
|
||||
# effect: flash_white
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
Reference in New Issue
Block a user