I have such a problem with fibaro motion sensors. A very simple flow is created. If the sensor detects movement, it is the right time then turn on the lamp at 50% and after 2 minutes turn it off. And in general, the flow works, but after several dozen launches, a strange situation occurs and the lamp turns off after a dozen or so seconds. As if the sensor detected movement and after a while, when it detects movement, because it flashes green again, the lamp turns off.
This is not gonna work as you want probably: You cannot cancel the 2 minute delay. So when the motion is re-activated, it will still disable the light after the first motion-deactivation.
You will need a timer which you can cancel.
Take a look at this (importable) flow:
(When you import the flow with the Device Capabilitites App, all flowcards will be in your language or English/Default).
But the point is that when motion is detected, the light will turn on, but it will turn off after, for example, 10 seconds after switching on, despite the delay of 2 minutes.
Okay:
Motion is detected: light is turned on and a delay starts to turn it off.
You walk out of motion.
Within a minute, you walk into the motion again.
The lamp will be turned on (thus: stays on) and another delay is started to turn it off.
But after a few seconds, the first delay to turn the light off, will still be executed.
A delay cannot be stopped, thats why you need a timer app. So you can cancel a turn-off-“delay” when motion is again detected.
Your flow will only do what you want if you walk into a room and out of it immediately.
Because everytime the motion is triggered, you will turn the light on and after 2 minutes off, no matter what happens further.
And you LOG shows that you tested the motion within those 2 minutes.
As Arie said, the flow is restarted with each movement and then the lamp is turned off after 2 minutes each time.
Some tutorials:
By the way, you can change some parameters in the advanced settings of the Fibaro Motion Sensor and thus influence the detection of movements.
But the point is that when motion is detected, the light will turn on, but it will turn off after, for example, 10 seconds after switching on, despite the delay of 2 minutes.
As already mentioned before, the timer will not reset or stop at all, it will keep running no matter if the flow is triggered again.
If the flow is triggered, and you trigger it a second or even third time, on the 1 minute en 50 second mark to have your responds as example, it will turn off the light because the first flow’s time is still running, and thus turn off the light 10 seconds after it was turned on thanks to the 2nd flow trigger.
Flow trigger 1 [16:50:00]: Turn on light, start delay
Flow trigger 2 [16:51:50]: Turn on light (/stay on), start delay
Flow trigger 1 [16:52:00]: Delay runs out: Turn off light
Flow trigger 3 [16:53:40]: Turn on light, start delay
Flow trigger 2 [16:53:50]: Delay runs out: Turn off light
Flow trigger 3 [16:54:40]: Delay runs out: Turn off light (/stay off)
Think about using “Zone activation” instead.
Use two flows, one for turning on the light when the zone becomes active (sensor senses movement and time is…).
Second flow to turn off the light when the zone has been inactive for x time.
Works perfect for me. I also use luminance in the mix so that the light only goes on when it is dark enough.
Indeed!
With lux.
On zone activity.
And if you want to use timers per se, turn the light on when the motion is detected, and start the timer for turning off the light when the motion is no longer detected.