We in UK also use "Many roads lead to Rome"
NOTE: I recommend the 2nd option in this thread: Cancel inputs for a period of time - #6 by Steve-Mcl - because I can help you with it & it doesnt use contrib nodes.
If you were to use that ↑ demo then you would place the gate
in series between the function
and file
node to block / allow the flow of messages. And instead of injects to control the gate
, use your dashboard switch to send the necessary values to "flip" the gate open / closed.