This is like any other financial decision. You need to do the numbers and recognize any risks.
We were contemplating buying solar about 13years ago. It was going to cost us $12-13K and the system would cover 100% of our need. In our state, the power company has to buy any extra energy at retail cost. We still need to pay for the connection at about $20/month. We decided to hold off as the payback was about 20 years. We were told that the expensive part of the system is the inverter. So if the inverter went, we wouldn't break even. We decided to hold off. A few weeks later, one of the companies we were dealing with called out of the blue. He said our state now allows leasing and it didn't work for everyone, but it did for us.
Our buy at 12-13K, was now a one time payment of $5200 to lease the system for 20years! So payback was cut in half, production of power was guaranteed, and IF we wanted at year 7 to own the panels, we could pay $700. It was a no brainer for us! The system has sometimes produced under the guaranteed minimum. It has often produced more than we used, so there have been years when we got a check from the solar company and had a $0 bill from the electric company. Every 12 months, the electric company "trues up" with us.
I also factored in the risk. For me the production was guaranteed. I decided that at year 7, I didn't want to own the system, because the guarantee would disappear and if the inverter went, I had to pay for it. I read the contract carefully. At the end of 20 years, the company would ask me to buy the system for whatever it was worth, or I could tell them to come and get it. They had to right to then say, "sorry, we don't want it. The system is yours." I was confident the last scenario was likely. Well, the company went bankrupt. We received a letter a few weeks ago. The system is officially ours. It still works and I have been making money off my investment since about year 8. Thank you fellow taxpayers for funding my system. It really was a no-brainer for me and an example of poor government use of taxpayer funds.