Tweaking template sensors to ensure they update
This commit is contained in:
parent
140fb40313
commit
9c2507f782
|
@ -79,6 +79,7 @@
|
||||||
clothing_forecast:
|
clothing_forecast:
|
||||||
friendly_name: "Clothing Forecast"
|
friendly_name: "Clothing Forecast"
|
||||||
unit_of_measurement: ''
|
unit_of_measurement: ''
|
||||||
|
entity_id: sensor.nws_daytime_temperature
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{%- if states('sensor.nws_daytime_temperature')|float > 63 %}
|
{%- if states('sensor.nws_daytime_temperature')|float > 63 %}
|
||||||
{%- if states('sensor.nws_daytime_temperature')|float < 80 %}
|
{%- if states('sensor.nws_daytime_temperature')|float < 80 %}
|
||||||
|
@ -101,17 +102,21 @@
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
nws_current_forecast:
|
nws_current_forecast:
|
||||||
friendly_name: 'Current Forecast'
|
friendly_name: 'Current Forecast'
|
||||||
|
entity_id: weather.klzu_daynight
|
||||||
value_template: "{{ states.weather.klzu_daynight.attributes.forecast[0].detailed_description | truncate(250, False) }}"
|
value_template: "{{ states.weather.klzu_daynight.attributes.forecast[0].detailed_description | truncate(250, False) }}"
|
||||||
nws_current_rain_forecast:
|
nws_current_rain_forecast:
|
||||||
friendly_name: 'Current Rain Chance'
|
friendly_name: 'Current Rain Chance'
|
||||||
|
entity_id: weather.klzu_daynight
|
||||||
value_template: "{{ states.weather.klzu_daynight.attributes.forecast[0].precipitation_probability }}"
|
value_template: "{{ states.weather.klzu_daynight.attributes.forecast[0].precipitation_probability }}"
|
||||||
unit_of_measurement: '%'
|
unit_of_measurement: '%'
|
||||||
nws_current_temperature:
|
nws_current_temperature:
|
||||||
friendly_name: 'Current Temperature'
|
friendly_name: 'Current Temperature'
|
||||||
|
entity_id: weather.klzu_daynight
|
||||||
value_template: "{{ states.weather.klzu_daynight.attributes.temperature }}"
|
value_template: "{{ states.weather.klzu_daynight.attributes.temperature }}"
|
||||||
device_class: temperature
|
device_class: temperature
|
||||||
nws_daytime_temperature:
|
nws_daytime_temperature:
|
||||||
friendly_name: 'Daytime Temperature'
|
friendly_name: 'Daytime Temperature'
|
||||||
|
entity_id: weather.klzu_daynight
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% if states.weather.klzu_daynight.attributes.forecast[0].daytime == True %}
|
{% if states.weather.klzu_daynight.attributes.forecast[0].daytime == True %}
|
||||||
{{ states.weather.klzu_daynight.attributes.forecast[0].temperature }}
|
{{ states.weather.klzu_daynight.attributes.forecast[0].temperature }}
|
||||||
|
@ -121,18 +126,23 @@
|
||||||
device_class: temperature
|
device_class: temperature
|
||||||
nws_current_condition:
|
nws_current_condition:
|
||||||
friendly_name: 'Current Condition'
|
friendly_name: 'Current Condition'
|
||||||
|
entity_id: weather.klzu_daynight
|
||||||
value_template: "{{ states.weather.klzu_daynight.state }}"
|
value_template: "{{ states.weather.klzu_daynight.state }}"
|
||||||
nws_current_humidity:
|
nws_current_humidity:
|
||||||
friendly_name: 'Current Humidity'
|
friendly_name: 'Current Humidity'
|
||||||
|
entity_id: weather.klzu_daynight
|
||||||
value_template: "{{ states.weather.klzu_daynight.attributes.humidity }}"
|
value_template: "{{ states.weather.klzu_daynight.attributes.humidity }}"
|
||||||
nws_current_visibility:
|
nws_current_visibility:
|
||||||
friendly_name: "Current Visability"
|
friendly_name: "Current Visability"
|
||||||
|
entity_id: weather.klzu_daynight
|
||||||
value_template: "{{ states.weather.klzu_daynight.attributes.visibility }}"
|
value_template: "{{ states.weather.klzu_daynight.attributes.visibility }}"
|
||||||
nws_current_windspeed:
|
nws_current_windspeed:
|
||||||
friendly_name: "Current Windspeed"
|
friendly_name: "Current Windspeed"
|
||||||
|
entity_id: weather.klzu_daynight
|
||||||
value_template: "{{ states.weather.klzu_daynight.attributes.wind_speed }}"
|
value_template: "{{ states.weather.klzu_daynight.attributes.wind_speed }}"
|
||||||
nws_overnight_low:
|
nws_overnight_low:
|
||||||
friendly_name: "Overnight Low"
|
friendly_name: "Overnight Low"
|
||||||
|
entity_id: weather.klzu_daynight
|
||||||
unit_of_measurement: ''
|
unit_of_measurement: ''
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% if states.weather.klzu_daynight.attributes.forecast[0].daytime == False %}
|
{% if states.weather.klzu_daynight.attributes.forecast[0].daytime == False %}
|
||||||
|
@ -142,6 +152,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
nws_overnight_forecast:
|
nws_overnight_forecast:
|
||||||
friendly_name: "Overnight Forecast"
|
friendly_name: "Overnight Forecast"
|
||||||
|
entity_id: weather.klzu_daynight
|
||||||
unit_of_measurement: ''
|
unit_of_measurement: ''
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% if states.weather.klzu_daynight.attributes.forecast[0].daytime == False %}
|
{% if states.weather.klzu_daynight.attributes.forecast[0].daytime == False %}
|
||||||
|
@ -153,6 +164,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
nws_forecast_tomorrow:
|
nws_forecast_tomorrow:
|
||||||
friendly_name: "Forecast Tomorrow"
|
friendly_name: "Forecast Tomorrow"
|
||||||
|
entity_id: weather.klzu_daynight
|
||||||
unit_of_measurement: ''
|
unit_of_measurement: ''
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{%- if states.weather.klzu_daynight.attributes.forecast[1].daytime == True %}
|
{%- if states.weather.klzu_daynight.attributes.forecast[1].daytime == True %}
|
||||||
|
@ -162,6 +174,7 @@
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
nws_forecast_rain_tomorrow:
|
nws_forecast_rain_tomorrow:
|
||||||
friendly_name: "Rain Chance Tomorrow"
|
friendly_name: "Rain Chance Tomorrow"
|
||||||
|
entity_id: weather.klzu_daynight
|
||||||
unit_of_measurement: '%'
|
unit_of_measurement: '%'
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{%- if states.weather.klzu_daynight.attributes.forecast[1].daytime == True %}
|
{%- if states.weather.klzu_daynight.attributes.forecast[1].daytime == True %}
|
||||||
|
@ -171,6 +184,7 @@
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
nws_forecast_tomorrow_night:
|
nws_forecast_tomorrow_night:
|
||||||
friendly_name: "Forecast Tomorrow Night"
|
friendly_name: "Forecast Tomorrow Night"
|
||||||
|
entity_id: weather.klzu_daynight
|
||||||
unit_of_measurement: ''
|
unit_of_measurement: ''
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{%- if states.weather.klzu_daynight.attributes.forecast[1].daytime == True %}
|
{%- if states.weather.klzu_daynight.attributes.forecast[1].daytime == True %}
|
||||||
|
@ -180,6 +194,7 @@
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
nws_forecast_rain_tomorrow_night:
|
nws_forecast_rain_tomorrow_night:
|
||||||
friendly_name: "Rain Chance Tomorrow Night"
|
friendly_name: "Rain Chance Tomorrow Night"
|
||||||
|
entity_id: weather.klzu_daynight
|
||||||
unit_of_measurement: '%'
|
unit_of_measurement: '%'
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{%- if states.weather.klzu_daynight.attributes.forecast[1].daytime == True %}
|
{%- if states.weather.klzu_daynight.attributes.forecast[1].daytime == True %}
|
||||||
|
@ -189,9 +204,7 @@
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
current_inside_humidity:
|
current_inside_humidity:
|
||||||
friendly_name: "Current Inside Humidity"
|
friendly_name: "Current Inside Humidity"
|
||||||
|
entity_id: climate.home
|
||||||
unit_of_measurement: '%'
|
unit_of_measurement: '%'
|
||||||
value_template: "{{ states.climate.home.attributes.current_humidity }}"
|
value_template: "{{ states.climate.home.attributes.current_humidity }}"
|
||||||
# lightning_strike_count:
|
|
||||||
# friendly_name: 'Lightning Strike Count'
|
|
||||||
# value_template: >
|
|
||||||
# {{ states.geo_location|selectattr('attributes.source','eq','wwlln') and states.geo_location|selectattr('state','lessthan','15')|list|count }}
|
|
Loading…
Reference in New Issue