diff --git a/automation/weather.yaml b/automation/weather.yaml index e188cdf..0160905 100644 --- a/automation/weather.yaml +++ b/automation/weather.yaml @@ -71,4 +71,20 @@ - platform: state entity_id: sensor.pws_alerts action: - - service: script.wxalert_tile \ No newline at end of file + - 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 diff --git a/input_boolean.yaml b/input_boolean.yaml index 6d7ca4a..6ec1717 100644 --- a/input_boolean.yaml +++ b/input_boolean.yaml @@ -80,4 +80,7 @@ jeff_traffic_alerts: icon: mdi:bell-plus jeff_traffic_alert_home: name: Jeff Traffic Alert Home - icon: mdi:traffic-light \ No newline at end of file + icon: mdi:traffic-light +tornado_watch: + name: Tornado Watch + icon: mdi:message-alert \ No newline at end of file