How to get daily max / min forecast as sensor data

I’m looking to get daily max and min temperature data from the default weather app to use as a sensor variable in ESPhome. I currently have a helper configured for getting the current temperature: {{ state_attr(‘weather.forecast_home’, ‘temperature’) }}
but I’m struggling to figure out how to do the same for forecasted daily temps.

you’d need to create a template sensor that pulls the forecast using weather.get_forecasts.

here’s a sample on how to do that: Weather - Home Assistant