A 79 kWh XOLTA energy storage battery is installed for better utilization of the PV energy. Surplus PV production during the day is stored to supply the EV charging during mornings and evenings. For optimal storage, an optimization algorithm controls the battery charging/discharging by foreseeing the PV production, electricity price and EV charging.