Photovoltaic energy storage and battery replacement