This is why you have a separate defense grid, and a capacitor farm to serve defense demand, and when the capacitors run low you have a logic network to read the value of `A` (accumulator fill %) and turn off everything that isn't critical (mining, etc). (Of course, you'll need this switch at any satellite installation too.)
You may need to shift-click some electric poles to disconnect them from other poles, and use copper wire to connect them exactly how you want.
Add a lowkey alarm buzzer (the speaker) to let you know this is going on. Try to have a second, louder one that detects whether it's failed and the factory is still on because of a short circuit. Conduct tests by wiring in a constant combinator outputting a fixed value of A (possibly negative).
You may need to shift-click some electric poles to disconnect them from other poles, and use copper wire to connect them exactly how you want.
Add a lowkey alarm buzzer (the speaker) to let you know this is going on. Try to have a second, louder one that detects whether it's failed and the factory is still on because of a short circuit. Conduct tests by wiring in a constant combinator outputting a fixed value of A (possibly negative).