-
-
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
Xiaomi devices join even though permit_join set to false #8406
Comments
Did this Xiaomi device ever connect to the network previously? |
I don't believe so but I'll see if I can find something that I can say for sure was never connected and test it out. Will revert with the result once I've managed to find one. |
Ok I found another couple of xiaomi sensors as well as a brand new smartthings sensor. Both paired immediately to the mesh with permit join disabled. Another xiaomi sensor paired even when permit join was restricted to one of the routers. As a related issue I found that I can't delete any of the devices in the blocklist using the frontend. Clicking on the '-' for a device causes it to disappear but instantly reappear. |
Already fixed in the dev branch. (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html) |
Will do, thanks. |
Not as far as I know. When the network is closed no device will join. |
Export it and attach your password |
Ok so I did what the poster did here #538 (comment) as well as change the pan id and lo and behold things seem to be working correctly now. I did not delete the existing devices, however they would not re-pair if permit join is set to false (as it should be) and new devices also do not pair. Thanks @Koenkk. For future reference though and to help you troubleshoot, should I be attaching the export of the entire sniffed output as suggested by @z-x-f (thanks for that!) although I'm not sure what the password should be? |
@rocket59 with password he means network key, 2 things go wrong in this sniff:
Both point are not directly a bug of z2m since both are handled in the router/conbee firmware. To be sure that joining is disabled. Can you:
After that please share the sniff with your network key here. |
Unfortunately I probably can't provide any useful insights any more as after messing with z2m a bit (as I mentioned above) everything seems to be working correctly (ie devices now only pair when permit join is enabled, I tested with multiple devices including previously paired ones and a brand new one). (However in response to the points raised the router referred to is a smartthings plug which was already paired to the network. I have no idea why it was doing that) At this point I can only keep any eye on it. If strange behaviour resurfaces I will definitely send the sniff as per your instructions. I guess at this stage the issue can probably be marked as closed? |
Hi again @Koenkk Sorry I misunderstood your post. Here is the sniff file the network key is 78:CE:42:4E:13:03:35:C0:0F:60:7B:E8:82:47:24:F5 So looks like everything is ok? I reset a new device after the 10s mark but no joining occurs. |
@rocket59 this sniff looks OK indeed, as you can see the |
Nice - thanks for looking at this. The Conbee II really is a massive step up from a CC2531 as well as being readily available. I don't need touchlink (at least not now), although are you aware if this is likely to be supported at some point? That seems to be the only thing that you can't do with a conbee. |
@rocket59 Touchlink is a feature that will eventually be implemented in the Conbee2 firmware. But there is no ETA yet. |
No problem - thanks for the update. |
Running 1.21 using a Conbee II. Even though permit join is disabled, previously unpaired xiaomi sensors will automatically join when the sensor is reset. This did not occur when I was using a CC2531 as coordinator.
Oddly this behaviour only occurs if the permit join drop down box is set to 'all' (I'm using the z2m front end). If permit join is limited to one of the routers in the my z2m mesh network then new devices will not pair. So it looks like the conbee is ignoring the permit join restriction and pairing to any device regardless of whether permit join is disabled or not. Unfortunately the permit join setting reverts to "all" when the front end web page is closed so I can't use this as a kludge to prevent accidental pairing.
I might add that I haven't tried this with non xiaomi devices so not sure if this happens with any zigbee device.
The text was updated successfully, but these errors were encountered: