You mean something like feeding a grid fed inverter an artificially generated wave form from a Raspberry Pi and some relays or something?
The most common solution to that is a switch that goes through fully disconnected in the middle, and I've even seen a sliding metal plate used that interferes with at least one or both circuit breakers.
In the US they cost a lot more, but they still exist; there's a 750-watt unit at Horror Fright for US$70: https://archive.fo/1pzdK