State between two values

Hi Team.

I am working through a heating flow and i am getting quite close. A part of my flow checks to see if the room temp is greater than 21 and if it is then turn off the heating in that room. Thats all good but as soon as the temp drops to say 20.9 the heating kicks in.

Ideally in my mind i am looking for something that says if temp is 21 or more turn the heating off but also let the temp drop say down to 19 before switching on again.

Is there a way of doing that?

Use two nodes
One for turn on and one for turn off

The Threshold helper does exactly that
hysteresis prevents the binary sensor to toggle rapidly.

1 Like