Closed mortenmoulder closed 2 years ago
I just tried flashing the Z-Bee Duo CC2652P with PTVO's firmware again, this time setting the status LED to "Sending reports" on DIO_7, and it just keeps flashing every 1 second, which means "the router is connecting to a network".
However, it is not connecting to my Sonoff CC2652P coordinator.
And now I just tried switching from Device type: Router
to Device type: End device without routing
and it pairs immediately.
What the heck is going on. I changed nothing except the device type. Why won't my device pair as a router? Is there some "underlying" check in Zigbee2MQTT, that won't pair devices based on a certain criteria or something?
Just to add a bit to this: I've had that same problem, but it seems to be caused by having changed firmware back and forth between router and coordinator (some experiments with zzh and sonoff dongle plus 😅).
At same point I had this problem. Not only it didn't pair anymore as router, but my zigbee network would soon crash (had to restart the coordinator).
Checking all logs I could and trying flash again, I realized that both devices (coordinator and router) were using the same serial number (IEEE address). Tried change it in flash programmer and it worked again.
I don't know how it could happen, but that solved for me. I still have some problem with my network, although not related (crash a few times per week), so I disabled that router to try and pin point the problem (still crashing 🙃).
Edit: same thing detailed here: Issue 10449
I have similar issue - I have new ZBMINI modules with CC2652P1F chips.
Selecting Board Type CC2652R1
in PTVO. Firmware Configuration 1.6.0.2 causes the board to pair immediately, however selecting CC2652P/CC1352P2
causes Z2M to not pair, despite the module transmitting, as seen with Smart RF Sniffer.
Switching Device type: Router
to Device type: End device without routing
does not help.
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
Commenting to keep it open.
@mortenmoulder
I had this terrible problem too, and this was the only link I could find that described it happening. I was developing router code on an esp32c6, and z2m suddenly decided to completely ignore my device, with absolutely nothing in the logs, etc. My device behaved as though it was connected to a network. I tried changing the MAC address as described above (although the situation was different and I did not have a clash), but to no avail. What fixed it for me was clearing the zb_storage partition on the device, which also happens when esp_zb_factory_reset() is called. I hope this helps someone, as it was a nightmare to debug.
What happened?
I got a Z-Bee Duo CC2652P stick that I used as a router in ZHA. I then wanted to play with Zigbee2MQTT, so I flashed it with the latest 3.x.0 router firmware and paired it in Z2M. Once I was done playing with it as a router, I grabbed PTVO's tool and played around with that (turning on the LED for example).
I then wanted to use it as a router again, and I decided to flash it with Z-Stack 3.x.0 router firmware again. This is where it completely stopped working in Z2M, because no matter what I do, I cannot get it to pair at all. Not even if I stand next to my Sonoff CC2652P coordinator while trying to pair it.
I looked in the database.db file and there was no entry for it (I only have 3 devices paired in Z2M). I looked in configuration.yaml but only two devices showed up. I tried restarting Z2M many times.
If I then go into ZHA and I add a new device, it's instantly added as a new router. Within 5 seconds or so. I then remove it from Home Assistant, unplug the router from USB, permit join in Z2M, and then plug it back in. Nothing. It simply will not show it anywhere. Nothing in the logs either.
If I go back to PTVO's custom firmware (I already have the file), flash it to the device, then it pairs with Z2M perfectly. It just will not pair with Z-Stack 3.x.0 router firmware. I tried both launchpad and the "other" firmware.
So it went like this:
What did you expect to happen?
I would expect the Z-Duo CC2652P to join the Z2M network as a router through my Sonoff CC2652P dongle.
How to reproduce it (minimal and precise)
Zigbee2MQTT version
1.22.2
Adapter firmware version
99999999 (using the 20 dBm coordinator firmware)
Adapter
Sonoff CC2652P dongle as coordinator
Debug log