Liber93 Posted May 25, 2017 Posted May 25, 2017 Thanks for the help in advance. For some odd reason I cannot get the simplest of programs to work. I want my water pump to come on for 1 minute, then switch off for 5 minutes - and repeat this schedule 24/7. On 1-minute, Off 5-minutes, repeat. Any suggestions?
paulbates Posted May 25, 2017 Posted May 25, 2017 (edited) Hi This is the general idea but you'll need to test it If From 12:00:00AM To 12:00:00PM (same day) Then Repeat Every 6 minutes Set 'Pump' On Wait 1 minutes Set 'Pump' Off Paul Edited May 25, 2017 by paulbates
apostolakisl Posted May 25, 2017 Posted May 25, 2017 (edited) The above then section is perfect. But I wouldn't do the If that way. At midnight the program will reset and you won't end up with your 1/5 thing. Probably it doesn't really matter, but in the interest of doing things the best possible way, I would do something like IF From 9 am 5/24/2017 (or any other time in the past) To 9 am 5/24/2035 (or any date far off in the future, but not too far i the future since that seems to screw up ISY.) Then what Paul said Be sure to click "enable at startup" in the program summary page. EDIT: Also be sure to right click on it after you save the program and click "run if", this will start the loop. Otherwise the loop won't start until the next reboot. Edited May 25, 2017 by apostolakisl
builderb Posted May 25, 2017 Posted May 25, 2017 Depending on how mission-critical this pump schedule is, a heartbeat program with a notification may be a good addition.
larryllix Posted May 25, 2017 Posted May 25, 2017 Hi This is the general idea but you'll need to test it If From 12:00:00AM To 12:00:00PM (same day) Then Repeat Every 6 minutes Set 'Pump' On Wait 1 minutes Set 'Pump' Off Paul That would be every 7 minutes due to a syntax error in the ISY syntax. This is just to call attention to users attempting to make time critical programs. Should have been somethig like Repeat and Wait 6 Minutes. Also the OP wanted 24/7 so he can remove the "to 12:00 PM" line. I like to use several OR times durig the day to restart any Repeat loop stalling, sooner, ie...when you edit the program, or the power cycles to ISY.
paulbates Posted May 25, 2017 Posted May 25, 2017 I like to use several OR times durig the day to restart any Repeat loop stalling, sooner, ie...when you edit the program, or the power cycles to ISY. I suppose another option would be no If statement, and mark it as "Run on Startup"
larryllix Posted May 26, 2017 Posted May 26, 2017 (edited) I suppose another option would be no If statement, and mark it as "Run on Startup"For sure, but then when editing programs, I sometimes forget to start the program again. I've been caught a few times now. Right now I rely on multiple times as I cannot depend on the "Run at startup" option. The usual fix is to add another program that kickstarts all these programs (Then). Another easy to forget item though. Hopefully UDI will add this option Run at startup, "If", "Then", "Else", to alleviate this problem. Edited May 26, 2017 by larryllix
Recommended Posts