From 2080e10551a853006b1d33a0e62b2a67cdbe5188 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Tue, 20 Mar 2018 15:49:28 -0400 Subject: [PATCH] Testing sensors --- sensors/weather.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sensors/weather.yaml b/sensors/weather.yaml index f1e3938..440a28a 100644 --- a/sensors/weather.yaml +++ b/sensors/weather.yaml @@ -103,7 +103,7 @@ tstorm_warning: friendly_name: 'T-Storm Warning' value_template: >- - {%- if is_state("states.sensor.pws_alerts.attributes.Description", "Severe Thunderstorm Warning") %} + {%- if states.sensor.pws_alerts.attributes.Description == "Severe Thunderstorm Warning" %} active {% elif is_state("states.sensor.pws_alerts.attributes.Description_WRN", "Severe Thunderstorm Warning") %} active @@ -115,7 +115,7 @@ storm_statement: friendly_name: 'Storm Statement' value_template: >- - {%- if is_state("states.sensor.pws_alerts.attributes.Description", "Severe Weather Statement") %} + {%- if states.sensor.pws_alerts.attributes.Description == "Wind Advisory" %} active {% elif is_state("states.sensor.pws_alerts.attributes.Description_SVR", "Severe Weather Statement") %} active