thermostats[0].heat()
}
}
-
+
def auto() {
if (thermostatMode != "auto") {
this.thermostatLatestMode = "auto"
}
}
+ def emergencyHeat() {
+ if (thermostatMode != "emergencyHeat") {
+ this.thermostatLatestMode = "emergencyHeat"
+ this.thermostatMode = "emergencyHeat"
+ this.currentThermostatMode = "emergencyHeat"
+ thermostats[0].emergencyHeat()
+ }
+ }
+
def off() {
if (thermostatMode != "off") {
this.thermostatLatestMode = "off"