From 7d49309371949a5d44885214be8cbd40343c90df Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Mon, 19 Mar 2018 21:54:49 -0400 Subject: [PATCH] Tweaking weather Alerts --- automation/weather.yaml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/automation/weather.yaml b/automation/weather.yaml index 0160905..7d60c5a 100644 --- a/automation/weather.yaml +++ b/automation/weather.yaml @@ -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 \ No newline at end of file +- 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 \ No newline at end of file