Here is my rule
Color Temperature: WIZ Loft 4, WIZ Painting , WIZ Loft 2, WIZ Top of Stairs, WIZ Loft 3, LIFX Loft Wallside, WIZ Loft 1: 3000 -> Level: 100 -> Fade: 5
Off: WIZ Loft 4, WIZ Painting , WIZ Loft 2, WIZ Top of Stairs, WIZ Loft 3, LIFX Loft Wallside, WIZ Loft 1 --> delayed: 0:05:00
This just does what it wants, sometimes a minute, sometimes about 2 mins...but never ever 5.
Any ideas??
What is the trigger for your rule? It is likely that it is re-triggered multiple times and the delay remains for it to shut down in that case. This will give the impression that it turns off when it shouldnātā¦
1 Like
I am triggering it with a motion sensor.
Select Trigger Events (ANY will trigger)
Loft Ceiling Motion Sensor motion active
I walk in front of it to trigger the lights, set a stopwatch...and never has it waited for 5 mins before turning them off.
need to post logs.. to provide any reasoneable feedback
Ok, I am super new to this. How do I grab what you need?? I have the logs turned on, but there is a LOT of stuff in there.
you will need to make sure to turn on debugging on the particular devices and the automation.. then goto logs, prior logs. and scroll to the time in questions, you may need to choose more..
you can also select the individual device/automation and then narrow down what is visible.
if on windows take screen shots and post (do not copy the text and post... too long)
for windows use "snip and sketch" ... built in..
You'll need to join the Owners group so you can post screenshots.
https://community.hubitat.com/g/owners
1 Like
Even without logs, the most likely problem is apparent: your rule turns the lights on when motion is detected, then turns them off after two minutes. While you never said what you want to happen, a reasonable guess is that you want them to turn off two minutes after motion goes inactive. Nothing in the rule is looking for that, and there's a second issue that nothing cancels your delayed action, even if motion becomes active (again) in the meantime.
You can fix this by revising your actions:
On: Lights
Wait for expression: Motion inactive --> duration 0:02:00
Off: Lights
Waits, unlike delays, are automatically canceled with re-triggers, so this also takes care of the other issue.
You may also wish to consider Basic Rule, which can handle this same automation more easily, or a Lighting-specific app like Room Lighting that gives you more options and is still easier to set up. If you want to keep using Rule Machine, I would suggest reading the docs, Rule-5.1 - Hubitat Documentation, which explain how it works. It is working correctly in terms of interpreting your rule as it was written. Asking questions here is also good!
3 Likes
You didn't put "Cancelable" on the delay for turning off.
Incidentally, the next release 2.3.3 will have a slick way to do this automation in Room Lights.
3 Likes
Oh geez....thanks Bruce. Should've figured I missed something simple.