Measures before solar energy is connected to the grid