From 8bad9e2524f8af471edb7ab6e7bdd6be8b1a9fe7 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 22 Sep 2025 01:39:34 -0400 Subject: [PATCH] Alter startup sequence and remove dead code --- supersensor.yaml | 45 +++++++++++---------------------------------- 1 file changed, 11 insertions(+), 34 deletions(-) diff --git a/supersensor.yaml b/supersensor.yaml index 1b865cd..96f6d5c 100644 --- a/supersensor.yaml +++ b/supersensor.yaml @@ -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