Jump to content
C4 Forums | Control4

motion with a light variable


Recommended Posts

Help! I am attempting to instal a varible on my lr light. Simply put:

If the light is already on

and it is night time

and there is motion from the LR motion then keep the light at level 73

The current formula turn the light on whether the light is on or not. I also tried if the current light state is greater than 1%. I had the same results. Light turn on as soon as there is motion. even if the fimmer was off

Link to comment
Share on other sites


You have to "nest" your script. Otherwise it reads each line and does each command.

Click on the "?" of the second command with your left mouse button, hold down the mouse button, and drag that "?" icon over top of the the first commands "?" icon and release the mouse. You should see the second command still be below the first but indented. Do the same with the third command dragging and dropping the -> icon over top of the first commands ?. It will fall in line third but indented as well.

(see the included picture to show what a nested example looks like)

See if it works then.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.