Hi Matt - The generator utilises an Automatic Transfer Switch (an additional accessory) which detects a power outage, it then safely switches off your mains power and starts the gas powered (LPG or Natural Gas) internal combustion engine which generates mains equivalent power for your house.
Please check the Installation Guidelines under the Product Description on the product page regarding requirements for licensed plumber and electrician professionals undertaking in the installation.