From cec8d27a4a58d81f5f1a9f27c66c231171c1085c Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 24 May 2025 01:02:44 -0400 Subject: [PATCH] Improve detection of connection --- supersensor.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/supersensor.yaml b/supersensor.yaml index b8cc15a..4a17e8f 100644 --- a/supersensor.yaml +++ b/supersensor.yaml @@ -278,24 +278,26 @@ api: - 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: - switch.is_on: enable_voice_support then: - micro_wake_word.start: + - script.execute: light_off + - delay: 1s + - script.execute: light_off on_client_disconnected: - logger.log: format: "Client %s (IP %s) disconnected from API" args: ["client_info.c_str()", "client_address.c_str()"] - - light.turn_on: - id: output_led - effect: flash_white - if: condition: - switch.is_on: enable_voice_support then: - micro_wake_word.stop: + - light.turn_on: + id: output_led + effect: flash_white ota: platform: esphome