On off switch loop

Maybe you could use this new node [ANNOUNCE] node-red-contrib-ui-countdown-timer-switch