-
Notifications
You must be signed in to change notification settings - Fork 303
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
Remove errornous assert on srcAddr16 lookup #1207
Conversation
Good evening. Thank you for taking time on the problem. Unfortunately, it still doesn't work. Attached, my logs between permit to join and end of permit to join. The device : Sonoff Zbmini 2 (Extreme). Idem with an Ikea [Valhornn. |
@fjumeaux Sorry, my message might have been missleading: did you replace the package zigbee-herdsman inside your zigbee2mqtt with the version I forked and selected the commit referenced in the PR when doing so? |
Aie. Only does a pull. I’m under docker. Don’t have access to the code |
... that's what I assumed. If you can wait a couple more days, it might be easiest to wait until I have tested it and Koen has pulled it. |
I should survive … 🤪 |
@Koenkk did that part of the PR, tested it too. Sounds like an edge-case of some sort? @Koenkk I'll let you take a closer look and test all this, since you have the adapter. |
@@ -724,7 +723,7 @@ class DeconzAdapter extends Adapter { | |||
clusterID: resp.clusterId, | |||
header, | |||
data: resp.asduPayload, | |||
address: resp.destAddrMode === 0x03 ? `0x${resp.srcAddr64!}` : resp.srcAddr16!, | |||
address: resp.srcAddrMode === 0x03 ? `0x${resp.srcAddr64!}` : resp.srcAddr16!, |
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 changed on purpose? (because this was not changed in 98e3384#diff-e287278735156a983a1ca18677f8f6580622520aa743a7a9c191db0ed111f20d)
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.
Sry, forgot to mention this. Using destAddrMode for srcAddr looks like a typo. Changed this without thinking much.
No improvement on my side. Test with sonoff zbmini 2 and Ikea Vallhorn. Still unable to pair. |
@Koenkk Just tested it with my Conbee 3 and several devices: |
We are talking about release 58c856b that I installed and tested yesterday in Docker ? |
Can talk for Koen, but I tested only my changes. I guess they are not jet in your container. |
Thanks! |
How can I do this update ? I'm on the dev branch and on docker with the "latest-dev" image. Thanks in advance for the info |
Wait until #1210 is merged, and zigbee2mqtt dev is updated to it. |
Fix will be available in todays release. |
Container updated, Ikea Vallhorn Ok, Sonoff zbmini2 Ok, Sonoff SNZP-06P Ok ! Merci beaucoup !! |
thanks for the fix. 2 weeks ago i tried to pair an SNZB-02D for several hours but returned it afterwards as defective. (probably it was fine, i just read today about the problem/fix) |
@Nerivec introduced an assert(srcAddr) in https://github.com/Koenkk/zigbee-herdsman/blame/5d02efe44826401521b85259dde5e3ca4421e312/src/adapter/deconz/adapter/deconzAdapter.ts#L665
This prevents some devices from joining. During join some device devices might emit messages which do not yet have the short (network) address set. So asserting when the lookup fails is not acceptable. All other code must deal with messages that provide a 64 bit address.
It looks like there was some restructuring of code here (ZDO stuff). I did not check all of this if it works when srcAddr is undefined.
Unfortunately I don't have access to a Conbee3 at the moment, so I can't test this. I will try to test this next week and let you know.
BR,
Lukas