I built a tiny AC switch which Im using to turn my garden and path lights on. Its replacing an old digital timer which turns the landscape and path lighting after sunset.
I hacked a 4-way power strip and put a single relay on the live wire (Brown in my case).
In terms of features:
Manual Button (widget, not physical button)
Time Input (start/end time)
Remote Trigger with timeout (use bridge to trigger lights with a timeout via another ESP on a gate or PIR sensor)
Slider widget can set the delay from 1-10min.
When I build another one, I will also include the power supply for the ESP inside the case and splice it in to the main line. This time I didn’t have a big enough case.
I use the remote delay trigger when my gate is opened during night hours to help light up your way to the door.
The Timer widget trumps the delay too.