Understanding What a Wi-Fi Thermostat Does