ZHA not detecting Xiaomi Mijia door sensor

Hi all,
New in home assistant. Just intalled it with a husbzb-1 stick and start to add devices to it.
I’ve a temp sensor, a motion sensor and a door sensor (xiaomi all of them)
I’ve been able to add temp sensor and motion sensor, but door sensor is giving some kind of error and not finish to link.
I’ve seen other topics where people talk about something similar, but I think they use a aqara hub and then link this hub to HA.
What I’m trying to do is link the sensors directly to home assistant.
Any help on this??

1 Like

I use ConBee rather than husbzb-1, but I found with the door sensor I had to cause it to open/close for it to link. So I held the pairing button down until the blue light flashed, and then moved the magnetic piece into place to close the switch. Once I did that it linked immediately.

Thank you Michael, I´ve tried that, but its not working neither.
This is what I have when I try to connect:

[0x0000:zdo] ZDO request 0x0036: [60, <Bool.false: 0>]
Device 0xb4ec (00:15:8d:00:03:03:94:e0) joined the network
Device 00:15:8d:00:03:03:94:e0 changed id (0xda91 => 0xb4ec)
Canceling old initialize call
Failed ZDO request during device initialization:
[0xb4ec] Requesting ‘Node Descriptor’
[0xb4ec] Extending timeout for 0x2d request
Device 0xb4ec (00:15:8d:00:03:03:94:e0) joined the network
[0xb4ec:zdo] ZDO request 0x0013: [0xb4ec, 00:15:8d:00:03:03:94:e0, 128]
Ignoring message (b’18000a050042126c756d692e73656e736f725f6d61676e6574’) on cluster 0: unknown endpoint or cluster id: 1
Ignoring message (b’18010a0100200a’) on cluster 0: unknown endpoint or cluster id: 1
Ignoring message (b’1c3412020a02ff4c0600100121ef0b21a80124000000000021e3002053’) on cluster 0: unknown endpoint or cluster id: 1
Ignoring message (b’18030a00001000’) on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b’18040a00001001’) on cluster 6: unknown endpoint or cluster id: 1
[0xb4ec] Delivery error for seq # 0x2d, on endpoint id 0 cluster 0x0002: message send failure
[0xb4ec] Extending timeout for 0x2f request
[0xf2c7:1:0x0402] ZCL deserialize: <ZCLHeader frame_control= manufacturer=None tsn=27 command_id=Command.Report_Attributes>
[0xf2c7:1:0x0402] ZCL request 0x000a: [[<Attribute attrid=0 value=>]]
[0xf2c7:1:0x0402] Attribute report received: measured_value=2234
[0xf2c7:1:0x0405] ZCL deserialize: <ZCLHeader frame_control= manufacturer=None tsn=28 command_id=Command.Report_Attributes>
[0xf2c7:1:0x0405] ZCL request 0x000a: [[<Attribute attrid=0 value=>]]
[0xf2c7:1:0x0405] Attribute report received: measured_value=4844
[0xf2c7:1:0x0403] ZCL deserialize: <ZCLHeader frame_control= manufacturer=None tsn=29 command_id=Command.Report_Attributes>
[0xf2c7:1:0x0403] ZCL request 0x000a: [[<Attribute attrid=0 value=>, <Attribute attrid=20 value=>, <Attribute attrid=16 value=>]]
[0xf2c7:1:0x0403] Attribute report received: measured_value=1003, 20=-1, 16=10032
[0xb4ec] Delivery error for seq # 0x2f, on endpoint id 0 cluster 0x0002: message send failure
[0xb4ec] Requesting Node Descriptor failed: [0xb4ec:0:0x0002]: Message send failure
[0xb4ec] Discovering endpoints
[0xb4ec] Extending timeout for 0x31 request
[0xb4ec] Discovering endpoints
[0xb4ec] Extending timeout for 0x33 request
Ignoring message (b’18050a00001000’) on cluster 6: unknown endpoint or cluster id: 1
[0xb4ec] Requesting ‘Node Descriptor’
[0xb4ec] Extending timeout for 0x35 request
Ignoring message (b’18060a00001001’) on cluster 6: unknown endpoint or cluster id: 1

Hey Kasido

I had a similar issue and the following worked for me:

  1. Hold down the button of the sensor / insert a pin until the blue lights start flashing;

  2. Click “add devices” (Configuration>ZHA>Add Devices);

  3. Keep clicking the button on the sensor / pushing the pin into the sensor every second until the sensor appears on the screen - you may need to click the button up to 10-15 times.

The above worked for me and I’ve just added about 15 sensors.

Good luck!

Tom

13 Likes

thanks wall0301
that just work perfect!!!

1 Like

thanks a lot ,worked for me.

1 Like

That worked for me too!!!

I used Deconz before switching to ZHA, all my 7 Sensors worked there, but now i cant connect 2 of my 7 Sensors.
i tried all you write for hours now :frowning:
Changed Batteries, pressing button every second etc.

Do you have any other ideas what i can try?