-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOTE-4566 Limit temperature setpoint ranges #1678
Conversation
Clamp the limit values of temperature setpoint capabilities so that the ranges of deg C and deg F don't overlap.
Channel deleted. |
Test Results 64 files 399 suites 0s ⏱️ Results for commit ebbdbb7. ♻️ This comment has been updated with latest results. |
matter-appliance_coverage.xml
matter-thermostat_coverage.xml
Minimum allowed coverage is Generated by 🐒 cobertura-action against ebbdbb7 |
drivers/SmartThings/matter-appliance/src/matter-refrigerator/init.lua
Outdated
Show resolved
Hide resolved
drivers/SmartThings/matter-appliance/src/matter-laundry/init.lua
Outdated
Show resolved
Hide resolved
I think you need to modify the temperature range for each device types. Because Celsius and Fahrenheit written in the description do not actually match and can cause conflict. [Example of conflict] Laundry Dryer: -> Range: 26C - 80C / 78.8F - 176F [Recalculated range] Dishwasher: Laundry Dryer: Laundry Washer: Refrigerator: Thermostat / Room AC: cc: @HunsupJung |
* use updated range values * add handling for freezer range in matter-refrigerator * other minor changes
I applied these new ranges in b6c2b08! |
drivers/SmartThings/matter-appliance/src/matter-dishwasher/init.lua
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a small comment for a potential code improvement, but this looks good to me!
2426409
to
182d860
Compare
Type of Change
Checklist
Description of Change
IOTE-4566
Clamp the min and max values of temperature setpoint capabilities so that the ranges of deg C and deg F don't overlap. This is currently being done for the oven device type and now should be extended to other devices types using the
temperatureSetpoint
,thermostatHeatingSetpoint
, orthermostatCoolingSetpoint
capabilities (or the associated Setpoint Range capabilities). These changes are necessary because the driver is not aware of the temperature unit when a setpoint value is updated via a capability command. Threshold values were chosen depending on the device type as follows:Dishwasher:
Laundry Dryer:
Laundry Washer:
Refrigerator:
Thermostat / Room AC:
Please let me know if you have any opinions on better values to use.
Summary of Completed Tests
See new unit tests.
Testing with VDA:
On VDA v1.3.4, this device crashes a few seconds after onboarding and the device appears as offline in the ST app.On VDA v1.3.4, this device crashes a few seconds after onboarding and the device appears as offline in the ST app.* For these device types, the plugin is not correctly limiting the setpoint sliders from exceeding the allotted range. The minimum and maximum allowed values appear as expected, but the user is able to go beyond the range using the '-' and '+' buttons, which are not grayed out when the slider is at the min or max as they should be. Also, the slider can sometimes be moved beyond the range with sliding as well. The thermostat device type does not have this issue. This issue is tracked by MTR-841.