Turn light off after no motion, but not if it was manually turned on

Hey guys,

I have a light set up to turn on when motion is detected, and off after 10 minutes of no motion. But the problem is that if I turn on the light manually, and then later it detects motion, then 10 mins later it will turn off the light.

Is there a way to turn the light off after no motion ONLY if it was originally turned on by motion?

This is a fairly common question, if you search the forum you will find a number of different approaches to it. Most recently, see the topic “baby sleeping” which addresses a similar issue but from the other side:

And for the exact same question as yours, here’s one approach:

1 Like