Kevo1961 Posted January 15 Posted January 15 Looking for some help with the attached program. The first part of "Then" will execute but neither light will turn off.
Kevo1961 Posted January 15 Author Posted January 15 I just realized I had the wrong motion sensor selected. Updated and saved to proper sensor and I believe it is working properly.
Solution dbwarner5 Posted January 15 Solution Posted January 15 (edited) When the outside lights turn on, does it change the luminance at the Motion sensor? if so, the Wait forces a re-evaluation of the IF and will make it turn false and so the Then will never complete.. Remove and put your wait and off settings into your Else statement and see if that fixes it. From WIKI --> The program's conditions are reevaluated each time a Wait or Repeat statement is encountered, and at the end of each iteration of a Repeat loop. https://wiki.universal-devices.com/ISY-99i/ISY-26_INSTEON:Scope,_Precedence_and_Execution_Order#Statement_Execution_Order Edited January 15 by dbwarner5 1
Geddy Posted January 15 Posted January 15 4 hours ago, Kevo1961 said: Back to red. Help. This just means the last time the program evaluated it was false. https://wiki.universal-devices.com/ISY_Programs:Icon_Colors "Partly red - not currently running, but last ran the ELSE code" To test if the program "Then" runs correctly right click the program and select "Run Then". It should run a complete cycle of the then (assuming nothing triggers the program during the wait to cause the program to re-evaluate). More than likely the light level was higher than 20% causing the "IF" to be False. Since you have nothing in the else nothing happened. Remove the 20% condition and test it. My guess is you are really only wanting/needing the lights to come on when it's not the middle of the day. Finally: Please note the better/easier way to share programs in the forums is to right click the program then select "COPY to clipboard" (be sure you select the COPY option). then paste it as text in the forum post. This helps others trying to help offer alterations to the program without having to type it or recreate it locally. It also makes the program searchable in the forums for future assistance (or memory jog should you run into this issue again).
Recommended Posts