In our garage I have installed two SONOFF door sensors to switch on the light when I open the door in the evening. The problem is that once I close the door, the light is switched of.
So instead of installing some PIR movement detector, is there a way of keeping the lights switched on for a preset duration after the door closes?
In addition I would like the switches to generate something like an e-mail message when the door is opened, as some kind of intrusion detection.
I have the switches and light on a dedicated mini-pc system using a conbee II stick.