Need to truncate forecast sensor is over 255...
This commit is contained in:
parent
144e15a2f0
commit
2e60a037a4
|
@ -101,7 +101,7 @@
|
|||
{%- endif %}
|
||||
nws_current_forecast:
|
||||
friendly_name: 'Current Forecast'
|
||||
value_template: "{{ states.weather.klzu.attributes.forecast[0].detailed_description }}"
|
||||
value_template: "{{ states.weather.klzu.attributes.forecast[0].detailed_description | truncate(250, False) }}"
|
||||
nws_current_rain_forecast:
|
||||
friendly_name: 'Current Rain Chance'
|
||||
value_template: "{{ states.weather.klzu.attributes.forecast[0].precipitation_probability }}"
|
||||
|
@ -145,20 +145,20 @@
|
|||
unit_of_measurement: ''
|
||||
value_template: >-
|
||||
{% if states.weather.klzu.attributes.forecast[0].daytime == False %}
|
||||
{{ states.weather.klzu.attributes.forecast[0].detailed_description }}
|
||||
{{ states.weather.klzu.attributes.forecast[0].detailed_description | truncate(250, False) }}
|
||||
{% elif states.weather.klzu.attributes.forecast[1].daytime == False %}
|
||||
{{ states.weather.klzu.attributes.forecast[1].detailed_description }}
|
||||
{{ states.weather.klzu.attributes.forecast[1].detailed_description | truncate(250, False) }}
|
||||
{% elif states.weather.klzu.attributes.forecast[2].daytime == False %}
|
||||
{{ states.weather.klzu.attributes.forecast[2].detailed_description }}
|
||||
{{ states.weather.klzu.attributes.forecast[2].detailed_description | truncate(250, False) }}
|
||||
{% endif %}
|
||||
nws_forecast_tomorrow:
|
||||
friendly_name: "Forecast Tomorrow"
|
||||
unit_of_measurement: ''
|
||||
value_template: >-
|
||||
{%- if states.weather.klzu.attributes.forecast[1].daytime == True %}
|
||||
{{ states.weather.klzu.attributes.forecast[1].detailed_description }}
|
||||
{{ states.weather.klzu.attributes.forecast[1].detailed_description | truncate(250, False) }}
|
||||
{% elif states.weather.klzu.attributes.forecast[2].daytime == True %}
|
||||
{{ states.weather.klzu.attributes.forecast[2].detailed_description }}
|
||||
{{ states.weather.klzu.attributes.forecast[2].detailed_description | truncate(250, False) }}
|
||||
{%- endif %}
|
||||
nws_forecast_rain_tomorrow:
|
||||
friendly_name: "Rain Chance Tomorrow"
|
||||
|
@ -174,9 +174,9 @@
|
|||
unit_of_measurement: ''
|
||||
value_template: >-
|
||||
{%- if states.weather.klzu.attributes.forecast[1].daytime == True %}
|
||||
{{ states.weather.klzu.attributes.forecast[2].detailed_description }}
|
||||
{{ states.weather.klzu.attributes.forecast[2].detailed_description | truncate(250, False) }}
|
||||
{% elif states.weather.klzu.attributes.forecast[2].daytime == True %}
|
||||
{{ states.weather.klzu.attributes.forecast[3].detailed_description }}
|
||||
{{ states.weather.klzu.attributes.forecast[3].detailed_description | truncate(250, False) }}
|
||||
{%- endif %}
|
||||
nws_forecast_rain_tomorrow_night:
|
||||
friendly_name: "Rain Chance Tomorrow Night"
|
||||
|
|
Loading…
Reference in New Issue