Enable Disable Node RED Flow or Node with Home Assistant

Hi,

I use Node RED (Bigtimer) to switch my pool pump
This runs from 12pm to 5pm
Now I would like to use a switch, for example to start the pump at 6 p.m. and switch it off again after 2 hours and activate the Bigtimer again
Is this possible?
I just don’t want to deactivate the Bigtimer every time in Node Red, switch on the pump, and then switch it off manually later and activate the Bigtimer again

Bigtimer doesn’t care what the current state of the pump is so no need to deactivate/activate it. It will continue to send the on command at 12pm and off command at 5pm regardless.