What value does that give?
Also keep in mind that this will trigger everytime your sensor sends a value higher then 28.
I think you are better off just using numeric_state that way you can just use the entity without needing a template, as it will only trigger on the threshold.
In the Developer Tools there is a tab called States, find your sensor there and set it to 20. After a while it will update and show the correct value again. That way we were below 27 and again above 28.
Post the trace for the below and above when that happens. U can find that in the automation itself.
No it won’t, it’ll trigger every time the template goes from false to true, effectively working the same as Numeric State:
Agree that Numeric State is better, though.
@Vandana — as @Dujith says, we need to see traces or the lack of them. You say it’s not triggering, but are you sure it’s not the action that is failing to work?
Something new learned, my assumption (and yes i know i shouldnt assume :P) was that it would trigger each time a value higher then compared was given. But reading the text i see its not.
Ah, you’ve executed it manually. In that case, neither trigger fired, and there’s no trigger ID, so your choose doesn’t go either way. It’s working as designed.
Ah, you’ve executed it manually. In that case, neither trigger fired, and there’s no trigger ID, so your choose doesn’t go either way. It’s working as designed.
I tried with a fake value of 42, the automation triggerred and AC was turned ON. But when the room temp dropped to 26, the automation should have triggerred again to turn off the AC but it didnt…
You have a state trigger without specifying what state, so this will trigger on every state change. Two triggers, one on and one off would stop this happening.
I personally would have two automations, one triggering when the helper changes to on and the other when it changes to off. Then you wouldn’t need the conditions.