Jump to content

Quick programming question


andyf0

Recommended Posts

Posted

I know that if you want a program to trigger on a switch being pressed ON or OFF you have to do the CONTROL test for ON and NOT OFF but does this apply to STATUS also.

 

If I want the following program to trigger when a light turns ON or OFF do I need the ON and NOT OFF to execute the Else statement.

 

if

Status BedroomLight is ON

then

Set LivingRoomLight ON

else

Set LivingRoomLight OFF

 

Thanks

Posted
No, status change will cause the program to evaluate.

 

The program as you set up should work fine

 

Thanks.

Guest
This topic is now closed to further replies.

×
×
  • Create New...