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:
sequence:
- service: media_player.stop_media
- service: media_player.media_stop
data:
entity_id: media_player.living_room_tv

View File

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