A shortage of energy switches the colony off at once.
Battery banks that keep what is left over and give it when it runs short: the colony holds on for a while without going dark, like a computer with its UPS.
Energy Storage keeps the energy the colony does not use at the moment. It costs 1,000 science and forty-five minutes, asks for certification 10 and opens the Battery Bank, which holds 500 at level 1.
The batteries charge with the surplus of the grid and give it back when the use goes above production, so a short deficit no longer cuts buildings.
Certification 11 asks for the bank in service, 2,000 energy in reserve and three hours of play with no cut. At level 1 that reserve needs four banks, or fewer if you upgrade them.
It is the last technology of the energy line. Research it together with Water reserves: the same certification asks for the water reserve.