richardl007 Posted November 17, 2010 Posted November 17, 2010 Is it possible to do this? If status 'lamp' is on Then Repeat 5 times lamp beep wait 2 seconds set 'light' on else What I'm trying to ask is it possible to have an action after the repeat command that doen't repeat? So in this case it would beep 5 times then turn on a light.
fitzpatri8 Posted November 17, 2010 Posted November 17, 2010 Try something like this: If Control 'Light' is switched On Then Repeat 5 times Set 'Different Light' 1 (Beep Duration) Repeat 1 times Set 'Light' Off Else - No Actions - (To add one, press 'Action') I find the beep duration of 1 will occasionally give a double-beep the first time, so don't set two different programs to indicate different things with just 1 difference in beep count! The second Repeat ends the loop. If there's no second Repeat, all instructions through the end of the program repeat.
richardl007 Posted November 17, 2010 Author Posted November 17, 2010 Thanks you. So putting in the second repeat is the answer i needed.
fitzpatri8 Posted November 17, 2010 Posted November 17, 2010 When you are in the Administrative Console, you can always click on Help... UDI Wiki, then search for a keyword like Repeat. There's tons of great reference info there.
Recommended Posts