travcore Posted March 13, 2012 Posted March 13, 2012 Hey guys, I have a programming question regarding the repeat function that I am wondering if you can help me with. I currently have the program set up so that when the house alarm is activated, at sunset, a series of lights go on at different times. Once the sequence is over the program ends. This works fine when the person comes home every night. What I would like it to do is repeat the program every night until the alarm is turned off. The Goodbye program that is activated with the alarm set is as follows: If From Sunset To Sunrise (Next day) and Program 'C1 Status' is True Then Set 'Entry Light On' Set Living room.....etc Else -No Actions- The Program that stops the Goodbye program when the alarm is deactivated is as follows: If X10 'C1/Off is received and Program 'Goodbye On' is true Then Stop Program 'Goodbye ON' Else -No Actions- Your help is greatly appreciated and this forum is excellent for learning and getting new ideas. Thanks
LeeG Posted March 13, 2012 Posted March 13, 2012 You can try something like this. It is necessary to handle in two Programs so the Repeat loop does not get canceled at Sunrise. The Off Program would stop ‘Program On Repeat’ If From Sunset To Sunrise (Next day) and Program 'C1 Status' is True Then Run Program ‘Program On Repeat’ (If) Else Program On Repeat If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then Repeat every 24 hours Set 'Entry Light On' Set Living room.....etc Else -No Actions-
oberkc Posted March 13, 2012 Posted March 13, 2012 Alternatively, you could create a program folder, with condition: Program C1 status is true Then run the programs in this folder In the folder, put a program such as: If Time is Sunset Then Set 'Entry Light On' Set Living room.....etc Else -No Actions-
travcore Posted March 13, 2012 Author Posted March 13, 2012 Thanks for the quick response guys. I'll give those options a try. You've been very helpful This is a great forum!
Recommended Posts