Comfort Automation/ Security System Forums
Automating Lighting - Printable Version

+- Comfort Automation/ Security System Forums (https://www.comfortforums.com)
+-- Forum: Support (https://www.comfortforums.com/forum-2.html)
+--- Forum: Questions on Programming Comfort (https://www.comfortforums.com/forum-83.html)
+--- Thread: Automating Lighting (/thread-2027.html)



- bryanajones - 10-31-2010

Hi, can someone please help?

I am trying to automate lighting around the home. When someone enters a room for the light to come on for 2 minutes. If there is no movement for 2 minutes dim the light for 30 seconds. If still no movement then turn the light off.

I\'d also like the above to only work after sunset and before sunrise.

I\'ve had a go at this myself in configurator using something basic:

Do X10 A2 ON
Do X10 A2 Off after 120 seconds timer01
Stop Timer01

And then setting this to the on response for a zone but this brought the light on but never turned off.

Is anyone able to tell me where I am going wrong?

Thanks

Bryan.



- ident - 10-31-2010

The mistake in your Response is the inclusion of Stop Timer 01 at the end

You do not need to stop the timer, as when the timer expires, it will automatically stop

Also you should understand that the actions after the start Timer action will happen immediately afer it, and not when the timer has expired,
Thus your response starts the timer 1 for 120 seconds, then immediately after that will STOP timer 1.







- bryanajones - 10-31-2010

I\'ll try that thanks....in my defence I\'m used to doing this by hand using just action codes.

How does the sunset feature work? I read that a flag is set so I though I could test the flag, but it doesn\'t appear that the sunset part is setting any flag.

Any suggestions?

Thanks.



- ident - 10-31-2010

Sunrise and Sunset Responses, Daylight Saving automatic time changes and the Night Time Flag is now explained better in this topic http://www.comfortforums.com/forum20/1004.html