poscash3757 Posted July 27, 2009 Share Posted July 27, 2009 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 73The 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 More sharing options...
tigrzeye Posted July 27, 2009 Share Posted July 27, 2009 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 More sharing options...
poscash3757 Posted July 27, 2009 Author Share Posted July 27, 2009 Oh! Thanks I will try it when I get home this evening. It makes sense Link to comment Share on other sites More sharing options...
poscash3757 Posted July 27, 2009 Author Share Posted July 27, 2009 I could not wait until this evening. It worked perfectly! Link to comment Share on other sites More sharing options...
CFUG Posted July 27, 2009 Share Posted July 27, 2009 ^I assume you nested the two conditions... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.