Node-red enable/disable flow via dashboard toggle switch (binary_sensor?)

Howdy folks,

Simple question, but after searching around I’m still not able to find an answer.

I have an automation for covers in node-red that works fine and opens/closes depending on the sun position and a few other parameters.

Sometimes, I want to “manually override” this flow automation, i.e. temporarily disable it, to set the cover position myself (e.g. when cleaning the windows) and until I decide to resume it. To this extent I thought it could be possible to create a binary_sensor and map it to a toggle switch widget on the dashboard, then have node-red check before any other action if the sensor is true/false.

Probably is very simple, but not sure how to define a binary_sensor whose status is updated manually (and toggle-able from the ha dashboard).

Open for suggestions if you feel there’s a better way to do it (could be a timer instead of a binary state).