From e963a95f363d4a5a688d03a5b97d7e09fd2edabf Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 6 Jun 2022 00:36:50 -0400 Subject: [PATCH] Changed the way status_annc is called for lightning alerts --- packages/weatheralerts.yaml | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/packages/weatheralerts.yaml b/packages/weatheralerts.yaml index c131255..a58cbc1 100644 --- a/packages/weatheralerts.yaml +++ b/packages/weatheralerts.yaml @@ -1555,15 +1555,7 @@ script: data_template: who: 'living_room' call_interuption: 1 - speech_message: >- -

- {{ [ - 'I have detected lightning withing 20 miles of the house.', - 'Did you see that flash? I did. Lightning is near.', - 'If you didnt hear the thunder you will soon. ' - ]|random }} - If anyone is outside they should seek shelter inside. -

+ call_lightning_alert: 1 lightning_clear_audible: sequence: @@ -1574,15 +1566,7 @@ script: data_template: who: 'living_room' call_interuption: 1 - speech_message: >- -

- {{ [ - 'Lightning threat appears to be over.', - 'No more lightning appears to be occurring.', - 'Lightning is gone.' - ]|random }} - It is safe to resume normal activities. -

+ call_lightning_clear: 1 ## Script creates UI notification and is called via automation defined above weatheralerts_popup_on_wx_alert: