Reading forecast of weather.home

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?
Bildschirmfoto 2020-04-21 um 17.55.24

Thanks
Martin

Hi, I have the same question :slight_smile:
Thanks Christian

{{ state_attr('weather.home', 'forecast').temperature }}

I tend to:

{{ state_attr('weather.home', 'forecast')[0].temperature }}

:slightly_smiling_face:

1 Like

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
image

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.