A generator automatically detects when power goes offline, then switches over to deliver electricity it generates. It only uses gas or propane during outages. With the power restored, the generator shuts off and you automatically resume using electricity from your local provider.