The issue is cutting off your inverter from your grid without also cutting off your outlets from the grid. The ways I've seen to do this are to either put some clamp meters on your grid connection and configure your inverter to a "zero export" mode that'll scale depending on your current usage. Not sure about the legality of that; I'm sure it depends on your locality.
Or to put your outlets on a subpanel with the inverter controlling the feed to that subpanel. Maybe with a 2nd lockout connection to the main panel so you can do maintenance on the inverter without having no power.
Or to put your outlets on a subpanel with the inverter controlling the feed to that subpanel. Maybe with a 2nd lockout connection to the main panel so you can do maintenance on the inverter without having no power.