I have a motion sensor in my office that I want to turn on in the evening and turn off after it there's no motion for X minutes. I made a rule that cancels the delayed event each time it detections motion and starts a new delayed action... however, it seems to trigger the delayed action the moment the sensor no longer detects motion. As soon as the sensor goes to "inactive" my lights in the office turn off. What am I doing wrong?
Here's a snippet of the log... note that the first action is the last executed, and that action clearly shows the Hue Office Lights being turned off immediately (80ms) after canceling and setting a new delay of 3 minutes...
dev:142020-12-01 03:50:53.212 pm infoGroup Hue Office Lights was turned off app:422020-12-01 03:50:53.132 pm infoAction: Off: Hue Office Lights --> delayed: 0:03:00 (cancelable) app:422020-12-01 03:50:53.106 pm infoAction: Cancel Delayed Actions app:422020-12-01 03:50:53.104 pm info<strike>Action: END-IF</strike> app:422020-12-01 03:50:53.102 pm info<strike>Action: Toggle color: Hue Office Lights ->Daylight ->Level: 50</strike> (skipped) app:422020-12-01 03:50:53.098 pm info<strike>Action: ELSE-IF (Time between 9:00 PM PST and Sunrise(F) [FALSE]) THEN</strike> (skipping) app:422020-12-01 03:50:53.018 pm infoAction: Toggle color: Hue Office Lights ->Daylight ->Level: 75 app:422020-12-01 03:50:53.015 pm infoAction: IF (Time between Sunset-30 minutes and 9:00 PM PST(T) [TRUE]) THEN app:422020-12-01 03:50:52.974 pm infoOffice Light Manager Triggered app:422020-12-01 03:50:52.967 pm infoOffice Light Manager: Office Motion Sensor motion active dev:302020-12-01 03:50:52.878 pm infoOffice Motion Sensor is active
Any feedback is gratefully appreciated! Thanks in advance!
Edit - I'm using HE 184.108.40.206