From 698a0837517b3c86c8371c1f27d35b08bd52e495 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 12 Jul 2024 02:40:20 -0400 Subject: [PATCH] Improve error detection --- supersensor.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/supersensor.yaml b/supersensor.yaml index 7ca45c9..a39e00d 100644 --- a/supersensor.yaml +++ b/supersensor.yaml @@ -280,7 +280,7 @@ interval: condition: and: - switch.is_on: voice_support_active - - not: voice_assistant.is_running + - not: voice_assistant.connected then: - logger.log: "voice assistant not running; restarting" - voice_assistant.start_continuous: @@ -317,16 +317,13 @@ voice_assistant: switch.is_on: voice_support_active then: - voice_assistant.stop: - - delay: 1s - voice_assistant.start_continuous: on_end: - logger.log: "voice ended" on_client_connected: - if: condition: - and: - - switch.is_on: voice_support_active - - not: voice_assistant.is_running + switch.is_on: voice_support_active then: - voice_assistant.start_continuous: - light.turn_off: