Jump to content

I'm new to this, please help


richardl007

Recommended Posts

Posted

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

Posted

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.

Posted

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).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...