Unless you have an alternative backup power source, your smart thermostat will not work during a power outage, and neither will your HVAC system unless you can supply an alternative power source such as an inverter and batteries.