Best way to deal with multiple motion sensors for one light switch


#1

1) Give a description of the problem
I have a hallway/staircase that requires two motion sensors to cover it effectively.

2) What is the expected behavior?
I would like switch to activate if either motion sensor becomes active, and deactivate if both sensors become inactive (preferably after a short delay)

3) What is happening/not happening?
Currently switch is activating reliably, but I seem to be having some issues with deactivation being equally reliable. In some cases it seems to work, but in others the lights won’t reactivate if motion occurs after they shutoff for a period of time.

**4) Post a Green Snapshot of the piston!

**5) Attach any logs (From [ST IDE]


#2

I think I have solved it myself by creating two stages to the inactive block:

  1. If any of the devices change to inactive
  2. then if all of the devices are inactive
  3. then with device
  4. wait 1 min
  5. turn off

#3

that will work. also, if you changed the condition from stays inactive to was inactive for at least 30 seconds that should work as well.


#4

Thanks!


#5

you are welcome.