Hello, I wanted to make my blinds close when it becomes too hot using the sensor.openweathermap_forecast_temperature
entity. I notice that it has about the same value as the current temperature. It is now 11:00 AM and the Developer Tool Template gives me
{{ states.sensor.openweathermap_forecast_temperature.state }}
returns 17.68
{{ states.sensor.openweathermap_temperature.state }}
returns 17.73
but when I try to find the max temperature in the coming 12 hours myself, it returns 24.8
{{ max(state_attr('weather.openweathermap','forecast')[1]['temperature'],
state_attr('weather.openweathermap','forecast')[2]['temperature'],
state_attr('weather.openweathermap','forecast')[3]['temperature'],
state_attr('weather.openweathermap','forecast')[4]['temperature'],
state_attr('weather.openweathermap','forecast')[5]['temperature'],
state_attr('weather.openweathermap','forecast')[6]['temperature'],
state_attr('weather.openweathermap','forecast')[7]['temperature'],
state_attr('weather.openweathermap','forecast')[8]['temperature'],
state_attr('weather.openweathermap','forecast')[9]['temperature'],
state_attr('weather.openweathermap','forecast')[10]['temperature'],
state_attr('weather.openweathermap','forecast')[11]['temperature'],
state_attr('weather.openweathermap','forecast')[12]['temperature'],
state_attr('weather.openweathermap','forecast')[13]['temperature'],
state_attr('weather.openweathermap','forecast')[14]['temperature'])
}}
Do I really have to make my own sensor? am I doing something wrong? is there something wrong with OpenWeatherMaps?
Thank you