A whole house generator works by using an internal combustion engine, usually fueled by gas or propane, to generate electricity. When a power outage occurs, the generator's automatic transfer switch detects the loss of utility power and activates the generator. It then supplies power to the house through the electrical panel, providing electricity to all the connected circuits and appliances.