-
Notifications
You must be signed in to change notification settings - Fork 517
Add greater dynamic profiling to matter switch #2481
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
Conversation
|
Channel deleted. |
Test Results 71 files 459 suites 0s ⏱️ Results for commit 4e103bd. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against 4e103bd |
34595bf to
38f240f
Compare
drivers/SmartThings/matter-switch/src/utils/device_configuration.lua
Outdated
Show resolved
Hide resolved
ca60426 to
fb3f845
Compare
|
Have you tested with plugs that support energy clusters? |
Unit tests catch the case that anything has changed in that regard, and no functionality would be changed as far as this path goes. That is to say, if a plug correctly profiles then the electrical sensor portion would not be breaking (and thus can be confirmed in unit tests) |
fb3f845 to
73aa8dc
Compare
|
I took another pass through this PR and it's looking good from my perspective 👍 I'm approving now but I had one more comment about a unit test that would be good to add before merging |
Description of Change
Right now, nearly all Light / PlugIn / Switch fingerprints are static in the Matter Switch driver. This update makes it so that more dynamic ability to re-profiling these devices. It also attempts to streamline some of this handling.
Though there are a few cases where parent/child device composition may cause a parent device to mis-profile (which this would fix- ex. a child with more support than its parent will cause the parent to misprofile with the more robust child support), this change mostly aims at making dynamic profiling more straightforward in later work.
Summary of Completed Tests
All Light superset devices were onboarded with correct profile.
All Plug devices were onboarded with correct profile.
Specialty devices show continued correct profiling through unit tests.