I have a closet door switch which turns on the light when the door is opened.
However, the door is always left open by the kids and therefore electricity is wasted.
I'm looking something like this:
but with a Sonoff device.
The idea is to add the device to the circuit and program it start a timer (for example: 15 minutes) when there is electricity. It should cutoff electricity when the timer expires. It should also reset when the door is closed (also a circuit break).
Is this called INCHING?
Can someone say if there is a device which can do this and will the software support it?