Canz Posted May 15, 2014 Posted May 15, 2014 Hello, I am hoping someone can help me out and give me some ideas. I am using the Z-wave Honeywell thermostat (TH8320ZW) and I have turned the internal Home/Away programing off. I have created some programs to set the cool and heat temp set points such as. ******* If M-F and time is 5:30am Then Stop program – Bedtime Set – Heat Set point to 69 Set – Cool Set point to 74 Else Blank ******** I have additional programs set up that take effect at different times though out the day and then end the program that ran before it. But what I am looking to create is a program, that when someone changes the temperature at the thermostat it will suspend all of the other programs and Hold the new temperature setting for a period of time (2hours) and then picks backup where it left off. Does anyone have any ideas on how to create something like this? Or something that will monitor set point change. Thanks Matt
Xathros Posted May 15, 2014 Posted May 15, 2014 Hi Matt- Place all of your tstat schedule programs in a folder. Create the following program outside of that folder: Program: StatWatcher If ( On Mon, Tue, Wed, Thu, Fri From 5:25:00AM To 7:59:59AM (same day) And ( Status 'Thermostats / LR Thermostat - Main' is not 69° (Heat Setpoint) Or Status 'Thermostats / LR Thermostat - Main' is not 74° (Cool Setpoint) ) ) Or ( On Mon, Tue, Wed, Thu, Fri From 8:00:00AM To 10:59:59AM (same day) And ( Status 'Thermostats / LR Thermostat - Main' is not 70° (Heat Setpoint) Or Status 'Thermostats / LR Thermostat - Main' is not 72° (Cool Setpoint) ) ) Then Wait 2 Hours Run Program StatWatcher (Else Path) Else Then set the folder conditions for thefolder with the schedule programs to: Folder Conditions for 'Testing' Add conditions to limit when programs in this folder are allowed to run. If Program 'StatWatcher' is False Then Allow the programs in this folder to run. Obviously, you will need to duplicate the schedule and values for Heat and Cool set points in the StatWatcher If section. Be careful to get the Or's and And's in the right places. I only did 2 time frames as an example, you will need to continue with the remainder of yours and adjust the times accordingly. Also, my stat is Venstar/Insteon - the set points are represented on the "Main" node. Your Zwave stat may represent these differently. Adjust the code accordingly. This will prevent scheduled changes from occurring for 2 hours after a manual change is made. After 2 hours the folder will re enable and the next scheduled change after that point will happen normally. If the previous change was missed due to the hold, it will NOT take effect after the hold expires. If you wish for the changes to take place at the hold expiration time, we will need to trigger the schedule programs within the folder. To do that, we can modify the Else section of StatWatcher to include a "Run If" of each schedule program. Hope this helps. -Xathros
Canz Posted May 15, 2014 Author Posted May 15, 2014 Xathros, Thank You for the Reply. I will give that a try tonight. But I had 3 questions 1) Can I put all of the timeframes under one StatWatcher Program? 2) I am not understanding the Else section of the Statwatcher Program. Should it blank to create the False condition under the Folder Conditions? And to add the trigger to cause the Programs to run after the Hold would it just be Else Run IF – Program A Run IF – Program B And so on. 3) And just to confirm for those programs to run properly I need to use IF Time is – 5:30AM to 8:00AM (or ) IF Time is – 5:30AM Thanks for all your help, Matt
Xathros Posted May 15, 2014 Posted May 15, 2014 Xathros, Thank You for the Reply. I will give that a try tonight. But I had 3 questions 1) Can I put all of the timeframes under one StatWatcher Program? Certainly. I only did 2 timeframes in my example but you can continue what I started adding more to the if in the same structure that I provided. 2) I am not understanding the Else section of the Statwatcher Program. Should it blank to create the False condition under the Folder Conditions? If left blank, it would have the limitation of having to wait till the next schedule arrived for the automatic changes to occur again. The folder will become enabled as soon as the 2 hr delay expires but that won't trigger the schedule programs rather will simply allow them to be triggered. The next trigger would be the first schedule time that occurs AFTER the delay has expired. If you ad Run If's of the schedule programs to the Else of StatWatcher, we can eliminate that delay. And to add the trigger to cause the Programs to run after the Hold would it just be Else Run IF – Program A Run IF – Program B And so on. Exactly. Where Program A, B, C... are your schedule programs withing the folder. 3) And just to confirm for those programs to run properly I need to useIF Time is – 5:30AM to 8:00AM (or ) IF Time is – 5:30AM Your existing schedule programs can use either format. For the watcher, ther need to be in the From...To range format. Thanks for all your help, Matt Anytime. Happy to help. -Xathros
Canz Posted August 16, 2014 Author Posted August 16, 2014 Xathros, I am hoping you can help me. I have tried your suggestion with my program however i am running into a problem. It was working fine but for some reason it has stopped working correctly on its own. Normally i get it working where the stat watcher is false and then the corresponding daily program starts. from what i can tell the daily program runs until it gets to the daytime shift. 6:30 - 16:30 and then it should lower the temp for when I arrive home from work. However it seams that at 16:30 it doesn't low the temp and the StatWatcher program kicks in and keeps the temp at the previous set temp of 80deg and doesn't resolve until i run the Else path of the StatWatcher. This is the programs, first is the StatWatcher followed by daily programs. Please let me know if you notice anything that could be causing my problem. Thanks again- Matt Spring_Weekday_StatWatcher If ( On Mon, Tue, Wed, Thu, Fri From 12:00:01AM To 5:29:59AM (same day) And ( Status 'Main Thermostat' is not 78° F (Cool Setpoint) Or Status 'Main Thermostat' is not 65° F (Heat Setpoint) ) ) Or ( On Mon, Tue, Wed, Thu, Fri From 5:30:00AM To 6:29:59AM (same day) And ( Status 'Main Thermostat' is not 76° F (Cool Setpoint) Or Status 'Main Thermostat' is not 67° F (Heat Setpoint) ) ) Or ( On Mon, Tue, Wed, Thu, Fri From 6:30:00AM To 4:29:59PM (same day) And ( Status 'Main Thermostat' is not 80° F (Cool Setpoint) Or Status 'Main Thermostat' is not 55° F (Heat Setpoint) ) ) Or ( On Mon, Tue, Wed, Thu, Fri From 4:30:00PM To Sunset - 1 second (same day) And ( Status 'Main Thermostat' is not 75° F (Cool Setpoint) Or Status 'Main Thermostat' is not 64° F (Heat Setpoint) ) ) Or ( On Mon, Tue, Wed, Thu, Fri From Sunset To 11:59:59PM (same day) And ( Status 'Main Thermostat' is not 77° F (Cool Setpoint) Or Status 'Main Thermostat' is not 65° F (Heat Setpoint) ) ) Then Wait 2 hours Run Program 'Spring_Weekday_StatWatcher' (Else Path) Else Run Program 'Spring_Weekday_00-530' (If) Run Program 'Spring_Weekday_0530-630' (If) Run Program 'Spring_Weekday_0630-1630' (If) Run Program 'Spring_Weekday_1630-Sunset' (If) Run Program 'Spring_Weekday_Sunset-2359' (If) Spring_Weekday_00-530 If On Mon, Tue, Thu, Fri From 12:00:00AM To 5:29:59AM (same day) Then Set 'Main Thermostat' 78° F (Cool Setpoint) Set 'Main Thermostat' 65° F (Heat Setpoint) Else - No Actions - (To add one, press 'Action') Spring_Weekday_0530-630 If On Mon, Tue, Thu, Fri From 5:30:00AM To 6:29:59AM (same day) Then Set 'Main Thermostat' 76° F (Cool Setpoint) Set 'Main Thermostat' 67° F (Heat Setpoint) Else - No Actions - (To add one, press 'Action') Spring_Weekday_0630-1630 If On Mon, Tue, Wed, Thu, Fri From 6:30:00AM To 4:29:59PM (same day) Then Set 'Main Thermostat' 80° F (Cool Setpoint) Set 'Main Thermostat' 55° F (Heat Setpoint) Else - No Actions - (To add one, press 'Action') Spring_Weekday_1630-Sunset If On Mon, Tue, Thu, Fri From 4:30:00PM To Sunset - 1 second (same day) Then Set 'Main Thermostat' 75° F (Cool Setpoint) Set 'Main Thermostat' 64° F (Heat Setpoint) Else - No Actions - (To add one, press 'Action') Spring_Weekday_Sunset-2359 If On Mon, Tue, Wed, Thu, Fri From Sunset To 11:59:59PM (same day) Then Set 'Main Thermostat' 77° F (Cool Setpoint) Set 'Main Thermostat' 65° F (Heat Setpoint) Else - No Actions - (To add one, press 'Action')
Xathros Posted August 22, 2014 Posted August 22, 2014 @Canz So sorry for the delay in getting back to you. I was away on Vacation and have spent the last 3 days catching up here. On first glance, my suspicion is that your problem occurs on Wednesdays. This could be due to the fact that Weds is missing from the Spring_Weekday_1630-Sunset program. I also notice Weds missing from Spring_Weekday_0530-630. If this is by design, I will dig deeper but on first glance this appears to be the issue. -Xathros
Canz Posted August 23, 2014 Author Posted August 23, 2014 That's cool, no rush. Sorry i am just now getting back to you, Wednesday was left out by design because my wife was working from home, but i am having the problems on the other days too.
oberkc Posted August 23, 2014 Posted August 23, 2014 Is it possible you have a couple of "loops" here, where executing the THEN or ELSE section of your first program causes a change in the conditions, causing a reevaluation, causing....etc...? It appears to me that your first program condition is based, in part, on the setting of your main thermostat. It further appears to me that each of your "WEEKDAY" programs causes a change to you thermostat setting which would cause a reevaluation of your first program conditions. I am also a little confused about what it is you are trying to accomplish, suspecting that there is a lot of unecessary complications here. If all you are trying to do is to set the thermostat to certain settings at certain times of certain days, why not use a handful of simple programs, such as: IF On Mon, Tue, Thu, Fri And time is 4:30:00PM Then Set 'Main Thermostat' 75° F (Cool Setpoint) Set 'Main Thermostat' 64° F (Heat Setpoint) Else - No Actions - (To add one, press 'Action') If On Mon, Tue, Thu, Fri And time is 5:30:00AM Then Set 'Main Thermostat' 76° F (Cool Setpoint) Set 'Main Thermostat' 67° F (Heat Setpoint) Else - No Actions - (To add one, press 'Action') If On Mon, Tue, Wed, Thu, Fri and time is 6:30:00AM Then Set 'Main Thermostat' 80° F (Cool Setpoint) Set 'Main Thermostat' 55° F (Heat Setpoint) Else - No Actions - (To add one, press 'Action') If On Mon, Tue, Wed, Thu, Fri and time is Sunset Then Set 'Main Thermostat' 77° F (Cool Setpoint) Set 'Main Thermostat' 65° F (Heat Setpoint) Else - No Actions - (To add one, press 'Action')
Recommended Posts