if (this.coolingSetpoint != coolingSetpoint) {
this.latestCoolingSetPoint = coolingSetpoint
this.coolingSetpoint = coolingSetpoint
- this.currentCoolingSetpoint = currentCoolingSetpoint
+ this.currentCoolingSetpoint = coolingSetpoint
println("Cooling set point for the thermostat with id:$id is changed to $coolingSetpoint!")
sendEvent([name: "coolingSetpoint", value: "$coolingSetpoint", deviceId: this.id, descriptionText: "",
displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
if (this.heatingSetpoint != heatingSetpoint) {
this.latestHeatingSetPoint = heatingSetpoint
this.heatingSetpoint = heatingSetpoint
- this.currentHeatingSetpoint = currentHeatingSetpoint
+ this.currentHeatingSetpoint = heatingSetpoint
println("Heating set point for the thermostat with id:$id is changed to $heatingSetpoint!")
sendEvent([name: "heatingSetpoint", value: "$heatingSetpoint", deviceId: this.id, descriptionText: "",
displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
if (this.thermostatMode != thermostatMode) {
this.thermostatLatestMode =thermostatMode
this.thermostatMode = thermostatMode
- this.currentThermostatMode = currentThermostatMode
+ this.currentThermostatMode = thermostatMode
println("Mode of the thermostat with id:$id is changed to $thermostatMode!")
sendEvent([name: "thermostatMode", value: "$thermostatMode", deviceId: this.id, descriptionText: "",
displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])