Putting electricity into the grid is almost useless in Germany because you don’t get much back. Solar panels and the legal stuff behind them is expensive and it will take many years to break even. Might be better with an electric car, but you charge your car at night usually. When there isn’t a lot of sun available.