Homekit "No Response" on all openHab items

Dear Community!

I usually get this error from HomeKit (I have read somewhere which I couldn’t find now, that this is not really a problem, just one of the devices disconnects from internet…), but are there any option to turn this off? Makes it harder to distinguish from real errors.

2018-04-12 17:49:33.584 [ERROR] [lfe.hap.impl.http.impl.BinaryHandler] - Exception in binary handler
java.io.IOException: Connection timed out
        at sun.nio.ch.FileDispatcherImpl.read0(Native Method) ~[?:?]
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) [?:?]
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) [?:?]
        at sun.nio.ch.IOUtil.read(IOUtil.java:192) [?:?]
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) [?:?]
        at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:447) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:880) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) [216:org.openhab.io.homekit:2.2.0]
        at java.lang.Thread.run(Thread.java:748) [?:?]
2018-04-12 17:49:33.643 [ERROR] [.hap.impl.http.impl.AccessoryHandler] - Exception caught in web handler
java.io.IOException: Connection timed out
        at sun.nio.ch.FileDispatcherImpl.read0(Native Method) ~[?:?]
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) [?:?]
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) [?:?]
        at sun.nio.ch.IOUtil.read(IOUtil.java:192) [?:?]
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) [?:?]
        at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:447) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:880) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112) [216:org.openhab.io.homekit:2.2.0]
        at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) [216:org.openhab.io.homekit:2.2.0]
        at java.lang.Thread.run(Thread.java:748) [?:?]

Also, sometimes the HomeKit becomes unavailable, when I launch the app, it says that no there is no response from the switches, other devices provided by openHab. I couldn’t find any logged error during when this happens

Thanks

1 Like

I have opened an issue for this problem on github.
I have read somewhere that other people have problems with HomeKit, but I couldn’t find a solution for it.
Github

same here… i think this is somthing we need to live with for now

Hope there is a solution for it!
Maybe someone can mention the developer of this extension?

For me it happens very randomly, for example now, it is unavailable for 1 day! What about you? Does it happen this often for you as well?

i had it for two weeks… if i dont play around with the machine it can stay on for days
but a litle change in OH and i can see discoonect

but yes rarelay it happens randomly

Interesting, for me it happens without changing anything…
But sometimes it becames available on their own… I don’t have to restart openhab

yes time is the cure here :slight_smile:

i am alwys playing around so i cant tell you for sure how stable it is but yes just like you
it will disconnect and then after some time back on line

do you have Hub? i am using ipad as one…

1 Like

Same as me, I’m also using an iPad as a Hub… firstly I thought that the iPad doesn’t connect to the internet, but when I can’t access openHab from the Home app, I can’t access it from that iPad as well…

1 Like

Seems a problem with HomeKit/Apple cloud. I’m currently away from home, got a ATV4 as home hub, and my iPhone can connect no prob, but the iPad I’m typing this on cannot (both work when I’m home). Not sure what’s going on here.

-Th

This is not the case for me… If it stops working, it stops entirely, I can’t even connect to my openHab items from my home network…

Here is the issue on GitHub.
You’ll find a temporary workaround for that there.

Hi do you know how to turn off
log:set TRACE com.beowulfe.hap

ever since i tried the workaround my logs are filed with allot of crap

2018-05-07 07:45:59.313 [TRACE] [pl.http.impl.NettyHomekitHttpService] - WRITE UnpooledUnsafeDirectByteBuf(ridx: 0, widx: 105, cap: 256) [/10.0.0.5:52805]:
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 04 ve…

1 Like

Same here…

try this worked for me so far
log:set DEFAULT com.beowulfe.hap