I can’t get my head around this…
I have a fibaro switch for the lights and also a Hue motion sensor.
I can easily turn on the fibaro/lights when motion is triggered on the motion sensor.
After 10 minutes I want them to turn off. Easy with a delay in the same flow.
But here comes the tricky part:
If I’m still in the room I want to reset the 10 minute delay / adding time so it always turns off 10 mins after the last movement registered.
If I trigger at 12:00 it will turn off at 12:10.
But if I’m in the room 12:05 it will still turn off at 12:10 and the second delay happening 12:15 is obsolete.
Result: Lights turns off while I’m in the room and I start jumping around to trigger the sensor…
I’ve tried to a global variable, but it always get overruled by the first run.
Any good ideas? The best would be if you could set a global timer and just add time to it, but I don’t see this option.