My current event logic is:
If door opens for 2 minutes, set thermostat to 60 degrees.
If door closes, set thermostat to 68 degrees (fixed value) if time is within heat-on schedule.
The problem I'm hearing from my client (daughter), is that if she sets the thermostat to 62 degrees, leaves and returns, the heat is set back to 68 degrees.
How would you solve this? I have not scripted anything before but I am willing to jump in. I also think some use of a global variable may make this possible, but I don't know where to begin.
Thank you,
Devan
If door opens for 2 minutes, set thermostat to 60 degrees.
If door closes, set thermostat to 68 degrees (fixed value) if time is within heat-on schedule.
The problem I'm hearing from my client (daughter), is that if she sets the thermostat to 62 degrees, leaves and returns, the heat is set back to 68 degrees.
How would you solve this? I have not scripted anything before but I am willing to jump in. I also think some use of a global variable may make this possible, but I don't know where to begin.
Thank you,
Devan
Comment