minor changes for default thermostatId in Functions