-
Notifications
You must be signed in to change notification settings - Fork 498
Matter Switch: Add subdriver for Third Reality MK1 #2109
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 66 files 427 suites 0s ⏱️ Results for commit d1f994d. ♻️ This comment has been updated with latest results. |
Minimum allowed coverage is Generated by 🐒 cobertura-action against d1f994d |
Is there a reason why the profiles for 9, 10 and 11 buttons are intentionally omitted? A device like the 3rd Reality MK1 Keyboard would work out of the box with these profiles. The device and the platform are Matter certified after all... |
This PR is specifically meant for supporting the 3rd Reality MK1. |
7a822d1
to
ccbdbbd
Compare
52e5174
to
bc937cc
Compare
drivers/SmartThings/matter-switch/src/third-reality-mk1/init.lua
Outdated
Show resolved
Hide resolved
drivers/SmartThings/matter-switch/src/third-reality-mk1/init.lua
Outdated
Show resolved
Hide resolved
drivers/SmartThings/matter-switch/src/third-reality-mk1/init.lua
Outdated
Show resolved
Hide resolved
49ba419
to
ea07e1b
Compare
ac5d0a0
to
02b2f8a
Compare
ea07e1b
to
653030b
Compare
02b2f8a
to
07b6e65
Compare
653030b
to
ea1236c
Compare
2e69acd
to
064c7a6
Compare
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 comment about simplifying added
, otherwise this looks good to go imo since it's been thoroughly tested.
0845feb
to
da87d06
Compare
51595c4
to
26ccc71
Compare
Add new profile and a subdriver to support the Third Reality keyboard, which contains 12 matter-enabled buttons.
26ccc71
to
d1f994d
Compare
end | ||
|
||
-- override subscribe function to prevent subscribing to additional events from the main driver | ||
local function subscribe(device) |
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.
was this required? The main driver's subscribe handling will do the same thing, no?
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.
The only reason this would be important would be in the case that the FW for this device updates to handle more robust button presses and will necessitate changes in the future
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 true.
Type of Change
Description of Change
Add new profile and a subdriver to support the Third Reality keyboard, which contains 12 matter-enabled buttons.
Summary of Testing
Tested on device and with new unit tests.