Motion Sensor - Question

I'm sure this is simple, but I'm drawing a blank trying to figure it out.

I simply want to activate a light on active motion, and turn it off after 15 minutes of no motion, but if there is motion within that 15 minute window to start the 15 minute timer down again...

Built-in apps Hubitat Simple Lighting or Motion lighting will do exactly that. This is my setup in Simple Lighting:

Motion will reset the timer.

Thanks I did this for now in Simple Lighting.

I was wondering how to do this in the rule machine.

I think a "Pending Off" will do the same thing in RM. Here's one I did:

Don’t think this will work.

If the motion sensor becomes active after inactive I’d need it to reset and start all over again ? Would this do that ???

The simple lighting doesn’t allow me to specify only if a specific light is off.

Give it a try.

Here is another example that I know for a fact works as described in the OP. The delay w/cancel will reset the delay off timer whenever the rule becomes true again (that's what w/cancel does).

But there are multiple ways to do this, and Eric's way probably works just fine too.

1 Like

I should break it down more. I created two rule machines and I think this will work but here is what I need.

  • sunset to sunrise
  • kitchen main light off
  • motion goes active
  • turn on Undermount lights
  • turn off after 5 mins when no motion but cancel it from turning off if motion is active again and start this process over...

Thanks for the patience!

Here is what I got.

1 Like

Except on the rule shouldn't it be the kitchen main lights being off, not the under counter ones?

1 Like

Yes you’re correct.

But something else to throw out there. What if I toggle the switch from my phone. Will it still turn off after 5 mins?

Or better yet. What if I manual press that light on.

I suspect this would be another rule.

Correct. You would need more rules to handle those scenarios. Probably only one more, I'm thinking.