Batteries have the capability to charge from the grid in case there is insufficient solar energy production.