There are two kinds of solar: one that adds to the existing signal from the mains, or one that is self-contained. The second kind is more complicated and therefore expensive. I wasn't aware of the distinction before, but I definitely am now.
Even a small home solar installation puts out enough power to easily kill unsuspecting maintenance personell working on the grid, for example.
So the utility company has to have 100% control over he mains at all time for safety reasons (i.e. your meter must never run backwards). If they cut the power (e.g. for maintenance or repairs), no one must be able to feed power into the grid.
That's why even if you have a battery, said battery can either feed into the grid, or be connected to separate outlets in your house, but never both at the same time.
This is controlled independently by the solar inverters's software, not the utility via any sort of signal. That software is mandated by regulation as you say for the safety of line workers. Recent batteries allow for an "islanding" mode, which allows continued backup power delivery to the house during a grid outage but cuts off the grid connection.
> your meter must never run backwards
... during a grid outage. During normal operation it's fine for it to run backwards. That's what net metering quantifies.
> said battery can either feed into the grid, or be connected to separate outlets in your house, but never both at the same time.
I think this is a technical limitation, since it would require a current divider and 2 inverters, which is a level of complexity not worth it for the application.
Hm. Different countries, different regulations I guess. In my country you have to install a second meter instead.
The setup is more expensive, and it does have to meet certain requirements, but it is definitely an option.
I don't actually know whether that's legislatively illegal, or simply banned by PG&E; but the effect is much the same.