There is also the problem of backfeeding, but this is more theoretical - even if you know to limit your power use, your neighbors won't and so your generator will trip its own breaker. Linemen are taught to either treat power lines like they are live, or to short them to ground - it can happen they don't do this and you kill a linemen, but still not as big a worry as it is made out.
They make generator "inlets" that sidestep all these problems when used correctly. Most common I've seen is a block so you can't have the inlet and the main breaker both on at once.
it is not theoretical from the POV of power company employees working on their lines. the power goes out, they go to fix the equipment or wiring, and if the inverters connected to the grid have not shutdown, there could be 10s of kW to even MWs being backfed into the system they are working on.
that's why in the US at least, grid-tied inverters are required to have protection against this. if they do not see power from the grid, they shutdown (and rather quickly).
I realize this is a complete noob question but I'm still curious: with enough "backfeeders" could it not in theory be possible that the backeeders see each other's output and keep operating?
Say, a few houses at the end of the line, each with very little electricity consumption (no-one's at home), but with panels and inverters going full tilt, something like that?
(the specific case of very little consumption but panels and inverters going full tilt doesn't work as this would lead to the frequency rapidly increasing, exceeding inverter set points and the local grid collapsing with all the inverter tripping off. The danger scenario is closely matched load and generation, like a real grid)
Perhaps a more robust solution would be for the power company to install remote-switchable circuit breakers at various places of the grid. Use some sort of wireless IoT protocol to listen for "on/off" signals and to report back "I'm now on / I'm now off!". Then the power company can disconnect parts of the network by themselves, without trusting that every inverter, generator and battery will do the right thing.
Also, people have been back peeking the grid from their home generators for decades by now. Solar and inverters are a different variation of that attack, but it is nothing new. Any utility will have procedures because they can't guarantee that's not happening and we learned years ago.
I'm not saying it never happens, only that correct procedure already makes it not an issue
If this weren't done, there would be risk of electricution to anyone working on wiring in the house or on the utility distribution network.
It outputs at the same phase and frequency as the grid, and with a slightly higher voltage (think of a ball rolling down a slope from a higher voltage to lower voltage).
If the grid is down then it stops the inverter for a minimum safety period (some minutes iirc)
Skip to about 10 minutes into this video: https://practical.engineering/blog/2022/12/5/what-is-a-black...
Furthermore, the danger of backfeeding is if you do it in a power outage and you start to power your neighbors' houses. It'll overload your generator and create a hazardous situation for anyone working on the wires. (This is why you're supposed to install either a generator switch or interlock. I have one that only allows me to energize when my main breaker is turned off.)
Solar inverters (esp for this use, but also in general) are grid following; they'll use the existing frequency and support it, and if the grid goes off they'll go off too and do no power-off backfeeding.
The inverters are thus broadly safer to be plugged in to systems that are otherwise unprepared.
Generators could be made grid-following (many are now inverter-based), but for most users that would be silly, since the supplemental power would be more expensive (and louder!) than from the grid.
It can be quite safe to plug a generator into an outlet if you take precautions to properly island the system. I had an interlock on my breaker panel that would let me turn on a 50A backfeed breaker if my main breaker was switched off.
tl;dr Plug-in solar inverters must power off within a second if they stop detecting the grid's sine wave.
Generators have no such protection and will happily backfeed through the transformer outside your house to energize power lines. Line workers are careful, but there have been deaths. After hurricanes seems the most common based on a quick search.
So it's not a stupid question, indeed you should never plug a generator into an outlet. The double-ended "suicide cord" which allows you to do that has that name for a reason. (It can be fine to plug a generator into an inlet circuit, if the electrical panel has a proper interlock that physically forces disconnect from the utility before connecting the generator inlet.)
The better way (and legal way) to do this is to have a generator plug plug installed, this way when you switch over to generator your property is disconnected from the grid.