Ecobee Setpoint not working


#1

I am trying to set my Ecobee current setpoint or temp to a variable, store it if a door is opened for an extended time, then turn off the thermostat. When the door is then closed then turn the Ecobee back on.


#2

What is not happening?

Looking at this, I would guess that the operating mode is not being resumed after the door has stayed closed. If that is the case, trying moving the second ‘IF’ outside of the first ‘IF’.

One other thing I would consider is adding some logic so that the ecobee setpoint doesn’t get overwritten every time the contact sensor is closed, even if it wasn’t open for two minutes.

See here: