OpenWeatherMap forecast values as entities?

Hello in order to get a weather forecast on my nextion display with esp-home i want to get the forecast values in Homeassistant.

Out of the box with the OpenWeatherMap integration there are coming values like: sensor.openweathermap_forecast_temperature
But this seams to be only the forecast for the current day or next 24h

Want i need are forecast for the next 5 days like:
sensor.openweathermap_forecast_temperature_monday
But how is the best way to get forecast values in HomeAssistat as entities?

I think this can be handled with an api call to openweathermap. But how do i integrate this in Homeasstant?

Probably you can give me some hints in which direction i should go and where i can set this up in HA.

Many thanks in advance

Best

Isn’t the forecast in the weather entity?

You should be able to get it with template sensors:

sensor:
  - platform: template
    sensors:
      forecast_1:
        value_template: {{ state_attr('weather.xxx', 'forecast')[1].temperature }}
3 Likes

Hi many thanks yes there is a forecast entity but not one for each day.
May i just ask the question where i should add the sensor ? In the config.yaml?

Many thanks in advance for your help
Thanks

Yes in your configuration under the sensor “tag”

Documentation for template sensor is here:

1 Like

Hm. What is “weather.xxx”?

Isn’t the name of it sensor.openweather”?