-
Notifications
You must be signed in to change notification settings - Fork 521
Matter Switch Subdriver: Add Bilresa Support #2579
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
|
Duplicate profile check: Passed - no duplicate profiles detected. |
|
Channel deleted. |
Test Results 71 files 477 suites 0s ⏱️ Results for commit a5bc31b. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against a5bc31b |
tpmanley
left a comment
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.
What's here looks good to me. I do have a question about the capabilities on the main component which we can discuss offline.
| - id: group1 | ||
| label: Group 1 | ||
| capabilities: | ||
| - id: button |
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.
For consistency with other multi-button Matter devices lets put the first group button on the main component
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.
Also, if main only has the battery it displays as an active tile with the battery percentage instead of the typical "Standby" state.
I'm going to publish a custom driver to use the wheel and add some features but I'd like to use the same IDs of stock drivers so people don't have to re-create automations and can switch back and forth at will.
drivers/SmartThings/matter-switch/src/sub_drivers/ikea_scroll/scroll_utils/fields.lua
Show resolved
Hide resolved
drivers/SmartThings/matter-switch/src/sub_drivers/ikea_scroll/scroll_utils/fields.lua
Outdated
Show resolved
Hide resolved
| [0x117C] = { -- IKEA_MANUFACTURER_ID | ||
| [0x8000] = { is_ikea_scroll = true } |
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.
I like this approach for can_handle, maybe we should implement this for other subdrivers eventually
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.
yeah that's the idea!
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.
Generally, my thought is to put all device overrides, of any type, into this table in some form or another. I think that would be nice for keeping everything organized.
drivers/SmartThings/matter-switch/src/test/test_ikea_scroll.lua
Outdated
Show resolved
Hide resolved
nickolas-deboom
left a comment
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.
This looks good from my POV. Btw is there only one version / pid of this device? Do we want to add a fingerprint for it?
drivers/SmartThings/matter-switch/src/sub_drivers/ikea_scroll/scroll_utils/fields.lua
Outdated
Show resolved
Hide resolved
ctowns
left a comment
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.
LGTM! It's very well organized, nice job Harrison!
|
84e1616 to
94f8838
Compare
94f8838 to
a5bc31b
Compare
Description of Change
Add initial subdriver support for the Bilresa device.
Summary of Completed Tests
Unit test added to ensure proper onboarding. Tested on-device.