Moshe Posted May 30, 2016 Posted May 30, 2016 I created a program that will dim lights on certain days of the week. I removed one of the days (Sunday) but the program still dims the light on Sunday. I tried re-adding Sunday and removing it again, but the program still runs on Sunday. Any suggestions? Currently I am running version 4.5.0. Thanks Moshe
LeeG Posted May 30, 2016 Posted May 30, 2016 (edited) Make sure Save Changes was done. Is the UI (Admin Console) also at 4.5.0? Post Program. Edited May 30, 2016 by LeeG
Moshe Posted May 30, 2016 Author Posted May 30, 2016 UI and firmware at 4.5.0. Bathrooms - [iD 0022][Parent 0006] If On Sat, Fri Time is 6:30:00PM Then Set Scene 'Bathrooms / Bathrooms-100%' On Wait 4 hours and 30 minutes Set Scene 'Bathrooms / Bathrooms-50%' On Wait 8 hours and 30 minutes Set Scene 'Bathrooms / Bathrooms-100%' On Wait 2 hours and 30 minutes Set Scene 'Bathrooms / Bathrooms-50%' On Wait 1 hour and 30 minutes Set Scene 'Bathrooms / Bathrooms-100%' On Wait 3 hours Set Scene 'Bathrooms / Bathrooms-50%' On Wait 4 hours Set Scene 'Bathrooms / Bathrooms-100%' On Else - No Actions - (To add one, press 'Action')
paulbates Posted May 30, 2016 Posted May 30, 2016 The program is initiated based on a start condition.. but has not stop condition. There is about 24 hours of elapsed time in the statements in the program, and it doesn't know to stop at midnight Saturday and keeps running through Sunday. Short explanation, its working as designed. You can put from/to in the program's 'If', but the problem with that is that will affect the operation of the program on Friday night. My suggestion is a second program that runs at 11:59PM Saturday night that stops the first program in its tracks, and does any clean up to the lights you might want to do at that time Stop Bathrooms - If On Sat Time is 11:59:00PM Then Stop program 'Bathrooms' Set Scene 'Bathrooms / Bathrooms-???%' On Paul
Moshe Posted May 30, 2016 Author Posted May 30, 2016 Paul - Why does it not continue to run on Monday, Tuesday.. Moshe
larryllix Posted May 30, 2016 Posted May 30, 2016 If On Sat, Fri Time is 6:30:00PM I am going to hazard a guess that at 6:30 on the other days (Sun,Mon,Tues,Wed,Thur) the logic is re-evaluated and it is False stopping the Then section from running further. I haven't tested this. Perhaps other have tried this algorithm.
stusviews Posted May 30, 2016 Posted May 30, 2016 The program will run beginning Fri at 6:30PM until 7:30PM on Sat, and on Sat it'll run starting at 6:30PM (Fri is cancelled at this point) until 7:30PM on Sun. Eliminate Sat from the program.
Moshe Posted May 30, 2016 Author Posted May 30, 2016 Removing Saturday fixed the issue. Thanks to all. Moshe
Recommended Posts