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