Motion lighting and auto of if left on

I'd like to have Motion lighting and if someone turns on a light have it turn off if left on. Is there away to have the rule for left on not turn off light if turned on by motion?

Can I clarify something? You want the light to not turn off by motion if it turns on by motion? Then when do you want the light to turn off by motion? Because if you have a motion sensor in the room, you won't have time to get to the switch to turn it on manually if there is a motion sensor. It's always going to turn on by motion.

like @Ryan780 was mentioning I'm not sure what you want to do BUT you can have one rule temporarily disable another rule through the use of the 'Private Boolean's.. you'd test for physical on and set motion rule's PB to false. The off part of your rule would set the motion sensors rule PB back to true.

Something like that..

@spokra It's rather easy in the Simple Lighting App. You can set a light to turn on by a motion trigger and turn off after a configurable time delay.


I also have a "Daytime light timer" rule in the Rule Machine app which takes care of any lights that are turned on manually during the daytime hours.

I have the restrictions set as such:
Hubitat_Rule_Machine_Daytime_Light_Timer_Restrictions

Hope this helps.