Right, but when do you know about a grid shut down? Sure, PG&E might send you a notification, but what if it was sudden? Storm, wildfire, etc. Wouldn't having your battery pack charged up just-in-case be the way to go in that situation? That would mean charging your pack every day with the generator, just-in-case. Or at least making sure it was charged up and ready.
For example, our power went out this morning for about 4 minutes. If we had a battery pack charged up and ready to go, with an automatic transfer switch, then we wouldn't have even noticed. IT guys like me call that "uninterruptible power supply". Our datacenters have both a generator and a battery bank, with the battery bank charging off the grid when all things are OK. The generator is only used if the outage goes longer than the battery bank can support. Then the generator does both...it charges the battery bank as well as running necessary systems.
I'm picturing a battery bank that is charged off the grid at grid costs, with the ability to charge off the generator should it be needed. Depending on how you size your battery bank, you might go an entire outage in your area without ever needing to fire up the generator at all.