Homekit & openhab2: Not able to pair after update

Once more, after executing an update on my openHABian instance, I experienced malfunction of my homekit devices (“not responding”). Therefore I cleared the pairing and tried to reconnect for the last two hours - failing over and over again.

When I try to pair openHab with Homekit (it’s visible in Homekit), it runs through three stages of binding (according to the Karaf log) without any visible error.

The last thing I get is:

2017-05-03 01:15:05.140 [INFO ] [ap.impl.jmdns.JmdnsHomekitAdvertiser] - Re-creating service due to change in discoverability to true
2017-05-03 01:15:07.155 [INFO ] [ap.impl.jmdns.JmdnsHomekitAdvertiser] - Registering _hap._tcp.local. on port 9124
2017-05-03 01:15:09.740 [INFO ] [ap.impl.http.HomekitClientConnection] - 200 /pairings
2017-05-03 01:15:09.745 [TRACE] [lfe.hap.impl.http.impl.BinaryHandler] - Sending data [/192.168.1.112:49321]:
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 33 0D 0A 43 6F 6E 6E -Length: 3..Conn
00000050 65 63 74 69 6F 6E 3A 20 6B 65 65 70 2D 61 6C 69 ection: keep-ali
00000060 76 65 0D 0A 0D 0A 06 01 02                      ve.......


2017-05-03 01:15:09.752 [TRACE] [pl.http.impl.NettyHomekitHttpService] - WRITE UnpooledUnsafeDirectByteBuf(ridx: 0, widx: 123, cap: 256) [/192.168.1.112:49321]:
00000000 69 00 DF 54 F2 7A AB 46 CE 1D 32 5D E3 BC 52 AB i..T.z.F..2]..R.
00000010 EE 07 71 4F C7 D2 C3 D9 1D 9A B1 3C 59 92 3C AF ..qO.......<Y.<.
00000020 CE C7 F0 C4 18 E5 75 31 61 90 0F B9 D0 5C 35 F1 ......u1a....\5.
00000030 EF E9 30 69 84 C4 00 25 18 B8 1E CE 93 D1 F6 21 ..0i...%.......!
00000040 37 92 F9 85 80 16 18 EF 9D 9A ED 6B C9 9D 47 5C 7..........k..G\
00000050 27 5F 0B 46 63 E1 68 E6 40 C4 0F 45 03 61 FD E0 '_.Fc.h.@..E.a..
00000060 FA 03 6C E5 8C 9C 41 B5 A8 E4 6C 10 FF 47 64 EA ..l...A...l..Gd.
00000070 53 F6 FA 72 E3 7D F0 4B 5C DA 8A                S..r.}.K\..


2017-05-03 01:15:09.833 [TRACE] [ons.LengthPrefixedByteArrayProcessor] - Received message of length 0. Existing buffer is 0
2017-05-03 01:15:09.835 [TRACE] [ons.LengthPrefixedByteArrayProcessor] - Returning 0 results
2017-05-03 01:15:09.839 [INFO ] [.hap.impl.http.impl.AccessoryHandler] - Terminated homekit connection from /192.168.1.112:49321

Tried different ports (also 9124) - it’s always the same.
I have no idea why it stopped working (without anything changed) after the update, but it’s a kind of frustrating to me and unfortunately not the first time since I started to use openHAB.

Would be grateful for any hint - thanks!

Never mind, got it working again.

I was unable to pair homekit because I had some items defined homekit doesn’t like for some reason. Still don’t know at which item exactly this happened, but I’m lucky to be able to pair again.

@beowulfe: I’ll file a bug report on github if I am able to reproduce this behaviour.

Cheers,
Boby