Off-grid power system with PV and energy storage