-
Notifications
You must be signed in to change notification settings - Fork 484
Improve Matter Thermostat component to endpoint mapping #2099
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
base: main
Are you sure you want to change the base?
Improve Matter Thermostat component to endpoint mapping #2099
Conversation
Add an optional argument to component_to_endpoint to specify a cluster ID. The previous implementation checked for the presence of airPurifierFanMode within this function, which fails to account for situations where a device supports both the FanControl and Thermostat clusters on different endpoints.
Invitation URL: |
Test Results 66 files 426 suites 0s ⏱️ Results for commit f00fbac. ♻️ This comment has been updated with latest results. |
Minimum allowed coverage is Generated by 🐒 cobertura-action against f00fbac |
The additional argument of component_to_endpoint was previously being dropped in the lua libs when device:component_to_endpoint is called. Calling the function directly solves this issue.
Duplicate profile check: Passed - no duplicate profiles detected. |
4b76b1c
to
69c96a8
Compare
This commit adds support for the ResetCondition command for the ActivatedCarbonFilterMonitoring and HepaFilterMonitoring clusters. Also, thermostatOperatingState is removed from air-purifier-hepa-ac-rock-wind-thermostat-humidity-fan-heating-only-nostate-nobattery-aqs-pm10-pm25-ch2o-meas-pm10-pm25-ch2o-no2-tvoc-level, which should not have included this capability.
69c96a8
to
4167e8c
Compare
Have you tested this on older FW? Also, since the changes to filterStatus are 1.4 changes, we need to change the lowest allowed lua libs version from the 1.2 release to the 1.4 release version. |
I added test cases to cover lua libs API < 10, which allows the embedded clusters to be utilized. Also as discussed the filter reset command change was on the capabilities side rather than in the spec. |
Type of Change
Checklist
Description of Change
Add an optional argument to component_to_endpoint to specify a cluster ID. The previous implementation checked for the presence of airPurifierFanMode within this function, which fails to account for situations where a device supports both the FanControl and Thermostat clusters on different endpoints.
Summary of Completed Tests