MTS Power Posted March 21, 2011 Share Posted March 21, 2011 I wrote a script to turn on the garage light when the garage door is opened but only if it's night time. The script worked fine with one problem. If the light was already on and the door opened the light turns off. I did choose "turn on the garage light" and not togle the light so I'm a little confused. Thanks Guys! Link to comment Share on other sites More sharing options...
pharmdsmith Posted March 21, 2011 Share Posted March 21, 2011 I'm not sure why you're light is turning off, but based on your programming you're light will come on regardless of time of day or light status. You need to ident them. ?if night time ?if light is off ->turn light on. You indent by dragging the command below and dropping it right on the ? of the line above it. Do you have any programming based on when the door closes? Link to comment Share on other sites More sharing options...
MTS Power Posted March 21, 2011 Author Share Posted March 21, 2011 I do have programming for when the door closes but it does not pertain to any lighting. Link to comment Share on other sites More sharing options...
alf1096 Posted March 21, 2011 Share Posted March 21, 2011 Try a reset and the code above Link to comment Share on other sites More sharing options...
MTS Power Posted March 22, 2011 Author Share Posted March 22, 2011 Not meaning to sound ignorant but what do you mean by reset? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.