but this will switch on the light even during the day time. you need a system to pickup the motion and then trigger the light only in the night.
best way to do this Use a Sonoff switch with a 3rd party day & night sensor light. so sensor will be picking up all the motions and same time it will check the room light condition , if the room is darker Sonoff touch will trigger the light.
Lutz Fiebach
Would be nice for Light on, when Motion detected.
3 people like this idea