Weather alerts for the win

This commit is contained in:
Jeffrey Stone 2018-03-20 15:54:15 -04:00
parent 2080e10551
commit 7c83a2059f
2 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
chromecast_media_stop: chromecast_media_stop:
sequence: sequence:
- service: media_player.stop_media - service: media_player.media_stop
data: data:
entity_id: media_player.living_room_tv entity_id: media_player.living_room_tv

View File

@ -79,9 +79,9 @@
tornado_warning: tornado_warning:
friendly_name: 'Tornado Warning' friendly_name: 'Tornado Warning'
value_template: >- value_template: >-
{%- if is_state("states.sensor.pws_alerts.attributes.Description", "Tornado Warning") %} {%- if states.sensor.pws_alerts.attributes.Description == "Tornado Warning" %}
active active
{% elif is_state("states.sensor.pws_alerts.attributes.Description_TOR", "Tornado Warning") %} {% elif states.sensor.pws_alerts.attributes.Description_TOR == "Tornado Warning" %}
active active
{% else %} {% else %}
inactive inactive
@ -91,9 +91,9 @@
tornado_watch: tornado_watch:
friendly_name: 'Tornado Watch' friendly_name: 'Tornado Watch'
value_template: >- value_template: >-
{%- if is_state("states.sensor.pws_alerts.attributes.Description", "Tornado Watch") %} {%- if states.sensor.pws_alerts.attributes.Description == "Tornado Watch" %}
active active
{% elif is_state("states.sensor.pws_alerts.attributes.Description_TOW", "Tornado Watch") %} {% elif states.sensor.pws_alerts.attributes.Description_TOW == "Tornado Watch" %}
active active
{% else %} {% else %}
inactive inactive
@ -105,7 +105,7 @@
value_template: >- value_template: >-
{%- if states.sensor.pws_alerts.attributes.Description == "Severe Thunderstorm Warning" %} {%- if states.sensor.pws_alerts.attributes.Description == "Severe Thunderstorm Warning" %}
active active
{% elif is_state("states.sensor.pws_alerts.attributes.Description_WRN", "Severe Thunderstorm Warning") %} {% elif states.sensor.pws_alerts.attributes.Description_WRN == "Severe Thunderstorm Warning" %}
active active
{% else %} {% else %}
inactive inactive
@ -115,9 +115,9 @@
storm_statement: storm_statement:
friendly_name: 'Storm Statement' friendly_name: 'Storm Statement'
value_template: >- value_template: >-
{%- if states.sensor.pws_alerts.attributes.Description == "Wind Advisory" %} {%- if states.sensor.pws_alerts.attributes.Description == "Severe Weather Statement" %}
active active
{% elif is_state("states.sensor.pws_alerts.attributes.Description_SVR", "Severe Weather Statement") %} {% elif states.sensor.pws_alerts.attributes.Description_SVR == "Severe Weather Statement" %}
active active
{% else %} {% else %}
inactive inactive