Integrating a photovoltaic storage system in one device