Of course, that's dependent on permitting, which can fine you or require you to tear everything down on a whim. It also has huge up front capital costs, with battery replacement being additional burdens going forward, and you probably need to change your lifestyle significantly and rework your house structurally to be more power efficient.
Certainly some of the local legislation regarding such permitting is affected by local electric companies wanting to dissuade that. But I would hope that the tides are turning in the direction of easier personal energy independence over the long term.