Adding new default value to thermostat device.
[smartthings-infrastructure.git] / Thermostat / Thermostats.groovy
index e2defec220cc3318f3c983c1121a6e3ebb0739fe..9c660c9badf176dae3da5c03810c6e64082a12d5 100644 (file)
@@ -66,9 +66,9 @@ public class Thermostats{
                        this.thermostatSetpoint = 60
                        this.thermostatFanMode = "circulate"
                        this.thermostatLatestFanMode = "circulate"
-                       this.thermostatMode = "off"
-                       this.currentThermostatMode = "off"
-                       this.thermostatLatestMode = "off"               
+                       this.thermostatMode = "auto"
+                       this.currentThermostatMode = "auto"
+                       this.thermostatLatestMode = "auto"              
                }
                thermostats.add(new Thermostat(sendEvent, id, label, displayName, this.temperature, this.currentCoolingSetpoint, 
                                                this.currentHeatingSetpoint, this.coolingSetpoint, this.thermostatSetpoint, this.heatingSetpoint, this.coolingSetpointRange,
@@ -141,7 +141,7 @@ public class Thermostats{
                if (thermostatMode != this.thermostatMode) {
                        this.thermostatLatestMode = thermostatMode
                        this.thermostatMode = thermostatMode
-                       this.currentThermostatMode = currentThermostatMode
+                       this.currentThermostatMode = thermostatMode
                        thermostats[0].setThermostatMode(thermostatMode)
                }
        }