Fix error resubscribe - #3105
Conversation
- fingerprints.yml: add matterManufacturer entries (AIHomeKit 0x1241/0x804E, BritzyHub 0x1436/0x800C) and tag generic device types with vendorId
|
Duplicate profile check: Passed - no duplicate profiles detected. |
|
Invitation URL: |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against 0805dfe |
| local MatterDriver = require "st.matter.driver" | ||
| local log = require "log" | ||
|
|
||
| local function bridge_init(driver, device) |
There was a problem hiding this comment.
I wonder if the issue is that there was no subscription being sent my the bridge device if this bridge_init function was not previously populated?
@DongHoon-Ryu could you check if just removing this function causes the issue to occur again during hub replace? And then if adding it back fixes the issue?
The reason I am more suspicious of this is because the other subscribe logic above is very similar to what already exists in the subscribe function, so I'm not sure yet how that is providing a change in functionality.
There was a problem hiding this comment.
I ran the test you asked for.
With bridge_init removed and the rest of the changes left in place, after a hub replace:
- Toggling on/off from the device list screen in the SmartThings app still works.
- But opening an individual device's detail view and toggling on/off fails with a connection error
- ("There was a problem with the connection" - you can see the pic attached
).
There was a problem hiding this comment.
HI @KyuminAhn, would you mind providing hub logs around the time of the error you are seeing in the app? Thank you
There was a problem hiding this comment.
@hcarter-775 Please check MTR-1083. If additional logs are needed, please leave a comment on the ticket.
There was a problem hiding this comment.
Thank you for testing this!
Based on this, I believe this shows that the part of these changes that were fixing this issue are isolated to this file. Therefore, to move forward, I propose that we keep the changes in these files:
- drivers/SinuxSoft/britzyhub/src/init.lua
- drivers/SinuxSoft/britzyhub/fingerprints.yml
- drivers/SinuxSoft/britzyhub/profiles/matter-bridge.yml
But I do not believe the changes in the sub drivers are neccessary, so we could remove the changes in the remaining files:
- drivers/SinuxSoft/britzyhub/src/elevator/init.lua
- drivers/SinuxSoft/britzyhub/src/gas-valve/init.lua
- drivers/SinuxSoft/britzyhub/src/vent/init.lua
- drivers/SinuxSoft/britzyhub/src/utils.lua
My comment on the ticket has more detail. I believe if we adjust the changes as I have mentioned above and re-test, we should see that the subscription is now handled properly without the need to add additional sub driver changes. Please let me know if you have any questions!
There was a problem hiding this comment.
@ctowns Problems continue to occur when only the files you suggested are modified. Please refer to the comments in MTR-1083.
Check all that apply
Type of Change
Checklist
Description of Change
Summary of Completed Tests