I have one door sensor + two motion sensors controlling a light.
I need turn on the light when wherever these sensors are trigged (contact and motion) and keep the light on while one of these sensors continue enabled.
What the best app to use it?
I'm trying Room Lightning, however, unfortunately, it needs all sensors be trigged to really turn lights on.
Room Lighting does need some "activation" event to turn the lights on, but I'm confused: how do you want it to turn the lights on if not for one of these? It can't know what you're thinking.
Additionally, from your other post, it seems like maybe you managed to get something set up in the meantime. Is that app working how you want?
Whether you want to use Room Lighting or Rule Machine (based on your post last night), both will accomplish what you want. For example, this Room Lighting
Tks. I I'm using the Room Lightning, it's easier than Rule Machina.
This is what I did here.
Basically I want any sensor (contact or motion) turn on the lights and keep it on while sensor is open or detecting motion. After 2min of motion/closed, turn off the lights.
What you have should work; though, it's cleaner if you change your limits to my suggestion. From the documents (Room Lighting | Hubitat Documentation):
Waiting for both motion inactive and contact closed before Turning Off
If both "motion stays inactive" and "contact stays closed" means are selected, an option is presented that allows for waiting until the time and conditions for both have run their course before turning off. The longer of the two times selected is used.
Unfortunately, without a dimming function in that relay (looks like that relay only supports on/off), there isn't a way of manually overriding Room Lighting at the switch. If you have a button device or could control a virtual switch in some way, it would be possible to override the motion/contact rules.
You need to add the limit "waiting for both motion inactive and contact closed"; otherwise, Room Lighting will turn off the light with whichever happens first.