trocks797 Posted September 2, 2013 Posted September 2, 2013 I have several programs written that include the "wait" protocol. Some work, some fail. It isn't a communication problem because I can watch the status of the programs and it will go from "Running Then" to "Idle" before executing the entire program. The one that fails most often is this: IF it is between sunset and sunrise AND the burglar alarm is set for away mode, turn the outside driveway spots on to 100% for 10 minutes, then put them back at 50%. Sometimes it works, but most of the times after about 4 minutes the program goes to "idle". As you can see, I have 2 programs set to run when the alarm is put in away mode. The other one (garage lights on w arm away) always executes properly, but it has no "wait" in it. I also have a program that slowly turns up my bedroom lights in the morning that utilizes the "wait" function 4 times. It works properly 100% of the time. So I can't figure this out! As a side note, I found out the ISY cannot execute a program while another one is actively being transmitted. I tripped our burglar alarm and of course "Alarm Sounding (Exterior)" was activated, which flashes the outside lights 40 times (using "repeat"). While the ISY was doing that, I could not get it to execute any other program. That's fine, but perhaps that's why my auto spots is failing? When the alarm is set in away mode, the two programs set to run do start running, but the ISY doesn't always finish the auto spotlight program, and I am stumped. Any ideas? Do I have the program correctly set? Thank you!
LeeG Posted September 2, 2013 Posted September 2, 2013 For the posted Program the Folder condition changes while the Program is in a Wait. This stops the Program execution because the Folder condition is no longer True. What is trying to trigger other Programs while the lights are flashing. There is a limited amount of bandwidth on the powerline. It is probable that other Insteon activity cannot get on the powerline while lights are blinking if the other Programs are being triggered by Insteon activity. Insteon allows a single Scene to be running at once. It will cancel a Scene when other Insteon activity occurs. Need more information about what the Program that is blinking lights is doing along with what is being used to trigger the other Programs.
kclenden Posted September 9, 2013 Posted September 9, 2013 Phrasing the info from LeeG another way: WAIT works in conjunction with the IF statement. If the IF condition changes from TRUE to FALSE during the WAIT then the execution of the THEN halts. For this reason, people often break up the IF and WAIT into two separate programs. In your case when the IF was true the THEN would execute another program. The other program would not have an IF condition, but merely have Set 'Main Floor / Driveway Spot Lights' 100% followed by WAIT 10 minutes followed by Set 'Main Floor / Driveway Spot Lights' 50% in the THEN section. AND The ISY can execute other programs while transmitting commands but will not send out more Insteon commands while the powerline is busy. Your blinking of the outside lights is probably monopolizing the powerline so that any other program that is executed cannot send Insteon commands. Try creating a program that merely sets the value of a variable and run it while your blinking light program is running. I think the variable setting program will run, and you'll see the value of the variable change.
Recommended Posts