Conditional Statements for Triggering Lights from Multiple Motion Sensors

I'm using the Rule Machine.

I have motion sensors at the top and bottom of the staircase. I'm trying to create a rule where the condition is if I walk down the stairs and trigger the top motion sensor and then trigger the bottom sensor, then my bedroom lights will turn off.

Can someone help me in achieving this condition?


It would be good to know a couple things for this automation:

  1. How long does it take you (or your household members) to walk from the top of the stairs to the bottom?
  2. Which motion sensor are you using? And what is its cool-off period? By the latter, I mean - how long does it take to switch from a state of "motion detected" to "no motion"?

With all that said, your rule could be something as simple as the one pasted below.

  1. In Sleep Mode, when an upstairs motion sensor is triggered, my nightstand is turned on to a level of 10% (or dimmed from whatever level it is at to 10%).
  2. When a second motion sensor is triggered, the nightstand is turned off after a delay of 15 seconds.

  1. It usually takes me no more than 10 seconds to walk down the stairs.
  2. I'm using the SmartThings Motion Sensors. The cool-off appears to be within a few seconds.

I'll give your rule a try to see if this works for my case.

Thank you.

1 Like