Skip to content
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

ZHA won't bind any new Zigbee Devices anymore #131068

Closed
hbothmer opened this issue Nov 20, 2024 · 33 comments
Closed

ZHA won't bind any new Zigbee Devices anymore #131068

hbothmer opened this issue Nov 20, 2024 · 33 comments

Comments

@hbothmer
Copy link

The problem

When I try to bind a new Zigbee device via ZHA, the process stops at the blue Configuring dialogue. Tried different deviced from Ikea, Sonoff and Tuya. Some Devices have lost their connection though they still are show as online in the graphical network diagram. Switching one of them produces a time out.

What version of Home Assistant Core has the issue?

core-24.11.2

What was the last working version of Home Assistant Core?

core-24.10.?

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ZHA

Link to integration documentation on our website

No response

Diagnostics information

home-assistant_zha_2024-11-20T19-01-56.082Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@puddly
Copy link
Contributor

puddly commented Nov 20, 2024

Can you upload diagnostics JSON for the ZHA integration as well?

image

@hbothmer
Copy link
Author

Something seems to be seriously wrong. That doesn't work. I get the message 'web site not available' (in german).
Bildschirmfoto 2024-11-20 um 20 12 15

@hbothmer
Copy link
Author

After reloading ZHA I could dowload the file...

config_entry-zha-24d0729b542e0b9eb999a66c04c8cd5c.json

@myromeo
Copy link

myromeo commented Nov 20, 2024

I have the same issue, here is my diagnostics file also, maybe it helps?

config_entry-zha-01J3TC6PJ5CF8AC0DG2R1QEBAE.json

@SmOeL-swdev
Copy link

Same issues here! 80% of ZigBee devices no longer work after the update. Really annoying! Did they forget to unit test?

@puddly
Copy link
Contributor

puddly commented Nov 21, 2024

@SmOeL-swdev Enable ZHA debug logging, reload the integration, and download the debug log after letting the integration run for 10 minutes. In those 10 minutes, try to control some devices to fill the log with something useful.

@home-assistant
Copy link

Hey there @dmulcahey, @Adminiuga, @TheJulianJES, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of zha can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign zha Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


zha documentation
zha source
(message by IssueLinks)

@andyb2000
Copy link

I've found an odd work-around also, repeated it many times and it's worked.
This is a combination of trying to pair (or re-pair after battery replacement) eWelink and Sonoff devices.

Set ZHA into pairing mode. Do the pin/reset on ONE zigbee device (I use a sacrificial sensor!). It shows up and gets stuck on either "Starting Interview" or "Configuring".
THEN start the device you actually want pairing (pin/reset) and it seems to pair straight away.

I've repeated this about 5 times now and it worked each time. The sacrificial sensor never pairs but the subsequent devices do.

I'll put ZHA into debug and get some logs.

@hbothmer
Copy link
Author

I can not confirm andyb2000's work-around. Not working here....

@puddly
Copy link
Contributor

puddly commented Nov 23, 2024

@andyb2000 what specific coordinator are you using? Please upload a ZHA debug log of your device joining procedures.

@SmOeL-swdev
Copy link

For me the solution was to revert back to core v2024.11.0. no need to reconfigure anything. Everything works again as before (no pairing required).
I don't have saved a log file, sorry.

@L81ker
Copy link

L81ker commented Nov 23, 2024

I've had the same. Still having the same. Dropped all the IKEA devices that were working, and I cant get those added back at all. Some devices are 'embedded' in ceiling lamps, so they can stay offline till this is resolved.

Here's the network map with partial recovery but even those devices have dropped again. Log files from 2 days of trying resets, reloads, delete and add back, the above workaround would work for one device and drop the next.
So frustrating, has been working 100% reliable till now. Even restoring previous back up hasn't helped so far.

I'd like guidance on how to resolve this once the fix is known. I really hppe it's not a 'delete all and start over' situation!

WhatsApp Image 2024-11-23 at 18 45 29_fda9a742

[config_entry-zha-f10e4645291
[config_entry-zha-f10e4645291bce79d4581e458a2da891.json](https://github.com/user-attachments/files/17882363/config_entry-zh

config_entry-zha-f10e4645291bce79d4581e458a2da891 (3).json
a-f10e4645291bce79d4581e458a2da891.json)
bce79d45

config_entry-zha-f10e4645291bce79d4581e458a2da891 (2).json
81e458a2da891 (1).json](https://github.com/user-attachments/files/17882360/config_entry-zha-f10e4645291bce79d4581e458a2da891.1.json)

@SmOeL-swdev
Copy link

SmOeL-swdev commented Nov 23, 2024

I've had the same. Still having the same. Dropped all the IKEA devices that were working, and I cant get those added back at all. Some devices are 'embedded' in ceiling lamps, so they can stay offline till this is resolved.

Here's the network map with partial recovery but even those devices have dropped again. Log files from 2 days of trying resets, reloads, delete and add back, the above workaround would work for one device and drop the next.
So frustrating, has been working 100% reliable till now. Even restoring previous back up hasn't helped so far.

I'd like guidance on how to resolve this once the fix is known. I really hppe it's not a 'delete all and start over' situation!

WhatsApp Image 2024-11-23 at 18 45 29_fda9a742

[config_entry-zha-f10e4645291
[config_entry-zha-f10e4645291bce79d4581e458a2da891.json](https://github.com/user-attachments/files/17882363/config_entry-zh

config_entry-zha-f10e4645291bce79d4581e458a2da891 (3).json
a-f10e4645291bce79d4581e458a2da891.json)
bce79d45

config_entry-zha-f10e4645291bce79d4581e458a2da891 (2).json
81e458a2da891 (1).json](https://github.com/user-attachments/files/17882360/config_entry-zha-f10e4645291bce79d4581e458a2da891.1.json)

I hope that the latest core update solves your problem (2024.11.3). I had to revert to 2024.11.0 without rebinding (everything works as before)

Good luck!

@L81ker
Copy link

L81ker commented Nov 23, 2024

I've had the same. Still having the same. Dropped all the IKEA devices that were working, and I cant get those added back at all. Some devices are 'embedded' in ceiling lamps, so they can stay offline till this is resolved.
Here's the network map with partial recovery but even those devices have dropped again. Log files from 2 days of trying resets, reloads, delete and add back, the above workaround would work for one device and drop the next.
So frustrating, has been working 100% reliable till now. Even restoring previous back up hasn't helped so far.
I'd like guidance on how to resolve this once the fix is known. I really hppe it's not a 'delete all and start over' situation!
WhatsApp Image 2024-11-23 at 18 45 29_fda9a742
[config_entry-zha-f10e4645291
[config_entry-zha-f10e4645291bce79d4581e458a2da891.json](https://github.com/user-attachments/files/17882363/config_entry-zh
config_entry-zha-f10e4645291bce79d4581e458a2da891 (3).json
a-f10e4645291bce79d4581e458a2da891.json)
bce79d45
config_entry-zha-f10e4645291bce79d4581e458a2da891 (2).json
81e458a2da891 (1).json](https://github.com/user-attachments/files/17882360/config_entry-zha-f10e4645291bce79d4581e458a2da891.1.json)

I hope that the latest core update solves your problem (2024.11.3). I had to revert to 2024.11.0 without rebinding (everything works as before)

Good luck!

I might have to resort to that. I spent last sunday building the Google AI to get the creative notifications for movement on the cameras, and that's all working brilliantly..... Rolling back to 11.0 will mean a different set of work!

@Pat28
Copy link

Pat28 commented Nov 25, 2024

Same here, have 1 Zigbee device that is no longer connected and am unable to repair or re-pair it.
Using HA 2024.11.3 now, just upgraded and same issue, unable to fix it.

image

@mgonzalez117
Copy link

hello, i have same issue with my ZHA integration : devices no longer connected, impossible to pair. Sometimes device is paired but it is impossible to do some action (switch, identifier button).

@rhysperry111
Copy link

Also having this issue. Unable to pair any of my SONOFF zbmini or NSPanel devices although sometimes they will get to the "interview" stage.

@SmOeL-swdev
Copy link

Try reverting to 2014.11.0. that did the trick for me. Curious to see if it works on more systems

@MrNick4B
Copy link

MrNick4B commented Nov 27, 2024

I also cannot add new devices. Next to that, the controller lost connection to devices that act as a signal repeater. When trying to add a device using the controller (Conbee II), it just keeps on searching. When trying to add a device using a signal repeater (for example IKEA Trådfri), it also keeps on searching, and I see this log message (likely because the signal repeaters lost their connection): Couldn't open '[insert mac here]' for joining: Failed to deliver packet: <TXStatus.MAC_CHANNEL_ACCESS_FAILURE: 225>. I feel like this happened after I updated Home Assistant from 2024.11.1 to 2024.11.3.

@puddly
Copy link
Contributor

puddly commented Nov 27, 2024

MAC_CHANNEL_ACCESS_FAILURE is entirely an environmental problem and not something ZHA has control over. This is your coordinator firmware saying that there is so much RF interference, it refused to send the packet.

Move your Conbee away from USB 3.0 devices, SSDs, WiFi routers, and other 2.4GHz interference sources.

@MrNick4B
Copy link

MAC_CHANNEL_ACCESS_FAILURE is entirely an environmental problem and not something ZHA has control over. This is your coordinator firmware saying that there is so much RF interference, it refused to send the packet.

Move your Conbee away from USB 3.0 devices, SSDs, WiFi routers, and other 2.4GHz interference sources.

It used to work fine for years, and only after the update things didn't work correctly anymore. Also, devices that are directly linked to the controller still work fine. It just doesn't find new devices and connections to repeaters do not work, no matter how close I place them to the controller. The controller is connected using a usb 2.0 extension cable. MAC_CHANNEL_ACCESS_FAILURE is not logged when trying to add a device directly from the controller.

@MrNick4B
Copy link

My apologies, even though the setup never changed and worked fine for so long, switching around devices on the usb ports helped to fix it. 😖 Should've tried it sooner, sorry about that.

@hbothmer
Copy link
Author

hbothmer commented Nov 28, 2024

Got some new Tuya Zugbee plugs today and tried to bind them. That seemed to work right away. But even though paired seemed to be successful, the devices are not available. I have atteched the log.

home-assistant_zha_2024-11-28T20-48-01.072Z.log.zip

Interesting: The Tuya plug succeeds in binding (still not working afterwards) and the IKEA plug will only get to "starting interview", not any further.

Hope this helps...

@csierra67
Copy link

I am encountering the same issue with Sonoff temperature and humidity probes SNZ-02P type. The workaround posted by andyb2000 worked for me

@fatmacheto
Copy link

Hello All,

I have the same issue that only sonoff devices showed as offline whereas Aqara are all online. No way to repair the SONOFF devices via the coordinator which is Home Assistant Yellow. What I found out is that if I try to add the devices via some of the routers (Ikea and Aqara outlet) it works immediately. However I can add aqara devices via the Yellow coordinator.

@egiljohns
Copy link

egiljohns commented Dec 5, 2024

Exactly the same here, devices that has been paired in ZHA and using Sonoff Zigbee 3.0 dongle Plus for months and maybe a year mostly still works. If i delete it and trying to repair a device, ZHA discovering it fast but after it says complete all the entities for the device is unavailable. The same device(s) is pairing and working find with Deconz using a Conbee if compatible.
Pairing new devices giving the same result, and the old ones that has been in use for a while still working (but some a bit unstable). I have seen several places on the internet besides here that i am not alone.

Edit: Seems like HA/ZHA does not sendt data back to the device that telling the device/confirming that "hello i got you" because the device continues to be in pairing mode until timeout.

Frustrating!

@hbothmer
Copy link
Author

Not much happening here right now. Has anybody come up with a workaround or a fix?
I really don't want to move to Z2M but this has been broken for over a month now....

@SmOeL-swdev
Copy link

Not much happening here right now. Has anybody come up with a workaround or a fix?
I really don't want to move to Z2M but this has been broken for over a month now....

Revert to a previous version and wait for good and decent unit testing is in place?

@myromeo
Copy link

myromeo commented Dec 14, 2024

not a fix but I've go try ZHA up and running again with all my devices online. I had to do two things, not sure which one resolved the issue unfortunately

deleted the database
deleted the ZHA integration, re-add it and set up as a new network.

Yes this meant reconnecting all my devices, not too bad in my case (11 devices) but can imagine some have huge networks!

I guess this at least proves ZHA is functional but something has changed in the 2024.11 updates it seems.

@L81ker
Copy link

L81ker commented Dec 14, 2024

Resolution for me was to take the SonOff dongle offline, and reflash it to the latest software, and then add back every device in the network. it's been stable since and working actually better than before. The last software for ZHA is dated July 2024. If your Sonoff software is older than that, this could be the only route back to a working system.

image

@csierra67
Copy link

csierra67 commented Dec 15, 2024 via email

@hbothmer
Copy link
Author

Ladies and Gentlemen,

I have just updated the firmware of my Sonoff Dongle using this: https://vandalen.dev/post/how-to-update-sonoff-zigbee-3-0-zbdongle-p-usb-firmware-using-a-mac/

After that, ZHA started normally. All previoously working devices were up an running. I could now successfully bind the IKEA Tradfri Outlet and the Snonoff ZBMINIL2 that I could not get to bind earlier.

This might have solved the problem.

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests