I don't know if you guys heard, but OpenHab works pretty good with iOS's HomeKit

Here are some errors I’m getting:

13:21:22.372 [ERROR] [lfe.hap.impl.http.impl.BinaryHandler] - Exception in binary handler
java.io.IOException: Operation timed out
	at sun.nio.ch.FileDispatcherImpl.read0(Native Method)[:1.8.0_73]
	at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)[:1.8.0_73]
	at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)[:1.8.0_73]
	at sun.nio.ch.IOUtil.read(IOUtil.java:192)[:1.8.0_73]
	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)[:1.8.0_73]
	at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:447)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:880)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_73]
13:21:22.372 [ERROR] [lfe.hap.impl.http.impl.BinaryHandler] - Exception in binary handler
java.io.IOException: Operation timed out
	at sun.nio.ch.FileDispatcherImpl.read0(Native Method)[:1.8.0_73]
	at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)[:1.8.0_73]
	at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)[:1.8.0_73]
	at sun.nio.ch.IOUtil.read(IOUtil.java:192)[:1.8.0_73]
	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)[:1.8.0_73]
	at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:447)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:880)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_73]
13:21:22.415 [ERROR] [.hap.impl.http.impl.AccessoryHandler] - Exception caught in web handler
java.io.IOException: Operation timed out
	at sun.nio.ch.FileDispatcherImpl.read0(Native Method)[:1.8.0_73]
	at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)[:1.8.0_73]
	at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)[:1.8.0_73]
	at sun.nio.ch.IOUtil.read(IOUtil.java:192)[:1.8.0_73]
	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)[:1.8.0_73]
	at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:447)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:880)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_73]
13:21:22.415 [ERROR] [.hap.impl.http.impl.AccessoryHandler] - Exception caught in web handler
java.io.IOException: Operation timed out
	at sun.nio.ch.FileDispatcherImpl.read0(Native Method)[:1.8.0_73]
	at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)[:1.8.0_73]
	at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)[:1.8.0_73]
	at sun.nio.ch.IOUtil.read(IOUtil.java:192)[:1.8.0_73]
	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)[:1.8.0_73]
	at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:447)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:880)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[206:org.openhab.io.homekit:2.0.0.201610091257]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_73]

Ah I had that behaviour when I was running OH 1.8 with iOS 9. It was really bugging me. I then upgraded to OH2 and ios10 (at around the same time). Now it seems to work first time every time.

In my case I have homebridge plugin and OH running on RPi 2. Homekit is on iOS 10. I found also that icons in iOS Control Center sometimes show no connection to items even after Wi-Fi was connected for a while. Perhaps it has something to do with Apple TV?

PS. I have also one bug with dimmers since I upgraded to iOS10 - very often, when I tap slider in Home App it sends correct brightness value, immediately followed by brightness, set to 1%. Thus it dims my lights after thet. Same happens quite often with simple ON operation - e.g it shortly blinks to 100% and then immediately to 1%. I have even created a rule, which ignores 1% commands from Siri. This is something annoying. Has anyone seen this bug?

Hi man how did you manage with 2nd tutorial? i m stuck on the first command:
sudo apt-get install libnss-mdns libavahi-compat-libdnssd-dev
it says:
unable to locate the packkage libavahi-compact-libdnssd-dev
after i installed a fresh Jessie on my Rpi!
i have oh 1.8.3 and its working well and i would like to make somehow a connection with siri but i dont want to use the plugin version couse i think is more difficult to use!
How did you manage to get it work? just following the second tutorial? or from other sources? As i said, on the first command i got stuck!

Anyone please can give us more details? i have a RPI 2 with a fresh Jessie installed and i have OH 1.8.3 running! what would be easier for me to use all the items in the sitemap?

Thanks!

Hi all,
I managed to install homebridge following nfarina and wiki tutorials and now I can use Siri to control different things installed through Elegato Eve app yeyyyyy :slight_smile:
I would like to ask about Harmony Logitech, do i have to install the plugin or its enough i have it OH as an item? The thing is that i cant see the Harmony item in Elegato app!
My Logitech item looks like this:

String Harmony_Activity "Scena Activa [%s]" {harmonyhub="*[currentActivity]"}
and the sitemap:

Selection item=Harmony_Activity mappings=[PowerOff='Noapte', WatchTV='TV', Film='Film', Cina='Cina']

Do i need to make other items to turn /off tv or for the volume up/down or mute?

Could anyone please help?
Thanks.

Hello! Anyone, any suggestion for the question above?
Thanks for any fish I get :wink:

Hey all homebridge users.
I’m trying to setup roller-shutter control using Homekit. Positioning works fine, but open/close commands and percentage are inverted. Is there any easy option to change this? It seems that in OH normal logic is 0% - fully open and 100% - fully closed, but Homekit logic seems to be inverted…

Does this still work in recent OpenHAB versions? The HomeKit binding itself seems not to work for me reliably, and this seems quite promising.

Since the last update I made, it stopped working. Unfortunately HomeKit is the most unreliable binding I know currently. Now I need to find out, what has changed and need to fix it…

I’m having the same thing (with 2.3 release version). I set the HomeKit scenes, they work for a while, and then Homekit/the binding forgets them. Just overnight, with no openHAB or binding restart in-between

Dan

1 Like