From 3324c3aa859d475105e14a633befe12582204b1b Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 22 Nov 2023 21:54:20 -0500 Subject: [PATCH] Fix bad ordering on error --- supersensor.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/supersensor.yaml b/supersensor.yaml index 53229f1..03d7883 100644 --- a/supersensor.yaml +++ b/supersensor.yaml @@ -52,6 +52,10 @@ esphome: - delay: 2s - switch.turn_on: use_wake_word - delay: 2s + - switch.turn_off: use_wake_word + - delay: 2s + - switch.turn_on: use_wake_word + - delay: 2s - light.turn_off: id: output_led @@ -139,8 +143,9 @@ voice_assistant: id: assist on_error: - logger.log: "Voice Assistant encountered an error; restarting it" - - switch.turn_on: use_wake_word - switch.turn_off: use_wake_word + - delay: 1s + - switch.turn_on: use_wake_word on_wake_word_detected: - light.turn_off: id: output_led