I do not know of an investment that does not incur cost. I purchased the solar project with an expected return, just like any other investment.
I agree the Silicon Valley came into play. Los Gatos is the hottest part of the valley, we get a lotta sun.
When I did substantial work to the house, I insulated the crap outta things and installed ceiling fans.
The investment was paid for in cash, so there was no interest expense. Of course, there was the opportunity cost, just like any expendature.
Our electricity costs are very high and expected to continue to rise. Staying at home this past year added unexpected energy consumption.
So you are right; the investment in the solar project was a no brainer.
Regarding maintenance, I hose 'em off. I did use the car warsh pole and car detergent after the fires. As I posted earlier, they are warranted for 20 years. The chances of something happening around here, beyond earthquakes, is pretty small anyways.
Just for a point comparison, I lived in SE Asia for a number of years. Electricity was and is very expensive. We were vulnerable to typhoons and earthquakes.
I did not buy into solar panels there. Instead I went the passive route using the sun to heat water. A relatively inexpensive way to accomplish the task. Everything else was based on initial cost versus outcome. Buying energy efficient air conditioning systems with inverters and sensor tech really helped as A/C is the biggest user of electricity in those parts. LED lighting was well in play long before it was in the US. Simple ideas like planting small trees around the house helped greatly. In the attic, a simple Panasonic bathroom fan helped to push hot air out of that space with little electricity used.