I have motion sensors and a contact switch I'd like to trigger my lights on and motion to control how long the lights stay on. I have tried to set up a simple automation but cant add the motion sensors and contact switch to the same automation. Looking for advice on how to do this?
I would use Rule Machine for this.
Motion sensor active or contact switch active
Turn on lights
Wait for condition: motion stop -> duration X Minutes
Turn off lights
I will give it a try, thanks.
The motion lighting app also options for contacts.
I use Motion Lighting and the Zone motion app. I use the contact motion app in Hubitat’s github to make my contact sensors work as motion sensors in the Zone Motion app along with my actual motion sensors. The Zone Motion app creates a virtual motion sensor that is used as the motion sensor for the Motion Lighting app. I’ve been using this setup for a couple years now and it has worked great.