Sorry for such a basic question, but I’m new to SmartThings.
I have a motion sensor and Phillips Hue bulbs. I would like to have the motion sensor trigger a bulb to turn on, and then have the bulb turn off after x number of minutes.
Is it possible to have the bulb turn off if no motion is detected in x minutes?
You can also use the “Smart Lights” app for this. it is the new SmartThings app that combines much of the functionality of many previous light/switch automation apps. You can find it under “SmartThings Recommends”.
It’s not quite the same functionality. That’s what people are saying that the functionality is missing, and what @bravenel has provided to replace that.
The new smart lights does have the ability to set a rule to turn off after a period of inactivity on a motion sensor, but the options are only available to you if you also included in the same rule that you were going to turn on the light from that same motion sensor.
However, many people have use cases where they turn a light on for some other reason, perhaps just with a wall switch or a virtual switch controlled by Amazon echo, but then they want it to turn off after a period of inactivity. That’s what this community code provides.
Actually, Smart Lights does not do this, and that is why this has been posted. Smart Lights does this if you use the Smart Lights automation to turn the lights on with motion, and then off later.
But Smart Lights has a bug that won’t allow you to specify the number of minutes if you only use motion to turn a light off.
Thanks for the App Bruce, exactly what I needed.
One more question, I have light that turns on if door is unlocked, and I like to turn it off let’s say after 5 minutes BUT only if it was triggered by the unlock not in any other case.
Is this possible?