mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-20 12:46:45 +00:00
This is the current config. Moved old to the v1-config branch
This commit is contained in:
17
scripts/wxalert_tile.yaml
Normal file
17
scripts/wxalert_tile.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
wxalert_tile:
|
||||
sequence:
|
||||
## Dismiss any current alert so the UI isn't filled
|
||||
## up with these if there are more then one.
|
||||
## Only show the latest alert
|
||||
- service: persistent_notification.dismiss
|
||||
data:
|
||||
notification_id: "wxalert"
|
||||
## Create a new persistant notification in the UI for a new alert
|
||||
- service_template: >
|
||||
{% if states.sensor.pws_alerts.attributes.Message %}
|
||||
persistent_notification.create
|
||||
{% endif %}
|
||||
data_template:
|
||||
notification_id: "wxalert"
|
||||
message: '{{ states.sensor.pws_alerts.attributes.Message }}'
|
||||
title: '{{ states.sensor.pws_alerts.attributes.Description }}'
|
Reference in New Issue
Block a user