Jump to content
C4 Forums | Control4

timer not working correctly - help plz


Recommended Posts

I am new to this so please dont laugh too much

here is the code I am using - i want lights to turn on from a motion detector between 7 pm and 6 am however it always turns on when motion at all times of day. any idea what i am missing?

? if time is between 7 pm and 6 am

-> start timer "motion lights on"

? if living room -> chandelier is off

-> ramp to level 50 on the living room -> chandelier

i tried using sunset at the timer and that didnt work either......

thanks in advance

Link to comment
Share on other sites


You need to nest your commands.

? if time is between 7 pm and 6am

-> start time "motion light on"

? if living room-> chandelier is off

-> ramp level to 50 on the living room-> chandelier

you nest commmands by dragging the -> ramp level to 50 on living room command and putting your mouse pointer on the ? in the if living room->chandelier is off command. That will cause it to be indented like my example. If the start timer motions lights on is a timer command to turn off the lights after a period of being on after motion detected then it needs to be nested under ?if living room ->chandelier is off command

I think you want it to look like this

? if time is between 7pm and 6am

? if living room ->chandelier is off

-> ramp to level 50 on the living room -> chandelier

->start timer "motion lights on"

once again that is if the motion lights on timer is doing what I think you are doing.

hope that makes sense.

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.