Connected thermostat