Physical switch on i/o input to trigger cerbo relay

As per topic title, I’m new to node red and am looking as to if its possible to place a rocker switch across the digital i/o on the cerboGX and program a flow into NodeRed that will activate the internal relay. My hope is to activate the switch remotely via VRM(ignoring physical switch state) but also turn on/off using switch, similar to how adding a switch to shelly RGBW works.

thanks

Mark