Jump to content

Simple Program Trouble


Go to solution Solved by dbwarner5,

Recommended Posts

  • Solution

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 by dbwarner5
  • Like 1
Link to comment
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). 

 

 

Link to comment
Guest
This topic is now closed to further replies.

×
×
  • Create New...