Version 3

This commit is contained in:
Jeffrey Stone
2018-07-18 13:56:30 -04:00
parent 78cc052167
commit 361375cf5c
74 changed files with 2907 additions and 0 deletions

17
scripts/wxalert_tile.yaml Executable file
View 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 }}'