And I would invest in solar panels if the cost of installing them would be less in the long term than continuing to be hooked up to the local electrical grid. Storms with hail and wind are common here, and damage solar panels before their useful lifespan has been reached.
I really have mixed feelings about solar panels. In theory, I like the concept of using "free" solar power. But, of course, it's not free. I checked into getting solar panels for my house a few years ago, and the breakeven point on the investment for me would have been somewhere in my mid-90's. If I live that long, it will probably not be in my current house. So, that was a non-starter.
I also considered just getting a small solar panel to recharge my tool batteries, for example. I found a nice solar panel starter kit for about $150.00. But then I checked to see how much it cost me to recharge my batteries on grid power. I have a Kill-A-Watt meter that measures the electricity used by a device, and I found it cost me less than 1 cent to recharge my tool battery on grid power. If I had to recharge one tool battery per day, then it would take over 30 years to recover the cost of that solar panel kit for charging up my tool batteries. Currently, I only use maybe 1 or 2 batteries charges per week. At that rate, it would take over 100 years to breakeven on that purchase.
Obviously, people who live off grid or don't have the option of a power grid will have many other uses for solar panels. I'm just saying that grid power, for me, is a better option.
FWIW, our electric company uses something like 20% of renewable solar and wind powered electricity. They send out a report to us about once a year. However, the cost of solar and wind, today, is more expensive that burning dirty coal. In a small way, I am investing in solar and wind power because those costs are added into our electric bills. I hope someday the economics of renewable energy will cost less than burning coal.