How to connect the energy storage system to the solar storage and charging