OH2 - HomeKit pairing fails

Hello, Ive been attempting to pair my Openhab2 with the iOS Homekit app and I think I’m getting failures during the pairing process.

So far I have created an items file with the following entry

switch garage_light “Garage Light” [“Lighting”]{channel=“zwave:device:1587973edbe:node3:switch_binary” }

I have the latest snapshot of the Homekit Binding with the proper config setup.

OpenHab shows up in the Homekit App, but when I try to add it I get an error stating the accessory cannot be added

The log shows the following:

21:06:25.167 [INFO ] [.hap.impl.http.impl.AccessoryHandler] - New homekit connection from /192.168.1.8:63851
21:06:25.169 [TRACE] [pl.http.impl.NettyHomekitHttpService] - READ UnpooledUnsafeDirectByteBuf(ridx: 0, widx: 125, cap: 1024) [/192.168.1.8:63851]:
00000000 50 4F 53 54 20 2F 70 61 69 72 2D 73 65 74 75 70 POST /pair-setup
00000010 20 48 54 54 50 2F 31 2E 31 0D 0A 48 6F 73 74 3A HTTP/1.1…Host:
00000020 20 6F 70 65 6E 48 41 42 2E 5F 68 61 70 2E 5F 74 openHAB._hap._t
00000030 63 70 2E 6C 6F 63 61 6C 0D 0A 43 6F 6E 74 65 6E cp.local…Conten
00000040 74 2D 4C 65 6E 67 74 68 3A 20 36 0D 0A 43 6F 6E t-Length: 6…Con
00000050 74 65 6E 74 2D 54 79 70 65 3A 20 61 70 70 6C 69 tent-Type: appli
00000060 63 61 74 69 6F 6E 2F 70 61 69 72 69 6E 67 2B 74 cation/pairing+t
00000070 6C 76 38 0D 0A 0D 0A 00 01 00 06 01 01 lv8…

21:06:25.191 [INFO ] [ulfe.hap.impl.pairing.PairingManager] - Starting pair for openHAB
21:06:26.272 [INFO ] [ap.impl.http.HomekitClientConnection] - 200 /pair-setup
21:06:26.275 [TRACE] [pl.http.impl.NettyHomekitHttpService] - WRITE UnpooledUnsafeDirectByteBuf(ridx: 0, widx: 512, cap: 512) [/192.168.1.8:63851]:
00000000 48 54 54 50 2F 31 2E 31 20 32 30 30 20 4F 4B 0D HTTP/1.1 200 OK.
00000010 0A 43 6F 6E 74 65 6E 74 2D 74 79 70 65 3A 20 61 .Content-type: a
00000020 70 70 6C 69 63 61 74 69 6F 6E 2F 70 61 69 72 69 pplication/pairi
00000030 6E 67 2B 74 6C 76 38 0D 0A 43 6F 6E 74 65 6E 74 ng+tlv8…Content
00000040 2D 4C 65 6E 67 74 68 3A 20 34 30 38 0D 0A 43 6F -Length: 408…Co
00000050 6E 6E 65 63 74 69 6F 6E 3A 20 6B 65 65 70 2D 61 nnection: keep-a
00000060 6C 69 76 65 0D 0A 0D 0A 06 01 02 02 0F 1E 33 AB live…3.
00000070 3E 8E AE BD 00 90 00 13 BA B0 06 06 03 FF 5C C3 >…
00000080 78 71 A7 D7 03 11 80 D3 74 91 0C D0 73 7F 50 1D xq…t…s.P.
00000090 85 F0 F1 9D 61 9F 81 3B 5F 25 55 DB 62 73 5E 2D …a…;_%U.bs^-
000000A0 87 C2 64 96 14 6D 82 EE 56 45 90 4F D3 20 94 F6 …d…m…VE.O. …
000000B0 D3 70 4E 39 ED B0 DF A4 48 2D 9D 34 11 A8 04 49 .pN9…H-.4…I
000000C0 92 D9 3F 42 49 A0 50 51 8C DB D5 6F AA 65 38 B8 …?BI.PQ…o.e8.
000000D0 43 2D 2E A7 BB 50 78 15 BD 92 D2 6C 7B 1D C0 79 C-…Px…l{…y
000000E0 B6 A1 38 47 6F A8 8C E3 B5 3C 32 47 A2 54 D6 B4 …8Go…<2G.T…
000000F0 69 01 CC 8A 23 93 C2 79 71 9D 09 FD 81 E7 57 25 i…#…yq…W%
00000100 47 14 89 D6 E3 58 23 02 78 76 91 66 EA 49 43 97 G…X#.xv.f.IC.
00000110 8B 2F 28 76 7D 8E 6E 39 B7 CE 14 4F 46 41 2F F7 ./(v}.n9…OFA/.
00000120 C1 6E 89 B3 56 0D 93 18 D7 E1 06 B8 80 E7 71 71 .n…V…qq
00000130 40 7C 72 90 B1 FB 32 01 CA 38 99 23 BB BA 14 2C @|r…2…8.#…,
00000140 31 C5 7C F0 A3 16 EA 53 C6 AF 44 B0 88 9E B6 AB 1.|…S…D…
00000150 8F F9 C7 97 34 D2 3D 2E 24 6D C5 2F C0 1E 4D 83 …4.=.$m./…M.
00000160 71 A6 CB DA 2B 6E A2 83 92 0A 77 78 A2 03 4D 11 q…+n…wx…M.
00000170 66 88 CC 20 2E 01 62 33 FB 36 5E AF 34 03 81 D5 f… …b3.6^.4…
00000180 7A A4 E5 47 A5 9A B5 FD E0 BA 97 D6 F4 DC 5E 2B z…G…^+
00000190 43 EC EE 09 04 49 58 1C 57 F9 BA 07 0E A7 C0 B5 C…IX.W…
000001A0 09 91 CA 53 56 FC D4 B2 17 D8 2A 57 5B A0 84 ED …SV…*W[…
000001B0 46 7A 3A 21 F2 34 F1 EC 71 20 3C 96 47 B8 1F CE Fz:!.4…q <.G…
000001C0 3D 3E 18 5A AF B1 32 2E C4 7E F1 5C 51 B0 C5 6B =>.Z…2…~.\Q…k
000001D0 42 D6 4A 2D A9 19 56 E2 61 E5 DD 07 33 65 2B DD B.J-…V.a…3e+.
000001E0 D6 73 37 3A 90 00 59 58 7F FD 2D 4D 24 05 EC 04 .s7:…YX…-M$…
000001F0 1D 27 21 43 3E 72 56 04 BE CA D1 DD 1F 5B 21 2C .’!C>rV…[!,

21:06:26.350 [INFO ] [.hap.impl.http.impl.AccessoryHandler] - Terminated homekit connection from /192.168.1.8:63851

Any ideas on how to make this pairing successful?

1 Like

Hi,

did you somehow solve teh issue? I have exactly the same issue

06:15:35.304 [INFO ] [.hap.impl.http.impl.AccessoryHandler] - New homekit connection from /192.168.0.10:58591
06:15:35.318 [TRACE] [pl.http.impl.NettyHomekitHttpService] - READ UnpooledUnsafeDirectByteBuf(ridx: 0, widx: 125, cap: 1024) [/192.168.0.10:58591]:
00000000 50 4F 53 54 20 2F 70 61 69 72 2D 73 65 74 75 70 POST /pair-setup
00000010 20 48 54 54 50 2F 31 2E 31 0D 0A 48 6F 73 74 3A HTTP/1.1…Host:
00000020 20 6F 70 65 6E 48 41 42 2E 5F 68 61 70 2E 5F 74 openHAB._hap._t
00000030 63 70 2E 6C 6F 63 61 6C 0D 0A 43 6F 6E 74 65 6E cp.local…Conten
00000040 74 2D 4C 65 6E 67 74 68 3A 20 36 0D 0A 43 6F 6E t-Length: 6…Con
00000050 74 65 6E 74 2D 54 79 70 65 3A 20 61 70 70 6C 69 tent-Type: appli
00000060 63 61 74 69 6F 6E 2F 70 61 69 72 69 6E 67 2B 74 cation/pairing+t
00000070 6C 76 38 0D 0A 0D 0A 00 01 00 06 01 01 lv8…

06:15:35.332 [INFO ] [ulfe.hap.impl.pairing.PairingManager] - Starting pair for openHAB
06:17:02.387 [INFO ] [ap.impl.http.HomekitClientConnection] - 200 /pair-setup
06:17:02.400 [INFO ] [.hap.impl.http.impl.AccessoryHandler] - Terminated homekit connection from /192.168.0.10:58591
06:17:02.434 [TRACE] [pl.http.impl.NettyHomekitHttpService] - WRITE UnpooledUnsafeDirectByteBuf(ridx: 0, widx: 513, cap: 1024) [/192.168.0.10:58591]:
00000000 48 54 54 50 2F 31 2E 31 20 32 30 30 20 4F 4B 0D HTTP/1.1 200 OK.
00000010 0A 43 6F 6E 74 65 6E 74 2D 74 79 70 65 3A 20 61 .Content-type: a
00000020 70 70 6C 69 63 61 74 69 6F 6E 2F 70 61 69 72 69 pplication/pairi
00000030 6E 67 2B 74 6C 76 38 0D 0A 43 6F 6E 74 65 6E 74 ng+tlv8…Content
00000040 2D 4C 65 6E 67 74 68 3A 20 34 30 39 0D 0A 43 6F -Length: 409…Co
00000050 6E 6E 65 63 74 69 6F 6E 3A 20 6B 65 65 70 2D 61 nnection: keep-a
00000060 6C 69 76 65 0D 0A 0D 0A 06 01 02 02 10 63 2C 31 live…c,1
00000070 22 8F AA 00 9F 02 29 FA 51 9B C6 13 E6 03 FF 36 “…).Q…6
00000080 9A 7F 05 08 24 39 BB C6 FA D3 56 A8 59 82 AD 29 …$9…V.Y…)
00000090 61 96 71 85 7B 6F 84 50 9A 83 0D F8 38 2E E8 D9 a.q.{o.P…8…
000000A0 6E EC 9D 95 00 0A 2C 61 64 12 F7 B1 69 0F DB 17 n…,ad…i…
000000B0 7F FC 5C DE 4D 65 67 67 FF D9 4E CF 5E DC 61 E8 …Megg…N.^.a.
000000C0 C6 AD A5 60 61 38 05 BF 93 8C F0 6E BF 95 C4 8E …a8.....n.... 000000D0 D6 FC 7E B8 0C 90 8D F8 6F 36 C7 EF B1 7E 02 96 ..~.....o6...~.. 000000E0 DC 2E 4D F5 14 E3 C7 A0 0E DA 70 9A FA 8C 3C B7 ..M.......p...<. 000000F0 98 FF B6 AD 42 C9 CC 4B 2A 14 E6 F6 07 24 30 E5 ....B..K*....$0. 00000100 35 AA 17 B2 C0 C3 FC 32 4E 7F 7B 83 3D FE 33 43 5......2N.{.=.3C 00000110 3F AC F1 3A 4A 67 84 1A 58 76 9C AD C6 CA AD 79 ?..:Jg..Xv.....y 00000120 28 7B 47 69 1A 7B B8 81 8B 6B 24 C5 A4 D9 6B DE ({Gi.{...k$...k. 00000130 2E 9F DB 5C 96 62 59 C3 30 62 E9 68 16 E9 01 0A ...\.bY.0b.h.... 00000140 E0 FF 60 E2 3E 82 B1 7D 0D 92 49 88 6E 7B AC 4B ...>…}…I.n{.K
00000150 08 27 C6 9D 30 FD 17 C3 70 25 DC 44 81 09 24 A3 .’…0…p%.D…$.
00000160 A3 FB 31 69 3C 20 A7 CA 10 03 E8 7E 9C FA A5 BC …1i< …~…
00000170 E4 ED 87 07 73 8A F4 EE BC 83 0E E3 F8 11 03 81 …s…
00000180 27 12 D1 C1 50 B2 CF E3 4B 1F 80 02 4A F1 F3 A7 '…P…K…J…
00000190 1C 42 70 09 7C 7B 68 86 E0 A5 59 CF D9 1A D3 4B .Bp.|{h…Y…K
000001A0 B5 45 5C 58 C1 AE 9E 69 81 C6 DF 7C EE 55 47 DF .E\X…i…|.UG.
000001B0 63 35 48 41 43 0E D4 DB 77 D5 1A E1 75 1A 1B F8 c5HAC…w…u…
000001C0 F6 22 1D E5 7C EC 0B 18 E7 4F CA EA CE 46 4E 94 .”…|…O…FN.
000001D0 A1 30 54 69 26 02 98 AC 6C 03 A5 B1 54 6C CC 23 .0Ti&…l…Tl.#
000001E0 F4 30 B4 DB 7B C7 70 BC AC 86 45 83 7A C1 BE 26 .0…{.p…E.z…&
000001F0 EE 58 1B 4D 77 D6 B2 E0 AC 79 F1 49 DF 50 7C 2D .X.Mw…y.I.P|-
00000200 9A .

08:18:08.814 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory openHAB
08:18:08.867 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Licht_Schlafzimmer
08:18:08.890 [INFO ] [pl.http.impl.NettyHomekitHttpService] - Resetting connections
08:18:08.900 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Licht_Wohnzimmer
08:18:08.922 [INFO ] [pl.http.impl.NettyHomekitHttpService] - Resetting connections
08:18:08.928 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Licht_Schlafzimmer
08:18:08.952 [INFO ] [pl.http.impl.NettyHomekitHttpService] - Resetting connections
08:18:08.958 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Licht_Wohnzimmer
08:18:08.980 [INFO ] [pl.http.impl.NettyHomekitHttpService] - Resetting connections