Also, there are a few things I wanted to improve on that thread, so this is my chance.
Disclaimer: While I have been writing code in this domain for a decade, I am not an electrical engineer and mostly only learned what I needed on the job. Electrical engineering is complicated, people spend years studying it, and there is no way I could cram everything needed into this thread even if I knew it all—which I absolutely do not. So I have to oversimplify things.
Dear electrical engineers, reading this might physically hurt you. I am sorry.
Now let's get started!
@sbi
Here's the quote from the municipal power CTO about why they we need batteries: "if we go above a certain threshold with solar, when we don't have enough load, current power power protection devices will not work correctly, that can lead to damage to the grid"
I don't know what threshold that becomes a problem but I found a chart that says the town gets about 6% of electricity from solar and had about 12 MW installed in 2022, with a strong political mandate to be carbon free by 2030.