From 9555fd37dce53c0e8a68bc6038d2ed2485dd3e6c Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 24 May 2025 01:19:41 -0400 Subject: [PATCH] Fix negation condition --- supersensor.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/supersensor.yaml b/supersensor.yaml index 3f2cd03..9b6c90e 100644 --- a/supersensor.yaml +++ b/supersensor.yaml @@ -279,7 +279,9 @@ interval: - if: condition: - switch.is_on: enable_voice_support - - !micro_wake_word.is_running + - not: + condition: + micro_wake_word.is_running: then: - micro_wake_word.start: - script.execute: light_off @@ -306,7 +308,9 @@ api: - if: condition: - switch.is_on: enable_voice_support - - !micro_wake_word.is_running + - not: + condition: + micro_wake_word.is_running: then: - micro_wake_word.start: - script.execute: light_off