Jump to content
C4 Forums | Control4

Simple Programming Question


Recommended Posts

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


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

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.