mitch236 Posted May 13, 2010 Posted May 13, 2010 I have two programs to turn on and off my theater's ISY controlled devices. If I run the Then section of theater off, it runs for about 20 minutes. If I decide to turn back on the theater during that 20 minutes, I want to stop the off program from running so the on program can run. If I add a line to Stop the off program, will the off program run in entirety the next time I activate it? Here are the programs I wrote: Theater ON If IR 'IR_020' is Pressed Then Stop program 'Theater OFF' Set 'Theater / Receptacle / Theater NE' On Wait 1 second Set 'Theater / Receptacle / Theater NW' On Wait 1 second Set 'Theater / Receptacle / Theater SW' On Wait 5 seconds Set 'Theater / Receptacle / Theater SE' On Wait 1 minute Set 'Indoor / Thermostats / Theater / HVAC Theater' Mode Cool Wait 5 seconds Set 'Indoor / Thermostats / Theater / HVAC Theater' Fan Auto Wait 5 seconds Set 'Indoor / Thermostats / Theater / HVAC Theater' 80° (Cool Setpoint) Else - No Actions - (To add one, press 'Action') Theater OFF If IR 'IR_019' is Pressed Then Set 'Indoor / Thermostats / Theater / HVAC Theater' 76° (Cool Setpoint) Wait 5 minutes Set 'Theater / Receptacle / Theater SW' Off Wait 5 seconds Set 'Theater / Receptacle / Theater SE' Off Wait 5 seconds Set 'Theater / Receptacle / Theater NW' Off Wait 5 seconds Set 'Theater / Receptacle / Theater NE' Off Wait 15 minutes Set 'Indoor / Thermostats / Theater / HVAC Theater' Fan Auto Wait 5 seconds Set 'Indoor / Thermostats / Theater / HVAC Theater' Mode Off Else - No Actions - (To add one, press 'Action')
mitch236 Posted May 13, 2010 Author Posted May 13, 2010 Looking at the above programs, if I press ir_19 and begin the Off program and then 5 minutes later press ir_20 to run the On program it will stop the Off program. The next time I press ir_19 will it begin at the beginning of the Then statement or will it pick up where it left off?
oberkc Posted May 13, 2010 Posted May 13, 2010 my understanding is that it will start back at the beginning
brad77 Posted May 13, 2010 Posted May 13, 2010 Yes. It will not start in the middle of the program. Each time you run a program, it will start at the beginning.
Recommended Posts