How to connect the three plugs of solar energy