From 12df7b54f11f70d2ef44ff0360d2067eb43e7e36 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Sun, 7 Jun 2020 19:35:28 -0400 Subject: [PATCH] Adding update entity to ensure sensors update --- config/packages/weather_alerts_nws.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/packages/weather_alerts_nws.yaml b/config/packages/weather_alerts_nws.yaml index a0e77f7..cf7aec8 100755 --- a/config/packages/weather_alerts_nws.yaml +++ b/config/packages/weather_alerts_nws.yaml @@ -47,6 +47,7 @@ sensor: sensors: flood_watch: friendly_name: 'Flood Watch' + entity_id: sensor.time value_template: >- {% if 'Flood Watch' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or 'Flood Watch' in states.sensor.nws_alerts.attributes.title.split(' - ')[1] or @@ -61,6 +62,7 @@ sensor: {% endif %} flood_warning: friendly_name: 'Flood Warning' + entity_id: sensor.time value_template: >- {% if 'Flood Warning' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or 'Flood Warning' in states.sensor.nws_alerts.attributes.title.split(' - ')[1] or @@ -75,6 +77,7 @@ sensor: {% endif %} tstorm_warning: friendly_name: 'Thunderstorm Warning' + entity_id: sensor.time value_template: >- {% if 'Thunderstorm Warning' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or 'Thunderstorm Warning' in states.sensor.nws_alerts.attributes.title.split(' - ')[1] or @@ -89,6 +92,7 @@ sensor: {% endif %} tstorm_watch: friendly_name: 'Thunderstorm Watch' + entity_id: sensor.time value_template: >- {% if 'Thunderstorm Watch' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or 'Thunderstorm Watch' in states.sensor.nws_alerts.attributes.title.split(' - ')[1] or @@ -103,6 +107,7 @@ sensor: {% endif %} tornado_watch: friendly_name: 'Tornado Watch' + entity_id: sensor.time value_template: >- {% if 'Tornado Watch' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or 'Tornado Watch' in states.sensor.nws_alerts.attributes.title.split(' - ')[1] or @@ -117,6 +122,7 @@ sensor: {% endif %} tornado_warning: friendly_name: 'Tornado Warning' + entity_id: sensor.time value_template: >- {% if 'Tornado Warning' in states.sensor.nws_alerts.attributes.title.split(' - ')[0] or 'Tornado Warning' in states.sensor.nws_alerts.attributes.title.split(' - ')[1] or