The technique developed for the 'tuyaTRIGGER' feature of the tuyaDAEMON project (an IOT framework), uses a Tuya switch
as a dual port HW register.
Better, the switch is still usable as an IOT switch, only the countdown function
is required.
A downsized implementation (3 nodes only) allows you to add remote control (from anywhere) and voice control to any node-red flow.
Hope that this gives you great ideas.
Best regards
m.s.