@Syltti I'm pretty sure life saving machines or the generators will have a battery that stays charged while the machine is plugged in. Kinda like a laptop battery. Then if the power goes out it starts using the power from the battery.
Art thou green?