V3.60 beta versions had a node called a “Virtual Switch” which added a switch pane to the console and could be used to control actions in a Node Red flow. I tested it and it worked most of the time but had a few problems which were not solved in time so it did not make the final release. The Virtual Switch node should return in V3.70 beta testing soon. Create your flow but for the moment using an inject node that has a 0 or 1 output and swap that to a virtual switch when they come back.