- sendEvent([name: "auto", value: "auto", deviceId: this.id, descriptionText: "",
+ sendEvent([name: "thermostatMode", value: "auto", deviceId: this.id, descriptionText: "",
+ displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
+ }
+ }
+
+ def emergencyHeat() {
+ if (this.thermostatMode != "emergencyHeat") {
+ this.thermostatLatestMode = "emergencyHeat"
+ this.thermostatMode = "emergencyHeat"
+ this.currentThermostatMode = "emergencyHeat"
+ println("Mode of the thermostat with id:$id is changed to emergencyHeat!")
+ sendEvent([name: "thermostatMode", value: "emergencyHeat", deviceId: this.id, descriptionText: "",