-
Notifications
You must be signed in to change notification settings - Fork 510
PIOT-252 add yanmi Y-K003-001 switch #2424
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?
Conversation
Duplicate profile check: Warning - duplicate profiles detected. |
Invitation URL: |
Test Results 71 files 453 suites 0s ⏱️ Results for commit 96c4bd3. ♻️ This comment has been updated with latest results. |
Minimum allowed coverage is Generated by 🐒 cobertura-action against 96c4bd3 |
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 is a duplicate of the basic-switch
profile
return parent:get_child_by_parent_assigned_key(string.format("%02X", ep_id)) | ||
end | ||
|
||
local function create_child_devices(driver, 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.
How many zigbee endpoints that support the On/Off cluster does this device have? It may be that you do not need a sub-driver at all, because of how the base driver handles this case: https://github.com/SmartThingsCommunity/SmartThingsEdgeDrivers/blob/main/drivers/SmartThings/zigbee-switch/src/init.lua#L104
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.
Currently, this switch has 3 endpoints. In the future, there will be 2-key and 1-key switches that will use this driver.
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.
as long as the zigbee endpoints report support for the On/Off cluster, they should still work with the base driver
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.
Because the labels generated by the base driver are not what I want.I hope that the endpoint of the switch will generate labels 1, 2, and 3 in sequence.
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.
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 label of the first endpoint of this driver is 2, not 1.
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.
But your base device's label is Yanmi Switch (3 Way) 1
.multi-switch-no-master
would create, Yanmi Switch (3 Way) 2
and Yanmi Switch (3 Way) 3
alongside the already existing Yanmi Switch (3 Way) 1
. Am I misunderstanding? The code looks identical to me.
4855cbd
to
96c4bd3
Compare
Check all that apply
Type of Change
Checklist
Description of Change
Summary of Completed Tests