I've been trying to come up with a way to prevent or at least detect this without simply leaving the backup power permanently online, but haven't managed to make anything work the way I'd like. I've built a couple of variations of brownout detector that I've seen people suggest, but the combinator-based ones I've tried only work when the brownout is sufficiently severe (it seems like combinators work normally even if they only have ~80-90% power, and only start to slow down when power gets down lower?), and the belt/inserter based ones I've also had trouble getting to trigger reliably in similar conditions.
Can anyone recommend a solid design for a brownout detector that works even if the power satisfaction is high (but not 100%)? Or an entirely different way to solve the underlying problem?
Ultimately the issue is that if you have N accumulators (and ~1.19N solar panels for the optimal ratio), this can supply up to 0.05N megawatts without ever needing backup power (by the normal solar ratio calculations), but adding backup power with the common RS latch setup only reliably supports a peak consumption of 0.3N megawatts, and I keep not noticing that my factory actually peaks at more than that :/
Edit: also the assumption here is that the backup power IS sufficient to supply factory peak demand, otherwise you're stuck anyway
