From 62343590e4db694db202980934ea839803830f95 Mon Sep 17 00:00:00 2001 From: finity69x2 <32221243+finity69x2@users.noreply.github.com> Date: Sat, 7 Sep 2024 09:31:02 -0400 Subject: [PATCH] Update nws_alerts_package_new_version.yaml --- packages/nws_alerts_package_new_version.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/nws_alerts_package_new_version.yaml b/packages/nws_alerts_package_new_version.yaml index 45c9770..570f680 100644 --- a/packages/nws_alerts_package_new_version.yaml +++ b/packages/nws_alerts_package_new_version.yaml @@ -136,6 +136,17 @@ automation: ################################# SCRIPT ################################### script: + nws_alerts_persistent_notification: + alias: NWS Alerts Persistent Notifications + sequence: + - service: > + {% if states('sensor.nws_alerts') != '0' %} + persistent_notification.create + {% endif %} + data: + notification_id: "{{ notification_id }}" + message: "{{ message }}" + title: '{{ title }}' nws_alerts_announce_tornado_warning: alias: NWS Alerts Announce Tornado Warning