Motion lighting - Request

I’ve recently been trying to not just use rule machine for everything. It’s great, of course, but digging through so many rules isn’t always the best way to organize, especially when there are such nice built-in apps :slight_smile:

My dilemma is this: I have a few doors/closets that I have the following rule for;

  1. If door opened/closed or motion changed
  2. Then:
    A. Cancel this rule’s timers
    B. If door is open, or motion is active
    C. Turn light on.
    D. Else if door closed and motion inactive:
    E. Turn light off in 5 minutes (cancellable)

So the lights shut off if the door is closed and motion is inactive. Now, motion lighting has contact sensor triggers in it, but they don’t follow the delay set for light shutoff. Can a setting be added for them to use this delay, and if motion is detected in that time it keeps the lights on?

Second—I had also set up these rules to determine when a light had been left on (ie, someone left the closet door open). Could there be a setting that will trigger an off event if a contact has been left open for too long?

I understand this is not a priority, of course. Motion lighting is great, I was just a little surprised that these features weren’t in the app :slight_smile:

Sounds like you want Contact Lighting, or Motion and Contact Lighting. But, alas, it is Motion Lighting.

1 Like

Yup! You’re not wrong. I’ll write contact lighting later today :slight_smile:

2 Likes

My solution to this was to create a virtual motion sensor, controlled by a RM, and include it in the ML. Then dont use the contact part of ML.

image

image

1 Like

That’s actually something I was going to try once I get back home next week :joy: glad it works!

(Although, my ideal situation was to have fewer rules/devices to manage, so I’m still planning to finish my app...)