Koenkk / Z-Stack-firmware

Compilation instructions and hex files for Z-Stack firmwares
MIT License
2.29k stars 640 forks source link

Device is leaving network after just putting it pairing mode #482

Open chojnicki opened 8 months ago

chojnicki commented 8 months ago

I recently switched adapter from Conbee 2 to Sonoff Dongle-P. I have wall switches (TS0001 and TS0002), but I tested same behavior on other devices like Ikea Tradfri bulbs. So when device is already paired, and I start pairing mode again on it, it just leaves network even that it was not paired to new gateway/coordinator. It makes no sense, it should keep current network if new one was not found. Sometimes I get message in Z2M "Device 'xxxxxx' left the network" and it just disappears from dashboard, but often there is no info in Z2M logs and it just stops working so that's why I'm opening this issue here.

It is easy to blame device - but most important thing is, it was NOT such issue with previous adapter. Maybe conbee did not "allowed" to leave network by device itself, and z-stack does, not sure. Previously in case of my switch, it was unresponsive for 1 minute because it was looking for new coordinator, and after that time everything was back to normal. But now I have to repair them again manually every time. With bulbs or most devices it's not really a big issue, but with switches it is easy to put them in that pairing mode by accident, because it requires just 5 clicks to do that, which often my small kids do...

So why device is leaving me, just by putting it in pairing mode? Can I somehow disallow leaving network, or is it a bug?

I'm using firmware 20221226. I know it's not latest one, but it is considered as stable, and I did not found any fix related to my issue in changelog.

github-actions[bot] commented 7 months ago

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

chojnicki commented 7 months ago

Still a issue

juslex commented 7 months ago

some problem here

jonzyk commented 6 months ago

I switched from an Elelabs ELU013 (ezsp) to a SONOFF Dongle-P. Since I have some strange behavior with my switch, I wanted to try a recommended adapter. I faced the same issue with 20230507 Devices already paired with my ezsp are stuck into a pairing loop. I tried several resets of the device with no effect. New devices are paired OK. I have seen this thread before : https://github.com/Koenkk/Z-Stack-firmware/discussions/474 + https://github.com/Koenkk/Z-Stack-firmware/discussions/483 So I downgraded to 20221226, and was able to pair with only 1 reset of the device.

github-actions[bot] commented 5 months ago

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

chojnicki commented 5 months ago

bump to unstale

github-actions[bot] commented 4 months ago

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

chojnicki commented 1 week ago

@Koenkk could you reopen this please? It's not completed :( I hate this GH bot :D