I changed the driver for the first round of testing.
Driver changes:
// Let's set all base thermostat settings
if (hubScale == "C") {
state.currentUnit = "C"
sendEvent(name: "minCoolTemp", value: 15.5, unit: "C") // 60°F
sendEvent(name: "minCoolingSetpoint", value: 15.5, unit: "C") // Google
sendEvent(name: "maxCoolTemp", value: 35.0, unit: "C") // 95°F
sendEvent(name: "maxCoolingSetpoint", value: 35.0, unit: "C") // Google
sendEvent(name: "minHeatTemp", value: 1.5, unit: "C") // 35°F
sendEvent(name: "minHeatingSetpoint", value: 1.5, unit: "C") // Google
sendEvent(name: "maxHeatTemp", value: 74, unit: "C") // 165°F
sendEvent(name: "maxHeatingSetpoint", value: 26.5, unit: "C") // Google
sendEvent(name: "thermostatThreshold", value: 0.5, unit: "C") // Set by user
sendEvent(name: "temperature", value: 22.0, unit: "C") // 72°F
sendEvent(name: "heatingSetpoint", value: 21.0, unit: "C") // 70°F
sendEvent(name: "coolingSetpoint", value: 24.5, unit: "C") // 76°F
sendEvent(name: "thermostatSetpoint", value: 21.0, unit: "C") // 70°F
} else {
state.currentUnit = "F"
sendEvent(name: "minCoolTemp", value: 60, unit: "F") // 15.5°C
sendEvent(name: "minCoolingSetpoint", value: 60, unit: "F") // Google
sendEvent(name: "maxCoolTemp", value: 95, unit: "F") // 35°C
sendEvent(name: "maxCoolingSetpoint", value: 95, unit: "F") // Google
sendEvent(name: "minHeatTemp", value: 35, unit: "F") // 1.5°C
sendEvent(name: "minHeatingSetpoint", value: 35, unit: "F") // Google
sendEvent(name: "maxHeatTemp", value: 165, unit: "F") // 74°C
sendEvent(name: "maxHeatingSetpoint", value: 165, unit: "F") // Google
sendEvent(name: "thermostatThreshold", value: 1.0, unit: "F") // Set by user
sendEvent(name: "temperature", value: 72, unit: "F") // 22°C
sendEvent(name: "heatingSetpoint", value: 70, unit: "F") // 21°C
sendEvent(name: "coolingSetpoint", value: 76, unit: "F") // 24.5°C
sendEvent(name: "thermostatSetpoint", value: 70, unit: "F") // 21°C
}
Error in the log:
2022-02-22 01:26:13.013 pm warnsetHeatingSetpoint() is ignoring out of range cooling setpoint (160.0).
dev:18692022-02-22 01:26:13.011 pm infoHeating setpoint to close to cooling setpoint, adjusting cooling accordingly