#Trigger condition: Temperature during night

29 messages · Page 1 of 1 (latest)

wraith light
#

Hi
I previously had a trigger that fired when the lowest temperature of the day ways <10 . That weather api seems the be gone now and the new forecast one has taken over. How can I get such a condition again?
I basically want to know if the temperature during night is < 10°C to send me a notification when a window is open.
I check that at 21:00, so if there is a way to say "get me the temperature 6h from now", "lowest temperature of the day", or something like this, this would be enough

glossy jungle
wraith light
#

would be perfectly fine. I basically just want to know "is it going to be cold?"
But I cannot find such an attribute with the "forecast home" entity

#

I am currently trying to get the lowest temperature of the forecast via Template, but I cannot get this to work.
{{ (state_attr('weather.forecast_home', 'forecast')| map(attribute='temperature') | min) }}

glossy jungle
#

Forecast is no longer an attribute. There is an action to get it. Some weather places just offer sensors for a lot of things instead, so look for a sensor for low temp tomorrow, or try something like accuweather or another.

wraith light
#

in the "actions" tab I can see that there is a "get forecasts" which will send me all the hourly forecasts, but I cannot find a way to access that in the "template" section.

glossy jungle
#

Look in an entities list and see if there is an entity for tomorrows low or whatever it's worded as.

wraith light
#

you mean by pressing e ? There is only the weather.forecast_home. Which would also contain the info I need:

#

but again, I have no clue how to get that data into the template

#

or in a simple condition "object"

#

I can get the current temp via {{ state_attr('weather.forecast_home','temperature') }}

#

but I dont knwo how to get that hourly forecast

glossy jungle
#

The UI stuff is too confusing and complicated for me. Most odf the caoomands are not there.
I would go into developer tab, entities, and that is a list of entities. If you find one you like, copy the name and put it into wharever you want.

#

For building yaml and templates I use Code Server and the names just opo up for me.

wraith light
#

entities doesnt exist for me

glossy jungle
#

The one that's underlined is a list of your entities.

wraith light
#

ok but there is nothing in there that would match this

glossy jungle
#

So the second half of my original statement says you may have to find a differect service that has what you want...
#1287127188075974757 message

wraith light
#

had OpenWeatherMap initially but they changed the API and removed this feature somehow

glossy jungle
#

I think I have helped (or confused) you enough here. If someone else can walk you thru the get_forcast thing that I don't use, then they may be able to help you better.

wraith light
#

thanks anyways 🙂

glossy jungle
#

HA removed the forecast attribute months ago.

#

My accuweather forecasted low for today. from my entities list.

#

the -1 one would be for tomorrow

wraith light
#

awesome that works 🙂 lets hope that the 50 calls on the free plan are enough 🙂

#

Thank you !