Hi
I have just set up openHAB2 on a Windows machine and it seems to work with IHC and HomeKit integration.
One question is how I set up dimmers correctly so that I can dim the lights from the Home app. Is this possible?
The normal switch "LysMathias" works just fine and turns on/off via the Home app.
The dimmers does not work (lights are not dimming when trying from the Home app), but I see that openHAB2 get the changes from HomeKit.
I tried using the IHC IDs both from the output and input without any luck.
My OpenHAB.log returns some errors, but I believe this could relate to the answer above. Correct me if I am wrong.
Using newest IHC binding (version 2.4.0.201812081313).
.items
Switch LysMathias "Loft Lys Mathias" <light> ["Lighting"] {ihc="77915"}
Dimmer Sofabord "Sofabord" <light> ["Lighting"] {ihc="7147282"}
Dimmer Spisebord "Spisebord" <light> ["Lighting"] {ihc="29020"}
events.log
2019-01-16 21:43:50.341 [ome.event.ItemCommandEvent] - Item 'Spisebord' received command OFF
2019-01-16 21:43:50.357 [vent.ItemStateChangedEvent] - Spisebord changed from 100 to 0
2019-01-16 21:43:51.185 [ome.event.ItemCommandEvent] - Item 'Spisebord' received command ON
2019-01-16 21:43:51.185 [ome.event.ItemCommandEvent] - Item 'Spisebord' received command 100
2019-01-16 21:43:51.653 [vent.ItemStateChangedEvent] - Spisebord changed from 0 to 100
2019-01-16 21:43:53.762 [ome.event.ItemCommandEvent] - Item 'Spisebord' received command ON
2019-01-16 21:43:53.762 [ome.event.ItemCommandEvent] - Item 'Spisebord' received command 48
2019-01-16 21:43:54.090 [vent.ItemStateChangedEvent] - Spisebord changed from 100 to 48
2019-01-16 21:43:56.059 [ome.event.ItemCommandEvent] - Item 'Spisebord' received command OFF
2019-01-16 21:43:56.074 [vent.ItemStateChangedEvent] - Spisebord changed from 48 to 0
openhab.log
2019-01-17 08:03:14.536 [ERROR] [lfe.hap.impl.http.impl.BinaryHandler] - Exception in binary handler
java.io.IOException: En eksisterende forbindelse blev tvangsafbrudt af en ekstern vært
at sun.nio.ch.SocketDispatcher.read0(Native Method) ~[?:?]
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43) ~[?:?]
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) ~[226:org.openhab.io.homekit:2.4.0]
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:880) ~[226:org.openhab.io.homekit:2.4.0]
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242) ~[226:org.openhab.io.homekit:2.4.0]
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119) [226:org.openhab.io.homekit:2.4.0]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) [226:org.openhab.io.homekit:2.4.0]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) [226:org.openhab.io.homekit:2.4.0]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) [226:org.openhab.io.homekit:2.4.0]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) [226:org.openhab.io.homekit:2.4.0]
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112) [226:org.openhab.io.homekit:2.4.0]
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) [226:org.openhab.io.homekit:2.4.0]
at java.lang.Thread.run(Thread.java:748) [?:?]
2019-01-17 08:03:14.536 [ERROR] [.hap.impl.http.impl.AccessoryHandler] - Exception caught in web handler
java.io.IOException: En eksisterende forbindelse blev tvangsafbrudt af en ekstern vært
at sun.nio.ch.SocketDispatcher.read0(Native Method) ~[?:?]
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43) ~[?:?]
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) ~[226:org.openhab.io.homekit:2.4.0]
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:880) ~[226:org.openhab.io.homekit:2.4.0]
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242) ~[226:org.openhab.io.homekit:2.4.0]
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119) ~[226:org.openhab.io.homekit:2.4.0]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) ~[226:org.openhab.io.homekit:2.4.0]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) ~[226:org.openhab.io.homekit:2.4.0]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) ~[226:org.openhab.io.homekit:2.4.0]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) ~[226:org.openhab.io.homekit:2.4.0]
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112) [226:org.openhab.io.homekit:2.4.0]
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) [226:org.openhab.io.homekit:2.4.0]
at java.lang.Thread.run(Thread.java:748) [?:?]