Hi,
I’ve run into unexpected behavior: my thermostat with the Auto feature cannot set the heating temperature higher than the cooling temperature, even when it is currently switched to Heat-only mode.
I checked the driver, and there is indeed such a condition. But the Matter specification clearly says:
The specification explicitly states that the required gap between the heating and cooling setpoints must be maintained if and only if the AUTO feature is supported.
If a client sends a new setpoint that violates the deadband, the thermostat server does not reject the command but automatically adjusts the other setpoint:
- When trying to raise
OccupiedHeatingSetpointtoo close to the cooling setpoint, the thermostat automatically increasesOccupiedCoolingSetpoint. - When trying to lower
OccupiedCoolingSetpointtoo close to the heating setpoint, the thermostat automatically decreasesOccupiedHeatingSetpoint.
So the driver slightly violates the Matter specification.
Details
- Driver:
matter-thermostat,src/thermostat_handlers/capability_handlers.lua,thermostat_set_setpoint_factory(). If the endpoint has theAUTOMODEfeature, a heating setpoint above cached cooling setpoint −MinSetpointDeadBandis rejected locally ("Invalid setpoint (…) is greater than the cooling setpoint (…) with the deadband (…)"), the previous value is re-emitted and no write is sent to the device. The cooling setpoint has the mirror check.
SmartThingsEdgeDrivers/drivers/SmartThings/matter-thermostat/src/thermostat_handlers/capability_handlers.lua at main · SmartThingsCommunity/SmartThingsEdgeDrivers · GitHub - Matter SDK: project-chip/connectedhomeip PR #35673 “[HVAC] Thermostat deadband handling” (merged 2024-11-14): instead of rejecting writes that violate the deadband, the server shifts the complementary setpoint and returns an error only if that would exceed the setpoint’s min/max limits.
https://github.com/project-chip/connectedhomeip/pull/35673 - Observed: Thermostat (
0x0301) endpoint with AutoMode,MinSetpointDeadBand2.5 °C,SystemModeHeat, heating 17.7 °C, cooling 20.4 °C. In the SmartThings app the heating setpoint could not be raised above 17.9 °C, and no write reached the device. A direct write ofOccupiedHeatingSetpoint= 22.0 °C from another Matter controller was accepted by the device, which raisedOccupiedCoolingSetpointto 24.5 °C. - Request: send the setpoint write to the device instead of rejecting it in the driver, so the device can adjust the other setpoint as the specification describes.