Auto turn off and on


Is there a way to make that lights which turn on and off by motion, will not turn off automatically after some time if we turn them on with a button?


I have something like that. My back patio light comes on by motion sensor, but if I turn on the light switch, it turns off motion detection. However, after an hour of no motion, it’ll turn motion detection back on. You can adjust the timing of that.