Many larger municipalities are incentivizing more solar installs with battery capacity. Having solar generation and battery storage distributed throughout the city will reduce the need to have the grid import all of the energy demand from far away sources.
Modern solar, battery, and charger combos can easily be configured to store energy produced by solar panels on the house and operate the charger in a way that primarily pulls from the solar generation and the house's battery capacity (by telling the battery to discharge while the car is charging, essentially).
Power companies are also moving heavily toward "virtual power plants", which would be a good search term if you want to learn more.