-
-
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
MiJia motion sensor being detected as XBee router #3947
Comments
Can you try to |
In the log above, I began with a force remove and then a join |
(I've since upgraded to ad0bbbe, but there's no change in the same scenario (force_remove, permit_join, reset) ) |
Can you check if this has been fixed in the latest dev branch? https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html |
So with the latest commit (1d3a577) it actually looks a bit worse during the interview stage, I think (and still sends the wrong HomeAssistant auto discovery), but after restarting zigbee2mqtt, it sends the proper autodiscovery messages without any extra pairing! Pastebin of the discovery: https://pastebin.com/2eBf2PRg Pastebin of the restart: https://pastebin.com/xQ62bsyB (has some extra stuff, sorry) |
BTW, I just went back to the commit before, and it sends proper autodiscovery messages upon restart. So both are identical in this regard. |
Did some more fixes, can you try again? |
Afraid not. Log: https://pastebin.com/7fcsmeeh I see that the homeassistant autodiscovery messages are sent almost immediately, rather than at the end when (I think) the interview is complete. I have to stop now, but I will be back to try more experiments in ~8 hours or so. Thanks |
Can you edit onZigbeeEvent(type, data, resolvedEntity) {
// Don't discover on deviceJoined as definition might not be stable yet.
// https://github.com/Koenkk/zigbee2mqtt/issues/3947
console.log('ONZIGBEEEVENT', type, data);
if (resolvedEntity && type !== 'deviceLeave' && type !== 'deviceJoined' && this.mqtt.isConnected()) {
console.log('ONZIGBEEEVENT - DISCOVER!', type, data);
this.discover(resolvedEntity);
}
} and provide the logging again? |
Here you go: https://pastebin.com/kMaqgwdT |
Edit: they started sending battery after a while. False alarm |
I'm using |
Ok, the problem was introduced in e7a799d (which makes sense; that's when the use of the fingerprint started, from what I understart) |
The problem was indeed introduced with that commit. Issue should be fixed in latest dev branch now. |
working with 28d48f3. Thank you! |
Bug Report
What happened
I paired a new MiJia motion sensor (I have several already, pair earlier), but it's being detected as an XBee router in the message sent to home assistant. From what I can tell from the logs, zigbee2mqtt is detecting it properly and does report occupancy correctly via mqtt, but the homeassistant auto configuration is incorrect
Autoconfig:
Actual data sent:
What did you expect to happen
Device detected and reports properly
How to reproduce it (minimal and precise)
Log at https://pastebin.com/1K0BRg2c shows a force_remove, permit_join, then a reset of the device via the reset button.
Debug Info
Zigbee2mqtt version: dev branch, 57b45f6
Adapter hardware: CC2531
Adapter firmware version: Coordinator firmware version: '{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190425}}'
The text was updated successfully, but these errors were encountered: