home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.26k stars 30.24k forks source link

ZHA - Xiaomi Mijia Wireless Switch, Unable to Connect #37947

Closed lswee closed 4 years ago

lswee commented 4 years ago

The problem

I have tried via Developer Tools / Services with zha.permit (which I've used successfully in the past for Ikea Trådfri devices these are still working and show up as Devices/Entities). I have also tried via Configuration / Integrations / Zigbee Home Automation with Configure and Add (please see log below).

When attempting to pair, I press the LINK button on the Xiaomi switch for 5 seconds, then the LEDs flash. I then let go and they flash again. I then press the button every couple of seconds to keep it awake.

No Device or Entity is added to ZHA and it says that nothing has been found.

What could I be doing wrong?

Environment

System: HassOS 4.11

Hardware: Raspberry Pi 3 + RaspBee

Device: Xiaomi Mijia Wireless Switch

Integration: Zigbee Home Automation https://www.home-assistant.io/integrations/zha

Traceback/Error logs

[0x0000:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_req: [60, <Bool.false: 0>]
[0x0000](RaspBee): started initialization
[0x0000:ZDO](RaspBee): 'async_initialize' stage succeeded
[0x0000](RaspBee): power source: Mains
[0x0000](RaspBee): completed initialization
[0x92ef:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=140 command_id=Command.Default_Response>
[0x92ef:1:0x0006]: executed 'off' command with args: '()' kwargs: '{}' result: [0, <Status.SUCCESS: 0>]
light.light_ed7077fe_level_on_off: turned off: [0, <Status.SUCCESS: 0>]
[0x92ef:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=105 command_id=Command.Report_Attributes>
[0x92ef:1:0x0006] ZCL request 0x000a: [[<Attribute attrid=0 value=<TypeValue type=Bool, value=Bool.false>>]]
[0x92ef:1:0x0006] Attribute report received: on_off=0
Device 0x7652 (00:15:8d:00:03:d4:76:b5) joined the network
Device 00:15:8d:00:03:d4:76:b5 changed id (0x5a2e => 0x7652)
[0x7652:zdo] ZDO request ZDOCmd.Device_annce: [0x7652, 00:15:8d:00:03:d4:76:b5, 128]
[0x7652] Requesting 'Node Descriptor'
Tries remaining: 2
[0x7652] Extending timeout for 0x8f request
Ignoring message (b'18000a050042126c756d692e73656e736f725f737769746368') 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'1c3412020a02ff4c0600100121ec0b21a80124000000000021a500205b') on cluster 0: unknown endpoint or cluster id: 1
[0x7652] Delivery error for seq # 0x8f, on endpoint id 0 cluster 0x0002: message send failure
Tries remaining: 1
[0x7652] Extending timeout for 0x91 request
[0x7652] Delivery error for seq # 0x91, on endpoint id 0 cluster 0x0002: message send failure
[0x7652] Requesting Node Descriptor failed
[0x7652] Discovering endpoints
Tries remaining: 3
[0x7652] Extending timeout for 0x93 request
Ignoring message (b'18030a00001000') on cluster 6: unknown endpoint or cluster id: 1
[0x7652] Requesting 'Node Descriptor'
Tries remaining: 2
[0x7652] Extending timeout for 0x95 request
Ignoring message (b'18040a00001001') on cluster 6: unknown endpoint or cluster id: 1
[0x7652] Delivery error for seq # 0x93, on endpoint id 0 cluster 0x0005: message send failure
[0x7652] Delivery error for seq # 0x95, on endpoint id 0 cluster 0x0002: message send failure
Ignoring message (b'18050a00001000') on cluster 6: unknown endpoint or cluster id: 1
Tries remaining: 1
[0x7652] Extending timeout for 0x97 request
Tries remaining: 2
[0x7652] Extending timeout for 0x99 request
Ignoring message (b'18060a00001001') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18070a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18080a00001001') on cluster 6: unknown endpoint or cluster id: 1
[0x7652] Delivery error for seq # 0x97, on endpoint id 0 cluster 0x0002: message send failure
[0x7652] Requesting Node Descriptor failed
[0x7652] Delivery error for seq # 0x99, on endpoint id 0 cluster 0x0005: message send failure
Tries remaining: 1
[0x7652] Extending timeout for 0x9b request
[0x7652] Delivery error for seq # 0x9b, on endpoint id 0 cluster 0x0005: message send failure
Failed ZDO request during device initialization
Ignoring message (b'18090a00802002') on cluster 6: unknown endpoint or cluster id: 1
[0x7652] Requesting 'Node Descriptor'
Tries remaining: 2
[0x7652] Extending timeout for 0x9d request
[0x7652] Delivery error for seq # 0x9d, on endpoint id 0 cluster 0x0002: message send failure
Tries remaining: 1
[0x7652] Extending timeout for 0x9f request
Ignoring message (b'180a0a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180b0a00001001') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180c0a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180d0a00001001') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180e0a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180f0a00001001') on cluster 6: unknown endpoint or cluster id: 1
[0x7652] Delivery error for seq # 0x9f, on endpoint id 0 cluster 0x0002: message send failure
[0x7652] Requesting Node Descriptor failed
Ignoring message (b'18100a00001000') on cluster 6: unknown endpoint or cluster id: 1
[0x7652] Requesting 'Node Descriptor'
Tries remaining: 2
[0x7652] Extending timeout for 0xa1 request
Ignoring message (b'18110a00001001') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18120a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18130a00001001') on cluster 6: unknown endpoint or cluster id: 1
[0x7652] Delivery error for seq # 0xa1, on endpoint id 0 cluster 0x0002: message send failure
Tries remaining: 1
[0x7652] Extending timeout for 0xa3 request
probot-home-assistant[bot] commented 4 years ago

zha documentation zha source (message by IssueLinks)

probot-home-assistant[bot] commented 4 years ago

Hey there @dmulcahey, @adminiuga, mind taking a look at this issue as its been labeled with an integration (zha) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

dmulcahey commented 4 years ago

@lswee That isn't the full log but from what is posted it looks like the device is attempting to join and then just doesn't reply during the device interview. can you try again and after the pairing starts push the button more frequently to see if that makes a difference. Xiaomi devices can be a bit of a pain to pair.

lswee commented 4 years ago

Ah, my apologies @dmulcahey, what's the best method of seeing the full log? I'm copying everything that can be seen on the page: http://192.168.1.2:8123/config/zha/add?config_entry= under Show Logs.

I've tried many times, using zha.permit and also on the above one, increasing the time up to 180 seconds and pressing the button repeatedly the whole time. The log below is when I tried pressing the Link button ever10 seconds or so and kept on pressing. I'm not really sure what else to try, any suggestions? I had no problems with the Ikea Trådfri stuff and they're still working, so it must be the button. Shame the Xiaomi stuff is such a pain!

[0x0000:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_req: [60, <Bool.false: 0>]
Device 0x360e (00:15:8d:00:03:d4:76:b5) joined the network
Device 00:15:8d:00:03:d4:76:b5 changed id (0xa231 => 0x360e)
[0x360e:zdo] ZDO request ZDOCmd.Device_annce: [0x360e, 00:15:8d:00:03:d4:76:b5, 128]
[0x360e] Requesting 'Node Descriptor'
Tries remaining: 2
[0x360e] Extending timeout for 0x82 request
Ignoring message (b'18000a050042126c756d692e73656e736f725f737769746368') 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'1c3412020a02ff4c0600100121ba0b21a80124000000000021b6002061') 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
Ignoring message (b'18050a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18060a00001001') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18070a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18080a00001001') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18090a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180a0a00001001') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180b0a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180c0a00001001') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180d0a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180e0a00001001') on cluster 6: unknown endpoint or cluster id: 1
[0x360e] Delivery error for seq # 0x82, on endpoint id 0 cluster 0x0002: message send failure
Ignoring message (b'180f0a00802002') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18100a00001001') on cluster 6: unknown endpoint or cluster id: 1
Tries remaining: 1
[0x360e] Extending timeout for 0x84 request
[0x360e] Delivery error for seq # 0x84, on endpoint id 0 cluster 0x0002: message send failure
[0x360e] Requesting Node Descriptor failed
[0x360e] Discovering endpoints
Tries remaining: 3
[0x360e] Extending timeout for 0x86 request
Device 0xa5f8 (00:15:8d:00:03:d4:76:b5) joined the network
Device 00:15:8d:00:03:d4:76:b5 changed id (0x360e => 0xa5f8)
Canceling old initialize call
[0xa5f8:zdo] ZDO request ZDOCmd.Device_annce: [0xa5f8, 00:15:8d:00:03:d4:76:b5, 128]
Failed ZDO request during device initialization
[0xa5f8] Requesting 'Node Descriptor'
Tries remaining: 2
[0xa5f8] Extending timeout for 0x88 request
Ignoring message (b'18000a050042126c756d692e73656e736f725f737769746368') 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'1c3412020a02ff4c0600100121ba0b21a80124000000000021b6002061') 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
Ignoring message (b'18050a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18060a00001001') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18070a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18080a00001001') on cluster 6: unknown endpoint or cluster id: 1
[0xa5f8] Delivery error for seq # 0x88, on endpoint id 0 cluster 0x0002: message send failure
Tries remaining: 1
[0xa5f8] Extending timeout for 0x8a request
[0xa5f8] Delivery error for seq # 0x8a, on endpoint id 0 cluster 0x0002: message send failure
[0xa5f8] Requesting Node Descriptor failed
[0xa5f8] Discovering endpoints
Tries remaining: 3
[0xa5f8] Extending timeout for 0x8c request
[0xa5f8] Delivery error for seq # 0x8c, on endpoint id 0 cluster 0x0005: message send failure
Tries remaining: 2
[0xa5f8] Extending timeout for 0x8e request
Ignoring message (b'18000a00001001') on cluster 6: unknown endpoint or cluster id: 1
[0xa5f8] Requesting 'Node Descriptor'
Tries remaining: 2
[0xa5f8] Extending timeout for 0x90 request
[0xa5f8] Delivery error for seq # 0x8e, on endpoint id 0 cluster 0x0005: message send failure
Tries remaining: 1
[0xa5f8] Extending timeout for 0x92 request
[0xa5f8] Delivery error for seq # 0x90, on endpoint id 0 cluster 0x0002: message send failure
Tries remaining: 1
[0xa5f8] Extending timeout for 0x94 request
[0xa5f8] Delivery error for seq # 0x92, on endpoint id 0 cluster 0x0005: message send failure
Failed ZDO request during device initialization
[0xa5f8] Delivery error for seq # 0x94, on endpoint id 0 cluster 0x0002: message send failure
[0xa5f8] Requesting Node Descriptor failed
[0x0000:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_req: [60, <Bool.false: 0>]
Device 0x6cf6 (00:15:8d:00:03:d4:76:b5) joined the network
Device 00:15:8d:00:03:d4:76:b5 changed id (0xa5f8 => 0x6cf6)
[0x6cf6:zdo] ZDO request ZDOCmd.Device_annce: [0x6cf6, 00:15:8d:00:03:d4:76:b5, 128]
[0x6cf6] Requesting 'Node Descriptor'
Tries remaining: 2
[0x6cf6] Extending timeout for 0x98 request
Ignoring message (b'18000a050042126c756d692e73656e736f725f737769746368') 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'1c3412020a02ff4c0600100121ba0b21a80124000000000021cd002060') 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
Ignoring message (b'18050a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18060a00001001') on cluster 6: unknown endpoint or cluster id: 1
[0x6cf6] Delivery error for seq # 0x98, on endpoint id 0 cluster 0x0002: message send failure
Tries remaining: 1
[0x6cf6] Extending timeout for 0x9a request
[0x6cf6] Delivery error for seq # 0x9a, on endpoint id 0 cluster 0x0002: message send failure
[0x6cf6] Requesting Node Descriptor failed
[0x6cf6] Discovering endpoints
Tries remaining: 3
[0x6cf6] Extending timeout for 0x9c request
Ignoring message (b'18070a00001000') on cluster 6: unknown endpoint or cluster id: 1
[0x6cf6] Requesting 'Node Descriptor'
Tries remaining: 2
[0x6cf6] Extending timeout for 0x9e request
Ignoring message (b'18080a00001001') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18090a00802002') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180a0a00802080') on cluster 6: unknown endpoint or cluster id: 1
[0x6cf6] Delivery error for seq # 0x9c, on endpoint id 0 cluster 0x0005: message send failure
Ignoring message (b'180b0a00802003') on cluster 6: unknown endpoint or cluster id: 1
[0x6cf6] Delivery error for seq # 0x9e, on endpoint id 0 cluster 0x0002: message send failure
Tries remaining: 2
[0x6cf6] Extending timeout for 0xa0 request
Ignoring message (b'180c0a00802002') on cluster 6: unknown endpoint or cluster id: 1
Tries remaining: 1
[0x6cf6] Extending timeout for 0xa2 request
Ignoring message (b'180d0a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180e0a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180f0a00001001') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18100a00001001') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18110a00802004') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18120a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18130a00001001') on cluster 6: unknown endpoint or cluster id: 1
[0x6cf6] Delivery error for seq # 0xa0, on endpoint id 0 cluster 0x0005: message send failure
[0x6cf6] Delivery error for seq # 0xa2, on endpoint id 0 cluster 0x0002: message send failure
[0x6cf6] Requesting Node Descriptor failed
[0x4ec5:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=False disable_default_response=False> manufacturer=None tsn=97 command_id=66>
[0x4ec5:1:0x0006] ZCL request 0x0042: [0, 1800, 0]
[0x4ec5:1:0x0006] No handler for cluster command 66
[0x4ec5:1:0x0006]: received 'on_with_timed_off' command with [0, 1800, 0] args on cluster_id '6' tsn '97'
Tries remaining: 1
[0x6cf6] Extending timeout for 0xa4 request
[0x6cf6] Delivery error for seq # 0xa4, on endpoint id 0 cluster 0x0005: message send failure
Failed ZDO request during device initialization
Device 0x59a9 (00:15:8d:00:03:d4:76:b5) joined the network
Device 00:15:8d:00:03:d4:76:b5 changed id (0x6cf6 => 0x59a9)
[0x59a9:zdo] ZDO request ZDOCmd.Device_annce: [0x59a9, 00:15:8d:00:03:d4:76:b5, 128]
[0x59a9] Requesting 'Node Descriptor'
Tries remaining: 2
[0x59a9] Extending timeout for 0xa6 request
Ignoring message (b'18000a050042126c756d692e73656e736f725f737769746368') 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'1c3412020a02ff4c0600100121ba0b21a80124000000000021cd002060') 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
Ignoring message (b'18050a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18060a00001001') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18070a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18080a00001001') on cluster 6: unknown endpoint or cluster id: 1
[0x4ec5:1:0x0001] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=98 command_id=Command.Report_Attributes>
[0x4ec5:1:0x0001] ZCL request 0x000a: [[<Attribute attrid=32 value=<TypeValue type=uint8_t, value=29>>]]
[0x4ec5:1:0x0001] Attribute report received: battery_voltage=29
Ignoring message (b'18090a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180a0a00001001') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180b0a00802002') on cluster 6: unknown endpoint or cluster id: 1
[0x59a9] Delivery error for seq # 0xa6, on endpoint id 0 cluster 0x0002: message send failure
Ignoring message (b'180c0a00802002') on cluster 6: unknown endpoint or cluster id: 1
Tries remaining: 1
[0x59a9] Extending timeout for 0xa9 request
Ignoring message (b'180d0a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180e0a00001001') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'180f0a00001000') on cluster 6: unknown endpoint or cluster id: 1
Ignoring message (b'18100a00001001') on cluster 6: unknown endpoint or cluster id: 1
[0x59a9] Delivery error for seq # 0xa9, on endpoint id 0 cluster 0x0002: message send failure
[0x59a9] Requesting Node Descriptor failed
[0x59a9] Discovering endpoints
Tries remaining: 3
[0x59a9] Extending timeout for 0xab request
[0x59a9] Delivery error for seq # 0xab, on endpoint id 0 cluster 0x0005: message send failure
Tries remaining: 2
[0x59a9] Extending timeout for 0xad request
[0x59a9] Delivery error for seq # 0xad, on endpoint id 0 cluster 0x0005: message send failure
Tries remaining: 1
[0x59a9] Extending timeout for 0xaf request
[0x59a9] Delivery error for seq # 0xaf, on endpoint id 0 cluster 0x0005: message send failure
Failed ZDO request during device initialization
dmulcahey commented 4 years ago

You have to press the button more like every second after pairing starts. 10 seconds is way too long.

Adminiuga commented 4 years ago

Once you see the "device joined" message in debug log, keep pressing button every 1.5s

lswee commented 4 years ago

Thanks @dmulcahey and @Adminiuga that’s exactly what I’m doing.

There is a pinhole button on the back labelled ‘LINK’ which makes the LEDs flash when held for a few seconds. I then press the “normal” button repeatedly every 1.5s until it times out.

The other thing I mentioned above was trying to press the LINK button every 10 seconds followed by the normal button every 1.5s.

I’m standing a metre or so away fro the Pi.

dmulcahey commented 4 years ago

You have to press the link button each time

janchrillesen commented 4 years ago

I am seeing the exact same behavior with the Xiaomi Mijia Door Window Sensor, including the ignored messeages. This is a TI CC2531 stick with ZHA on 0.113.0b3

lswee commented 4 years ago

Yay, it's now working! Thanks to everyone who helped, @dmulcahey you were right.

I tried with the Configuration / Integrations / Zigbee Home Automation / Configure / Add interface, but I think the timeframe is too short as it added some elements of the device, but not everything, so for example I couldn't see the battery, nor add it to Automations as it had no options. I removed it and then had more success with the below method.

I got it to work by doing the following: Remove the back of the Button (by pushing it anti-clockwise) In Home Assistant, go to Developer Tools / Services In Service put 'zha.permit' In Service Data put 'duration: 180' - this was key to making it work as 60 seconds was too short Click (or tap) 'Call Service' Stand within a few metres of the gateway (in my case a Raspberry Pi 3 + RaspBee) Use something (small and hard enough) to push down the LINK button on the back of the Xiaomi Mijia for 5 seconds. You'll see the LEDs flash, when you release the button you'll see the LEDs flash again. Keep intermittently pressing the LINK pin hole button every couple of seconds for an entire three minutes, you should see the LEDs flash each time you do so.

For me, after the above process the device showed up as an Entity and Device under ZHA. It didn't have all of the information (such as battery status), but as it had paired enough for me to setup an Automation and choose between single and double presses etc. The battery status has now showed up a day later.

I personally found that the best way to check it was paired was to setup an Automation with the trigger of a single button press and then check in the Logs if the Automation was triggered when I pressed the button.

Adamados commented 3 years ago

You have to press the button more like every second after pairing starts. 10 seconds is way too long.

God bless you my friend :)

After a lot of days spending of figuring out how to pair now finally i manage it

Yes, you have to watch the logs and once you see

[0xc63c] Discovering endpoints
Tries remaining: 3

you have to press again the pair button, after 4-5 times my Switch/Door and Windows sensor paired