gregoryx Posted February 8, 2009 Posted February 8, 2009 Help! I'm having trouble figuring out the right programming for this. I want a motion to turn OFF lights only. Easy enough: not linked to the light, only to the ISY; use a program to trigger the OFF, and ignore the ON. This way I can control via ambient light levels or time of day or whatever whether it will go on or not. The challenge is that I want a "warning" before I turn it off based on the timer. I'm a bit stuck on how to do that AND have the warning work by calling OFF the "turn off the light" function if there is more motion.
MikeB Posted February 8, 2009 Posted February 8, 2009 How about something like this: If Control 'Motion Sensor' is Off And Control 'Motion Sensor' is not On Then Wait 30 seconds Set Scene 'Lights' Off Else No Actions I haven't tested this, but I believe this would turn the lights OFF 30 seconds after receiving the Motion Sensor's OFF command UNLESS more motion is detected during that 30 seconds.
Sub-Routine Posted February 8, 2009 Posted February 8, 2009 Yes, that works Mike. Here I have added a flash for a warning. If Control 'Motion Sensor' is switched Off And Control 'Motion Sensor' is not switched On Then Wait 30 seconds Set Scene 'Lights' Fast On Set Scene 'Lights' On Wait 30 seconds Set Scene 'Lights' Off Else No Actions Rand
gregoryx Posted February 9, 2009 Author Posted February 9, 2009 Awesome! Thank you! ... gotta go try it...
Recommended Posts