From 012fea69475924f01e2af8aed590a9f2cc133201 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 12 Jul 2024 02:52:09 -0400 Subject: [PATCH] Revert "Further adjust VA restarting" This reverts commit 0e142fa8dde9ca0fbd9114844ae7156380ba4981. --- supersensor.yaml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/supersensor.yaml b/supersensor.yaml index 9ff1919..6618512 100644 --- a/supersensor.yaml +++ b/supersensor.yaml @@ -279,7 +279,7 @@ interval: - if: condition: and: - - switch.is_on: enable_voice_support + - switch.is_on: voice_support_active - not: voice_assistant.connected then: - logger.log: "voice assistant not running; restarting" @@ -313,14 +313,28 @@ voice_assistant: id: assist on_error: - logger.log: "voice error" - - voice_assistant.stop: - - voice_assistant.start_continuous: + - if: + condition: + switch.is_on: voice_support_active + then: + - voice_assistant.stop: + - voice_assistant.start_continuous: on_end: - logger.log: "voice ended" on_client_connected: + - if: + condition: + switch.is_on: voice_support_active + then: + - voice_assistant.start_continuous: - light.turn_off: id: output_led on_client_disconnected: + - if: + condition: + switch.is_on: voice_support_active + then: + - voice_assistant.stop: - light.turn_on: id: output_led effect: flash_white