I’ve got a little more info on this issue (which will, hopefully, help in debugging the problem). I’ve even tried setting up one of my iPads as a home hub, but it hasn’t seemed to help keep things “connected”. I’m noticing that the HomeKit link seems to come and go at seemingly random times. One minute the iOS Home app will show me the status of my lights, and the next it will show Updating or No Response.
When I set the log trace level to INFO I started seeing some potentially useful things. When I’m in the Home app on my iPhone and the HomeKit link is down, if I tap the Home or Rooms icon at the bottom of the screen (which I assume makes it try to refresh the list), I immediately see the following lines in the log file:
19:59:55.110 [INFO ] [.hap.impl.http.impl.AccessoryHandler] - New homekit connection from /192.168.1.90:54578
19:59:55.111 [INFO ] [ap.impl.http.HomekitClientConnection] - 200 /pair-verify
19:59:55.130 [INFO ] [ap.impl.http.HomekitClientConnection] - 200 /pair-verify
19:59:55.149 [INFO ] [ap.impl.http.HomekitClientConnection] - 200 /accessories
If the connection fails, the Home app on the iPhone displays No Response for all of my devices and the next log entry will be:
20:01:10.727 [INFO ] [.hap.impl.http.impl.AccessoryHandler] - Terminated homekit connection from /192.168.1.90:54578
If the connection succeeds, I’ll get a whole bunch of log entries similar to:
20:05:09.913 [INFO ] [impl.connections.SubscriptionManager] - Added subscription to class com.beowulfe.hap.impl.characteristics.common.PowerStateCharacteristic for 1685298455
20:05:09.913 [INFO ] [impl.connections.SubscriptionManager] - Added subscription to class com.beowulfe.hap.impl.characteristics.lightbulb.BrightnessCharacteristic for 1685298455
20:05:09.913 [INFO ] [ap.impl.http.HomekitClientConnection] - 204 /characteristics
20:05:09.918 [INFO ] [impl.connections.SubscriptionManager] - Added subscription to class com.beowulfe.hap.impl.characteristics.common.PowerStateCharacteristic for 1685298455
20:05:09.918 [INFO ] [impl.connections.SubscriptionManager] - Added subscription to class com.beowulfe.hap.impl.characteristics.lightbulb.BrightnessCharacteristic for 1685298455
20:05:09.918 [INFO ] [ap.impl.http.HomekitClientConnection] - 204 /characteristics
20:06:27.696 [INFO ] [impl.connections.SubscriptionManager] - Removed subscription to class com.beowulfe.hap.impl.characteristics.common.PowerStateCharacteristic for 1685298455
20:06:27.696 [INFO ] [impl.connections.SubscriptionManager] - Removed subscription to class com.beowulfe.hap.impl.characteristics.lightbulb.BrightnessCharacteristic for 1685298455
20:06:27.696 [INFO ] [ap.impl.http.HomekitClientConnection] - 204 /characteristics
20:06:28.798 [INFO ] [impl.connections.SubscriptionManager] - Removed subscription to class com.beowulfe.hap.impl.characteristics.common.PowerStateCharacteristic for 1685298455
20:06:28.798 [INFO ] [impl.connections.SubscriptionManager] - Removed subscription to class com.beowulfe.hap.impl.characteristics.lightbulb.BrightnessCharacteristic for 1685298455
20:06:28.798 [INFO ] [ap.impl.http.HomekitClientConnection] - 204 /characteristics
20:06:28.869 [INFO ] [impl.connections.SubscriptionManager] - Removed subscription to class com.beowulfe.hap.impl.characteristics.common.PowerStateCharacteristic for 1685298455
20:06:28.870 [INFO ] [impl.connections.SubscriptionManager] - Removed subscription to class com.beowulfe.hap.impl.characteristics.lightbulb.BrightnessCharacteristic for 1685298455
20:06:28.870 [INFO ] [ap.impl.http.HomekitClientConnection] - 204 /characteristics
I have yet to figure out why it sometimes connects successfully while other times it stays disconnected. But the fact that the OH2 HomeKit link acknowledges the new connection request right away tells me that my physical network link doesn’t seem to be the problem. It’s almost as if sometimes the link negotiation process stalls mid-sequence, and then eventually times out.
I’ve also seen a disconnect message in the log file after my iPhone has been off for a little while (a few minutes), and then when I unlock it, the HomeKit app re-connects very quickly to the server. Here’s an example sequence of this happening:
20:17:22.428 [INFO ] [.hap.impl.http.impl.AccessoryHandler] - Terminated homekit connection from /192.168.1.90:54690
20:18:06.510 [INFO ] [ap.impl.http.HomekitClientConnection] - 200 /characteristics?id=183751298.10,183751298.9,247571669.10,247571669.9,1125051647.9,1125051647.10,36645076.9,36645076.10,891774373.10,891774373.9,5500656.9,280100330.9,280100330.10,117756218.9,117756218.10,896355494.10,896355494.9,1662463535.9,117530009.9,117530009.10,1659045902.10,1659045902.9,1702941054.9,1702941054.10,999778663.10,999778663.9,2013044578.10,2013044578.9,2061805904.10,2061805904.9,690705271.9,690705271.10,809059407.9,809059407.10,927776530.10,927776530.9,1374127740.9,1374127740.10,753704402.10,753704402.9,1157554802.10,1157554802.9,403848538.9,403848538.10,765723868.10,765723868.9,1931417234.10,1931417234.9,96385445.9,603443012.9,603443012.10,1946425445.10,1946425445.9,1952200541.9,1952200541.10,1117897826.9,1117897826.10,359566536.10,359566536.9,192402170.10,192402170.9,1295845952.9,2016838719.9,1731638545.9,1150721944.9,1150721944.10,1878070027.9,122766250.9,1505729782.10,1505729782.9,557669077.10,557669077.9,1899160741.10,1899160741.9,1760259673.10,1760259673.9,2029302749.9,2029302749.10,1010274897.9,1010274897.10
20:18:06.793 [INFO ] [impl.connections.SubscriptionManager] - Added subscription to class com.beowulfe.hap.impl.characteristics.common.PowerStateCharacteristic for 1132304223
20:18:06.793 [INFO ] [impl.connections.SubscriptionManager] - Added subscription to class com.beowulfe.hap.impl.characteristics.lightbulb.BrightnessCharacteristic for 1132304223
20:18:06.793 [INFO ] [ap.impl.http.HomekitClientConnection] - 204 /characteristics
20:18:06.797 [INFO ] [impl.connections.SubscriptionManager] - Added subscription to class com.beowulfe.hap.impl.characteristics.common.PowerStateCharacteristic for 1132304223
20:18:06.797 [INFO ] [ap.impl.http.HomekitClientConnection] - 204 /characteristics