I'm trying to let a Shelly 2.5 control power for my 3D printer mainboard on one port and for the printer's Octoprint Raspberry Pi on the other. My 3D printer's 24V DC supply is powering the Shelly 2.5, whose port 1 switches the 24V printer's mainboard, and port 2 switches a 24V->5V buck converter driving the OctoPi. I wired it as documented with the V+ (DC 24V) directly connected to the mainboard and buck converter, and the V- (DC 0V/Gnd) to the Shelly's L ports. Thus the Shelly wants to control power to each device by controlling presence of 0V/ground to each device.
The problem is the OctoPi needs a serial connection to the printer's mainboard, and using either USB or GPIO for serial means connecting their grounds together. Thus with the above wiring, when the Shelly turns on say O1 but not O2, both of the loads come on anyway because the serial ground still completes the power circuit for the 2nd load bypassing the fact that the Shelly is not connecting O2 to L.
It would be nice if I could invert the polarity of the DC+ and DC- connections, as that would solve the problem as 24V would be controlled to each rather than 0V. But I assume the Shelly doesn't support that. Appreciate any suggestions, thanks.