azkid Posted October 1, 2020 Share Posted October 1, 2020 Currently I am using a motion detector (alarm zone but in C4) in my living room to turn on some accent lighting when it is night time and motion is detected. The light automatically turns off at 5 minutes when no motion is detected. This is mainly used as a nightlight type scenario when I get up in the middle of the night and head to the kitchen the light turns on so I can see. I also have it programmed to only turn on if the TV is off since sometimes I want things to be dark when watching a movie at night. I also have a 6 button keypad in the room and one of the buttons is labeled light and controls the same light as the motion detector so I can turn it on/off manually during the day or whenever. What I would like to do is set it up so if I press the light button on the keypad the light will turn on for a longer period of time (more than 5 minutes) vs when the motion detector turns on the light. Been thinking about this for a bit and cant wrap my head around how to program something like this... any of you gurus have any ideas? Thanks! Quote Link to comment Share on other sites More sharing options...
South Africa C4 user Posted October 1, 2020 Share Posted October 1, 2020 Various options: 1. Only start the timer (to turn the light off) when you turn it on via motion detection. Or start a different (longer) timer when the button is pressed. 2. Use a variable to let you know if the light was turned on by motion detection or via the switch and when the timer expires check this variable and turn the light off (or not) based on this variable. Could also use 2 timers of a different length if need be and check this variable when each one expires and act accordingly. 3. Probably the best option - purchase the Domosapiens Advanced Lighting Timer driver (available on Driver Central). I am 99% sure this driver will do what you want and much more. I have not used this driver personally but have used lots of other Domosapiens drivers and they are great. @msgreenfraves about this driver and I definitely need to give it a try! Quote Link to comment Share on other sites More sharing options...
msgreenf Posted October 1, 2020 Share Posted October 1, 2020 Use the driver! Sent from my Pixel 3a XL using Tapatalk Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.