i am trying to automate a ventilation motor on the roof.
i want it to be auto on.
between 06:00 and 22:00
in this period i want to be able to turn it off for X time and then turn on by auto again.
if i turn it off after 22:00 before 06:00 it stays off untill 0600 then it turns on again.
it kind of works. if i just restart Node-Red it dont work but if i activate the switch first it works within the timeframe. if i turn it off outside the time frame it do not start again att 06:00
node-red-contrib-stoptimer2 (node) - Node-RED works pretty well for me, assuming the time X you mentioned is fixed and not variable. There are other nodes that do more with time, but KISS.
it also works here if i first activate the switch and then turn it off again then it starts after X time BUT
if i restart Node-red / the server it will not work
also if i deploys flow after a reconfigure it will not auto start