I am attempting to setup some rules for when I work at home. I essentially, want to set back the thermostat on the 1st floor.
The code correctly sets the thermostat back on the first floor when I run the button. What I am struggling with is having the code restore the setback. For example, when I run out to lunch I want the thermostat to setback into away mode like normal. But upon my return I want it to enter back into "day" mode for the rest of the house and then rerun the set back.
This code seems to work, except for one minor thing. When I arm the system into away mode it starts that set back timer? Its almost as if the system switches triggers the "off" block before going into away. Any ideas why it would do that or how to work around it?
Code:
35. // Thermostat Setbacks
36. WHEN Downstairs Setback Button
THEN 1st Floor Thermostat HEAT SETPOINT 62
THEN 1st Floor Thermostat COOL SETPOINT 85
THEN 1st Floor Thermostat MODE AUTO
THEN 1st Floor Thermostat FAN AUTO
37. WHEN Upstairs Setback Button
THEN 2nd Floor Thermostat HEAT SETPOINT 64
THEN 2nd Floor Thermostat COOL SETPOINT 80
THEN 2nd Floor Thermostat MODE AUTO
THEN 2nd Floor Thermostat FAN AUTO
38. // Work around slow thermostat mode switching
39. WHEN Downstairs Set Back Timer OFF
THEN RUN Downstairs Setback Button
40. // Working at home Thermostat Override
41. WHEN Working at home button
THEN Work At Home Flag ON
THEN RUN Downstairs Setback Button
42. TIMED 4:00 PM MTWTFSS
TIMED 12:00 AM MTWTFSS
WHEN Cancel Work At Home Button
THEN Work At Home Flag OFF
43. WHEN OFF
AND IF Work At Home Flag ON
THEN Downstairs Set Back Timer ON FOR 1 MINUTE
The code correctly sets the thermostat back on the first floor when I run the button. What I am struggling with is having the code restore the setback. For example, when I run out to lunch I want the thermostat to setback into away mode like normal. But upon my return I want it to enter back into "day" mode for the rest of the house and then rerun the set back.
This code seems to work, except for one minor thing. When I arm the system into away mode it starts that set back timer? Its almost as if the system switches triggers the "off" block before going into away. Any ideas why it would do that or how to work around it?