richardl007 Posted January 11, 2010 Posted January 11, 2010 I have a motion detector that i want it to turn on some lights when i walk into the room. But when I'm leaving the room it won't let me turn the lights off. The light turns off then right back on? If status 'main room' is off and status 'Motion sensor-senor' is on Then Set 'main room' on Else - no action Quote
oberkc Posted January 11, 2010 Posted January 11, 2010 There are whole threads addressing the programming for motion sensors. Check them out. Good reading. Your program will turn the lights on any time the two conditions are true. When you manually turn the lights off, the conditions are again made true (so long as you are within the time-out window of the motion sensor), so the program will turn them back on. Perhaps a better way would be to use control, rather than status, of the motion sensor as a condition, then use a wait action after turning the lights on. After the wait, send a command to turn them off. (This assumes that you want them to go off after some prescribed period.) There may be a couple of additional considerations, so search on motion sensor and check out the other threads. I think there is also a wiki article on this subject. Quote
brad77 Posted January 11, 2010 Posted January 11, 2010 As oberkc said, your program's IF condition is getting re-evaluated when you turn the lights off manually, switching the lights back on. It's also worth mentioning that if you set the motion sensor into "on only" mode, your lights will turn on indefinitely as the motion sensor will never notify the ISY when it is no longer detecting motion. I would use Control here as well. This will then respond only when the motion sensor first detects motion (and again when motion is detected in the future after the countdown is reached). Quote
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.