With numeric_state conditions, how often do they trigger? When they first cross the specified above/below threshold?
How about when you start up - if a trigger is already true, will it trigger, or only when the threshold is crossed?
With numeric_state conditions, how often do they trigger? When they first cross the specified above/below threshold?
How about when you start up - if a trigger is already true, will it trigger, or only when the threshold is crossed?
I think they trigger only when the value of the entity_id’s component changes.
So, if I’m comparing a temperature and testing for below freezing, each time the temperature changes AND it’s below freezing, it’d trigger? Not just the first time when it went from something above freezing to something below?
I know that the trigger gets evaluated then (when the state of the entity changes), but is it continuous?
You seem to be talking about two different things.
A numeric state condition will either be true or false depending if the number is currently above or below that value. But that alone won’t trigger anything, it will just be evaluated every time a trigger is fired.
The numeric state trigger on the other hand only triggers when crossing that value, not for every state change.
I was referring only to numeric_state as trigger. Thanks for your clarification.
What about on reboot - if the trigger was already “true”, it wouldn’t trigger on startup - only on threshold crossing.
Yes that’s true. If it’s already below it wouldnt trigger on reboot. If you need it to you could try this:
trigger:
platform: homeassistant
event: start