-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Sonoff SNZB-01 #10973
Comments
Hey, Thanks for your suggestion, sadly just tried this with all three and still no response. Strange pairs straight away but then is like it instantly drops from the network again...... Cheers |
OMG! you fixed my problems!!! |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Same problem - reconfigure and fast click no helped |
@Koenkk it looks like some update has broken the integration with these 3 Sonoff devices and they cannot be paired anymore: SNZB-01, SNZB-02 and SNZB-03. According to #9216 the issue started in October 2021 with version 1.21.2 (version 1.20.0 seems to be working fine, but I haven´t tested it), can you help with this? I can confirm the issue is happening with my SNZB-02. I haven´t been able to pair it no matter how many times I have tried while pressing the button in the device every second. I also try to hit reconfigure (as mentioned above) with no success. I have sniffed the zigbee traffic with the device while pairing: After the pairing process fails the device is doing data request during a minute, and after that it doesn´t send any more data even if the device button is pressed. |
@heisenberg2980 could you provide a sniff when pairing it to z2m 1.20.0 and 1.24.0, provide the pcapng files here. |
Sure, is there a way to downgrade z2m to an earlier version in Home Assistant OS? I have done that with integrations by downloading the repo to the custom folder, not sure if something similar can be done with addons. |
@heisenberg2980 not sure if that is possible (not really familiar with HA addons tbh). Maybe you can setup another setup on a pi with just the coordinator + sonoff snzb-01 in the network. |
@Koenkk I setup mosquitto and z2m on another pi running Debian version 11 (bullseye), and the first time I tried to pair the device using the latest version of z2m (1.24.0) it actually paired successfully (which was unexpected tbh, but it was good to get the sniff because I hadn´t figured out yet how to run a previous version of z2m). After that I tried to pair it again and it failed every time I tried. I am not sure why it worked the first time (maybe for some reason the fresh installed made the pairing to succeed), but I got the sniff of both executions: This is a screenshot of the log when the pairing fails: |
I just figured out how to run previous versions of z2m, this is the sniff of a successful pair using z2m 1.20.0: SNZB-02 paired successful - z2m_1.20.0.pcapng.zip This is the log: With this version 1.20.0 the pairing is successful every single time I try. |
@heisenberg2980 interesting, could you check wether the device always pairs successfully with z2m 1.24.0 when:
If it does not pair successfully, could you provide the sniff again + herdsman debug log of this? Note that the restart is crucial here, between z2m 1.20.0 and 1.24.0 there were some changes to the interviewing process. When a device did already join before, z2m will not fully interview it anymore which may explain the issues. |
@Koenkk you are right!! Following those steps (force-remove device, restart z2m, pair) the device pair successfully on z2m 1.24.0 every time (I have tested it twice), so that must be the issue. I guess this half-interview if the device has already been paired was implemented to improve performance in the pairing process, but if it is making some devices to fail the interview (not sure if it is happening just with these sonoff or with other devices as well), maybe it is better to do the full interview? or is it something that can be enable/disable depending on the device in the z2m code? if so, clearly the interview should be full for these 3 sonoff devices |
@heisenberg2980 thanks for confirming. Think I've found the issue, could you check wether it is fixed in the latest dev? Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html) |
Great job @Koenkk, I can confirm the issue is fixed in the dev branch. @hijamie32 please test it using the dev branch (alternatively you can wait until the changes are applied to the main branch) and if it works you can close this issue. |
I've tried the dev branch ad24c4f. But
|
@snowyu have you tried removing the device using "force remove" and then pair it again? |
Yes, I've tried "force remove". Still same error. |
Both error messages say "Failed to unbind", can you try again ensuring the device has been removed from z2m and then try to pair it again? If you still get an error please share the error message. |
Sorry, maybe my typo. Anyway, I've cleaned all devices. and try again: First, pair The SNZB-01 button OK, then unbind the default:
Then add another switch to test bind:
|
This error has been an issue for me with multiple Sonoff devices but I just upgraded to Zigbee2MQTT |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Did someone try to bind or unbind it working fine? |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days |
It does not really matter if you use Zigbee2MQTT or ZHA integration, I tried both with IKEA and SonOFF buttons, they work a few days, if you are lucky a few weeks. Then one or two buttons stop working. Since this keeps recurring, I simply gave up on the button and only use NFC tags. It's the only thing I was able to get to works realiably so far. All my WLAN devices work great. Zigbee is terrible. The worst of all my devices, as they are totally unreliable. At least in my experience. I didn't count, but I must have reconfigured all my Zigbee devices a gazillion times. They work a week or two, then just stop working. BTW, if you put NFC tags on all your buttons, you have a nice fallback. |
This issue is still going in 2024... Having the same problem with the switch. Was connected, but needed to reconnect and after removal it's not connecting again with issues above |
Had this issue, reconnected after force remove, seems to work for the time being. |
What happened?
All my Sonoff SNZB-01 fail to send any data after pairing.
I have confirmed with the supplier of the Smartlight zigbee lan CC2652P they also are having the same issue.
Pairs fine and recognises it as the correct switch but then get this error during configuration:
Failed to configure '0x00124b002135b2c0', attempt 1 (Error: Bind 0x00124b002135b2c0/1 genOnOff from '0x00124b0014dbbe5d/0' failed (AREQ - ZDO - bindRsp after 10000ms) at Timeout._onTimeout (/app/node_modules/zigbee-herdsman/src/utils/waitress.ts:64:35) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7))
Many Thanks
What did you expect to happen?
To pair and work correctly.
How to reproduce it (minimal and precise)
Remove and try to repair with new CC2652P coordinator.
Zigbee2MQTT version
1.22.2
Adapter firmware version
20210319
Adapter
Smartlight zigbee lan CC2652P
Debug log
No response
The text was updated successfully, but these errors were encountered: