diff --git a/config/sensors/weather.yaml b/config/sensors/weather.yaml index 55af982..2dd9f8f 100755 --- a/config/sensors/weather.yaml +++ b/config/sensors/weather.yaml @@ -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"