It sounds like you want to specifically run ON GRID. To do that you want to turn off the breakers that feed your powerwall and solar inverters if any.
The gateway may throw errors, but it will not be able to deploy any power. However the gateway hardware will still be connected, so this will...