I have a helper that I use to determine if I need to shut the shades on hot days.
I’ve read that get_forecast has been replaced by get_forecasts, but all the examples of using get_forecasts I can find are service calls…
{{
state_attr('weather.openweathermap', 'forecast') |
selectattr('datetime', '>=', utcnow().isoformat()) |
selectattr('datetime', '<=', (utcnow() + timedelta(days=1)).isoformat()) |
map(attribute='temperature') | list |max
}}
How can I write a helper or template to call get_forecasts using openweathermap?
Am I correct in assuming that this mechanism to scan the forecast is being deprecated?
My attempts to RTFM have not enlightened me.
Thanks in advance