Room lighting "OR" condition

I want to set up a rule the a led strip will turn on when contact sensor is open OR button is pushed, and also limit this between two times.

When the contact sensor is open and motion sesnor ia active, than the led strip will turn on and when the contact sensor is closed the led strip won't turn even when motion is active.

As for the button, the idea is that when it is pushed and motion is active, the led strip will turn on.

So basically the idea is either the contact sensor or the push of the button will turn on the light when motion is active.
Is it possible to do in Room Lightning?

You need to sort with careful thought between a Condition that must exist to turn on, and the actually Means to Activate. Based on this sentence, the Condition is that Motion is Active. So by itself, motion won't turn on the lights. The Means to Activate are the contact sensor opening, or the button being pushed. Either of those will turn on the lights if and only if Motion is action. Sound right? Yes, this is easy to setup in Room Lights.

From my point of view the condition is the button push or the contact sensor being opened. The means to activate is the motion being active but it's just my logic.
Is this about right?

Thanks!

What you have activates on motion, contact and buttons. I thought you wanted only contact and buttons with motion as a Condition??

Question for you: Do you want it only to turn on when either the contact opens, or a button is pushed, but then only if motion is active? Motion being active in and of itself should not turn on the lights, right?

Hi, yes. You are right.
Motion won't turn the light by itself, only when the contact is open or the button is pushed.

I read the documentation again and set the RL diffrently. Does the following make sense?

I also read about time periods and i decided that from sunset to 6am the light will be weaker, and from 6am to 8am the light will be stronger so is set the following.
I didn't quite understand the "earlier of two times" or "later of two times".


Any thoughts?

Does your new setup work?

It seems off to me that you're still using motion active as the primary means to activate when it's really not... Why not use contact-open and button-push as the means to activate and then limit activation to only when motion is active?

Earlier/Later of Two Times is most commonly used with sunrise/sunset stuff -- there may be lighting things you want to happen by a certain time, but that need may vary over the year dependent on how much (or little) daylight is available at that certain time.

1 Like

Is it just me or is that option not there and you have to use « custom attribute » to get around motion missing from the list

Yes, exactly.
I still can't figure out why Means to activate isn't the motion sensor.

Do you want motion becoming active to turn on the lights? If so, it should be a Means to Activate. But, I thought you wanted the lights to be turned on by contact or button, with motion active as a Condition that must be true. Which is it??

I can't find in "limit activation under these conditions" motion sesnor, that's my main problem.

But i'm still not sure what is the difference between the two:

  1. Means to activate - motion sesnor and condition is button push.
  2. Means to activate - button push and the condition is motion sesnor.

They sound about the same. Is the resault will be different?

You have to use Custom Attribute, and select motion there.

Button push cannot be a condition. These two are completely different. The Means to Activate starts things, and the Conditions are tested at that point, and activation will only happen if they are true.