Hi,
I managed it to read the current temperature of weather.home:
{{ state_attr('weather.home', 'temperature') }}
Is it also possible to read the forecast temperature of the current day to use it in automations?
Thanks
Martin
Hi,
I managed it to read the current temperature of weather.home:
{{ state_attr('weather.home', 'temperature') }}
Is it also possible to read the forecast temperature of the current day to use it in automations?
Thanks
Martin
{{ state_attr('weather.home', 'forecast').temperature }}
I tend to:
{{ state_attr('weather.home', 'forecast')[0].temperature }}
I always forget the [0].
Thanks a lot at both of you!
Wonder if someone here can help
I was using this in a Node Red flow for some time and in the recent past (not sure when) it has broken
Using data.attributes.forecast.0.templow
But that no longer exists in the full output
I notice that even in automations this isnβt accessible either, but it does still show on the weather card, so the data is somewhere
Can anyone advise how I can grab this value now?
You have to use a service to get the forecast:
service: weather.get_forecasts
data:
type: daily
target:
entity_id: weather.home
response_variable: my_weather
And than you can use this:
{{my_weather['weather.home'].forecast[2].condition}}
Look at the develop page to find all attributes.