1) Give a description of the problem
I want to setup my piston such that if my motion sensors stay inactive for 15 minutes, they will then briefly dim for 3 seconds, go back to their original brightness, then wait another 30 seconds, and then turn off. The dim is to let anyone know in the room that the lights are about to go off, and they need to move if they want them to stay on.
2) What is the expected behaviour?
(PUT YOUR INFO HERE)
3) What is happening/not happening?
I can’t figure out how to dim the lights and get them back up to the original value. I tried capture and restore local state, and also adjust level, but they were getting cancelled and not executing when motion changed to active again, so I took them out(they were in at line 48). The piston works okay as it is, I would just like a warning to those in the room to move, so they can move to keep the same lights on at the same brightness, before they all go out.
My goal is to that if there are only 2 lights left on, make those two lights dim to alert they will be going off soon, motion goes to active, and those two lights stay on for at least another 15 minutes at their original brightness.
4) Post a Green Snapshot of the piston
5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)
REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.