Normal switch and timer off

@Aravindvr Don’t forget to search this forum for answers already provided…

I have done something similar using the manual button on a Sonoff Basic and a timer widget… Can be used on any MCU, with a button on a GPIO.