Turn thermostat on when closing window