The battery helps in storing the energy and during the power outages convert the store AC into DC and provides power to the electrical inverter. Once again, if you’re going the generator route ...