Not all homes are situated for solar even if they’re in appropriately sunny locales, and not all locales are sunny even in California. Problem 1.
Problem 2: not all farms are located in an area that gets sufficient wind to warrant a windmill or wind turbine. Even the most efficient low speed wind turbines just won’t work below 10 mph wind or so.
You can’t just legislate this stuff. I’m not opposed to either wind or solar, where it works. And, there are many places where it would work in California. But, a blanket edict via legislative or regulatory fiat is idiotic. Such determinations are highly individual based upon exposure, shade from other structures or trees, average cloud cover, average wind speed, etcetera.
Making a rule or requirement won’t make it work where it just won’t work.
"Beautiful old shade trees you've got there. Now take them down."