I’d like to setup an automation that will give me the day’s forecasted min and max temperatures, but I’m having trouble finding an entity to use.
I’ve currently got the Google Weather integration working and when I go into the integration and click on the Home sensor it will give me a very thorough forecast that has min/max daily, twice daily and hourly. This is exactly what I’m looking to use, but I can only find a singular temperature entity. Any idea how to reference these min/max values?
I think the standard is that the high and low forecast temp are in forecast[0]. So the forecast high is in forecast[0].temperature and the forecast low is in forecast[0].templow.
That may vary a bit depending on your weather provider though. Those are the names I have for my Apple Weatherkit integration.
If you go into the actions area of the developer tools, you can call the weather.get_forecasts action (make sure to add a target and pick which forecast type), you’ll get the raw forecast data. That should tell you the names of the things.
I ran the weather.get_forecasts action and it did give me information back, but the forecast doesn’t appear to be part of the data returned. I’m using Google’s weather service, I was trying to avoid paying Apple $100 per year just to get the weather.
in weather forecasts, hourly entries are normally seen as point-in-time entries, not as time-ranges like the daily entries.
(Which is technically not correct, but an hourly forecast based on these models is already inaccurate enough.For more fine grained values of the next 1 or 2 hours of clouds/rain you could look for a so-called radar based “nowcast instead”. But for temperature the hourly forecast values are the best you will get.)
So there is only a single temperature for hourly forecast items, but a range (temp and temp-low) for daily forecast items.
I use National Weather Service which is free. Here’s my complete template - pick and choose what you want, This should work with other weather services also.