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