-
Notifications
You must be signed in to change notification settings - Fork 476
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
Add Aqara Light Switch H2 #1822
Conversation
Duplicate profile check: Passed - no duplicate profiles detected. |
Channel deleted. |
Minimum allowed coverage is Generated by 🐒 cobertura-action against 74916a3 |
c05f491
to
cddce78
Compare
a21c2f2
to
b07b833
Compare
Hi @DongHoon-Ryu these changes look good to me with one comment that I left. I was also wondering if you could create a few test cases to show that this device would join the expected profile and the child devices are created as expected? |
Also, there appears to be a luacheck issue as well as an issue with an existing test case |
Thanks, I will add test cases by tomorrow. ==> I added a new test case file.
I resolved it. |
Channel deleted. |
74d2090
to
57b46bf
Compare
Pending resolutions to the other comments that Harrison left, these changes look good to me! |
One thing I forgot to mention - would it be better to have everything in the same profile? It's been brought up before that for these light devices that also contain buttons that the best user experience is to have the light(s) be considered the 'main' device rather than the buttons. We did something similar for a GE/Cync device that contained multiple light endpoints and multiple button endpoints (see here). |
When I asked some of my colleagues, there were many opinions that the UI I implemented now is good. However, when there is power management at the root endpoint as it is now, it would be better to consider implementing it as a plugin because there are many difficulties while handling related capabilities on the EDGE_CHILD device rather than the main endpoint. I will update the results again tomorrow regarding this. |
This is a new Matter Device with four physical switches. - Two of each of the four switchs have On/Off Light(0x0100) and Generic Switch(0x000F) device types. - The other two switches have a Generic Switch(0x000F) device type. - The root node has Electrical Sensor(0x0510) utility device type.
@nickolas-deboom I have implemented |
@DongHoon-Ryu This looks very good, and I am almost ready to approve it. Last thing though, the matter-switch driver is a very important driver, so would you mind onboarding a couple devices for some regression testing to make sure the flow hasn't been changed? This would need to include 1 or 2 button-switch devices, and 1 or 2 multi-switch devices. |
@hcarter-775 Yes, I did a regression test including the type of devices you mentioned, and there was no problem. Please approve. |
This is a new Matter Device with four physical switches.
Check all that apply
Type of Change
Checklist
Description of Change
Add new device profile and sub-driver
Summary of Completed Tests