Tweaking weather Alerts

This commit is contained in:
Jeffrey Stone 2018-03-19 21:54:49 -04:00
parent 2061ec38fb
commit 7d49309371

View File

@ -73,18 +73,18 @@
action:
- service: script.wxalert_tile
alias: "Weather Watch Tornado"
trigger:
- platform: numeric_state
entity_id: sensor.pws_alerts
above: 1
condition:
condition: or
conditions:
- condition: template
value_template: '{{ states.sensor.pws_alerts.attributes.Description == "Tornado Watch" }}'
- condition: template
value_template: '{{ states.sensor.pws_alerts.attributes.Description_TOW == "Tornado Watch" }}'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.tornado_watch
- alias: "Weather Watch Tornado"
trigger:
- platform: numeric_state
entity_id: sensor.pws_alerts
above: 1
condition:
condition: or
conditions:
- condition: template
value_template: '{{ states.sensor.pws_alerts.attributes.Description == "Tornado Watch" }}'
- condition: template
value_template: '{{ states.sensor.pws_alerts.attributes.Description_TOW == "Tornado Watch" }}'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.tornado_watch