Would it be legal to connect a house to the national grid, and attach the meter to a whole panel that has basically one live 230V 10A circuit on it, with a 15W lightbulb connected? The rest of the house could have its own offgrid panel and inverter system, islanded from the grid-connected breaker panel.
To answer your question (and a similar comment directly below) that's one solution, but you still have to pay monthly charges and taxes even if you have a "dummy" connection. Besides the fact that if the utility worker that checks the electricity meters (yeah they're not online!), comes around for a reading and sees that you have solar/wind you're screwed.
You're screwed how? Because it's not allowed to have a photovoltaic system that is separate from and islanded from the grid? As long as your meter and the panel it is connected to are up to legal code, what is illegal?