Hi everybody, as I’ve only copied the codes, I’m too stupid to adjust it, as the weather forecast has changed with 2024.3.
I used this sensor for the average temperature for the next 24 hours. If it updates once before sunset, it would be a dream:
{{ state_attr('weather.openweathermap', 'forecast')[:8]
| map(attribute='temperature') | average | round(1) }}
And second I use this sensor to decide, whether my shutters should go in “summer mode” so they are closed aligned to the sun. If this updates at sunrise, would be fantastic:
{{ (state_attr('weather.openweathermap', 'forecast')|selectattr('datetime', 'lt', (now().replace(hour=23,minute=59)).isoformat()))| map(attribute='temperature') | list | max }}