[...]
3. At the moment it appears that the rule is being run everytime the trigger is true, without terminating the already running instance of the rule.
I have a PIR and a Light. When there is moment I turn on the light, wait for 180 seconds, then turn the light off. At the moment when I walk into the room the light will turn on (good) if there is only 1 trigger this is good, if I stop moving, then move again the rule is triggered again, turning on the light (which is already on) then the first timer ticks over and turns the light off, then the motion turns the light on again. which is about when the 2nd rules timer turns the light off again etc... My desk lamp has been flashing at me for the past 5 minutes :?
[...]
Thanks to Lars, I finally got my Hue-lights working and the first thing I wanted to do was get the light in my bathroom on a PIR sensor (my kids always forget to turn of the lights
).
I ran into the same problem...
I made two rules:
- If motion, light on
- If no motion, wait 120sec, light off
The problem is, the sensor that Securifi supplied has (in my opinion) some strange behaviour.
When it detects motion, the led turns on and it sends a 'Motion' signal. Then the led turns off again, and it immediately sends a 'No motion' signal.
The result of this is, as shstevenson explained, that even if there is still motion, the light goes off after 120sec and it immediately turns on again.
What happens next depends on how the detection time for the PIR is set. For example, if it detects motion every 30sec, the light goes on and off every 30 sec.
Quite annoying and pretty much unusable
Should I use another rule to turn off the light, or is this something that the software team has to fix?