Hey guys, I need your help with something.
I used a blueprint for LED light automation in my office. It works like this: when motion is detected, the lights turn on. If there’s no motion for a certain amount of time (let’s say 30 seconds), the lights turn off.
I’d like to use the same blueprint for the lobby lamp, but it’s a bit trickier. The lobby lamp can change its color based on the on/off input between 3 seconds.
So, what I want to achieve is: when motion is detected, the lamp turns on. It waits for 300 seconds. If there’s still motion, it restarts the automation. (This should be the same as the blueprint.)
The problem is that when the lamp turns off, someone just steps in, and it turns on again, but with a different color. So, it needs to wait at least 3 seconds before turning on again.
Can you help me figure out how to do this? If motion is detected, the lamp should turn on. It should wait for 300 seconds. If there’s still motion, it should turn off. If there’s a new motion when the lamp turns off within 5 seconds of turning off, it should wait for 3 seconds before turning on again.
Many thanks in advance,