-
-
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
Cannot pair anything to my zigbee network #18426
Comments
Seems to be the same problem that I cannot pair anything in my system. I have a SONOFF Zigbee 3.0 USB Dongle Plus-P |
Stop Zigbee2MQTT for 30 minutes, but leave your routers on. That should heal your map. |
Exactly the same problem with Xiaomi temperature sensors WSDCGQ11LM reconnection. Also after power disconnection. First, I thought of hardware malfunction. Opened new sensor from the box. Can't join it too. Coordinator: ZigStar LAN In addition to rebooting z2m, HA, rolled back coordinator firmware from 20230507 to 20221226. Erased NVRAM. No effect. Still Can't connect WSDCGQ11LM. Didn't try to roll back z2m itself. |
So i've tried the suggestion to stop Z2M (with unplugged coordinator) for 30-60 minutes. But i have lost 2 more devices from the network: Aqara motion sensor and Tuya Remote. What else happened: So it seems routers do pair (or at least one paired ok) HELP! |
What will happen if i remove |
So after a research i have found my problem via this problem report: I have used a script that was provided on the answer here: And i have found that 20 routers were not present inside "coordinator_backup". So here are my thoughts: Other thoughts:
In any case, incorporating this "compare-check" mechanism and flagging potentially not correctly paired devices Also in case the problem arises because of power outages and disconnections from power: Maybe it's better way to do it - only append "coordinator_backup" with new devices and do not remove Issue resolved, but i am not closing it - @Koenkk please react, comment and close when you feel neccessary. Thank you! |
@quarcko great that you solved the issue. I'm indeed aware of this issue, for some unknown reason, devices go missing from the backup, if you then re-flash this problem occurs. I also experience this issue in my prod network.
This is actually a very smart solution which I didn't think about yet. Basically we shouldn't remove any devices which are still in the data/database.db. (what do you think @castorw?). I will look into this (to add both the check and backup fix), let's leave the issue open. |
I have the exact same issue, but without a solution yet. I'm on "1.32.2 commit: 1ec1e57". During the last days I rebuilt my homelab setup, so some of the components where powered down for a couple of minutes, sometimes for 1-2 hours. All worked fine, until one Aqara WSDCGQ11LM temperature sensor stopped sending values three days ago. So I deleted it, but couldn't repair. A new one was already on the way as I needed one also for another location, this one also couldn't pair. Changed battery multiple times in both sensors, no success. Had Z2M down for 45 minutes, no change. By using the script from #10339 (comment) I found one router device not correctly paired, a Philips Hue light bulb. I removed it from Z2M and repaired it. That worked, but the Aqara sensors still don't pair. I remember those devices always being a bit difficult. In the past they at least started interview, but then failed finishing it, also when I kept pushing the button during interview. Now it even doesn't start interview. |
The coordinator check is now supported directly from Zigbee2MQTT: #18599 I will continue further on the backup side (don't remove devices from backup which are still in the data/database.db file) 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) |
Two SONOFF SNZB-02D arrived today, no luck with them. Nothing happens when I permit join on all devices and start pairing mode on the SONOFF. As the OP could resolve it via rejoining missing routers, and that didn't change anything for me, I guess it's another issue in my case. |
Firstly, thanks @Koenkk for implementing this into z2m, lets hope it will be nice addition so we keep network healthy. Now about creating "coorindator_backup" - im not really an expert but i think this flow would be nice, if its possible:
Maybe procedure "B" can be done silently if hardware allows it: just my 2 c. |
@quarcko we currently don't know when devices go missing, on re-flash or also without it. With this check being in place now, this can be investigated further. |
Still digging in the dark with this. According to the python script, there are no missing routers. It only shows 5 devices "knwown by the controller but not present on your Zigbee network". When looking for a way to remove them from my controller (i guess the script means "coordinator"?), I read the NVRAM with the ZigStar GW Multi tool and maybe found something about the extended_pan_id that @quarcko mentioned: In my EDIT: Oh, both values are the same, but in reverse order of hex pairs o_0. |
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 |
What happened?
I have a probably pretty standart network of 64 devices, about 12 routers scattered evenly around the house.
Routers are Aqara (Xiaomi) switches and power outlets. All other devices are mix of Aqara, Tuya, Lidl, IKEA.
Everything worked really well for some time (more than a year). AH yes my coordinator is zzh (CC2652R Stick)
it is flashed to latest firmware and it is on external USB wire away from WIFI antennas and other stuff.
So lets start with small issue that i have - during a year i usually have 3-4 full day power disconnections.
During that time all my routers are powered off for a few hours or sometimes full day.
My HA and other server stuff sits on powerfull UPS that is able to run them for whole power outage..
After power is restored now i see that many "end devices" skipped routers and became directly connected to coordinator.
And even as time passes by then do not "re-route" via coordinators. If i do a network scan now
most of my end devices are "siblings" to coordinator with linkquality "0" and have no other connections to anything else
but THEY ALL WORK FINE :) except...
a single Xiaomi temperature sensor fell off the network recently, and here the real problem began - i cannot pair it back!
i tried multiple ways, restarting z2m, unplugging coordinator and restarting at the same time.
tried pairing with only specific routers as well - no luck.
Also i started to think that maybe this end device is broken so i opened new fresh temperature sensor never paired
also - nothing! does not pair.
zigbee log even set to debug with "herdsman" debug also enabled show no trace of any attempt to pair.
now im stuck with setup that is unable to pair ANYTHING at all, network map is crap, but otherwise healthy fast
working network :)
any thoughts?
can zigbee network "heal" like zwave does? can we somehow force this "healing"?
maybe coordinator is confused after all those power outages and now all his "direct slots" are taken so it doesn't accept new devices?
Can we force re-routing through routers?
Can coordinator be somehow "soft" reset without the need to re-pair everything?
and lastly - if all the answers are negative - how to perform full reset of the stick, if that's my last resort?
But still i thing there should be a more convienient wat of healing network and forcing "re-routing" via routers...
What did you expect to happen?
No response
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.32.1
Adapter firmware version
20230507
Adapter
zig-a-zig-ah!
Debug log
No response
The text was updated successfully, but these errors were encountered: