Motion lighting migrated from simple rules

Trying to clean up some of my apps and I'm the process migrated one lighting rule to rule machine.

But something doesn't seem to be right.

A couple times now, I've had the light turn off on me while I'm still in the room and I'm plain view of the motion sensor.

I haven't turned any logging on yet. Hoping one of you will see something obvious I'm missing.

I did look at den light events, every time the motion sensor goes active I see it setting the dimmer level on the "den light" dimmer switch.

Not sure if my 3 minute wait is the wrong thing or what to use. Or maybe I need to set cancelable to yes on the wait?

It always worked as a simple rule. I just let RM bring it over.

The Delay should be changed out for the following

Wait for events: Den Motion motion inactive and stays that way for 0:03:00

This will restart the rule if motion goes active within the 3-minute "delay"

1 Like

Gotcha.

Should I be sending the dim:100 every time to the switch, or should that be a conditional action, only if the switch is off?

I don't believe re-sending the dim command will harm anything so I would say adding a conditional action would be a personal preference. You could also consider adding a Req Exp for the light being off (or not at 100%). That way when it's dimmed to 100% the rule won't re-trigger.

2 Likes

The main thing annoying about re-sending it will be if anyone tries to manually adjust that dimmer. They'll find that it constantly returns to 100% as soon as they move again.

2 Likes

This scenario is actually where I really like the new conditional triggers. You could set up the rule similar to:

Triggers
Motion (only if light is off)
Inactive and stays for 3 minutes

Actions,
If Motion, dim light to 100
Else, light off

2 Likes

That's a good point I didn't even think of.

I just setup the conditional trigger so it only sends dim:100 if the switch is off.

Lots of these kinds of considerations are built in/configurable in Room Lighting.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.