Hello! I am hoping to get help creating a piston (or few) that will do the following:
- For one “group”/set of lights, turn them all (or just a selected few–doesn’t matter) on if all are off and motion is detected. This is more or less the same as the built-in Smart Lighting app.
- When no motion is detected for X minutes, turn off any lights in this set that were on. (Again, this is the same as the stock app.) Or, see below for an improved wish I have for this.
- When motion is detected again, restore lights to the state they were in when motion stopped–i.e., if any lights in the set had been off the whole time or were turned off since the motion detected turned them on, leave them turned off.
- Wishlist item: rather than turning off immediately, dim the lights (that are on) to Y percent brightness for Z seconds/minutes, then turn off.
I have CoRE installed and have tried to set up a couple pistons but haven’t had any luck doing what I want with any ease. Would anyone have any ideas how I could accomplish this, assuming it’s possible? I posted a thread asking if anyone had written a SmartApp specifically for this (Smart app to control group of lights with motion sensor and not turn on those that were off originally?), but that doesn’t seem to be the case.
Thanks!