stenkb Posted September 13, 2009 Share Posted September 13, 2009 I am new to this so please dont laugh too muchhere 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 -> chandelieri tried using sunset at the timer and that didnt work either......thanks in advance Link to comment Share on other sites More sharing options...
pharmdsmith Posted September 13, 2009 Share Posted September 13, 2009 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-> chandelieryou 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 commandI 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 More sharing options...
stenkb Posted September 13, 2009 Author Share Posted September 13, 2009 yup - thanks so much - workin now appreciated Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.