From 1cbbf00528c5d76db59aa598a2c0b6396463f143 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 6 Sep 2022 17:37:05 -0400 Subject: [PATCH] Rain window alert will now ALWAYS text notify, but only TTS if home --- packages/weatheralerts.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/weatheralerts.yaml b/packages/weatheralerts.yaml index 2f7f75c..4ddb810 100644 --- a/packages/weatheralerts.yaml +++ b/packages/weatheralerts.yaml @@ -1543,9 +1543,6 @@ automation: entity_id: binary_sensor.precipitation to: 'on' condition: - - condition: state - entity_id: binary_sensor.people_present - state: 'on' - condition: state entity_id: binary_sensor.windows state: 'on' @@ -1554,10 +1551,15 @@ automation: data: title: "WINDOWS ARE OPEN!" message: "It is raining and there are windows open in the house. Please close them!" - - service: script.speech_engine - data: - who: everywhere - message: "It is raining and there are windows open in the house. Please close them!" + - if: + - condition: state + entity_id: binary_sensor.people_present + state: 'on' + then: + - service: script.speech_engine + data: + who: everywhere + message: "It is raining and there are windows open in the house. Please close them!"