Hybrid grid power system with PV and energy storage