Testing HomeKit add-on on OpenHAB 2

This same thing happens to me. Did you ever find a solution?

No, unfortunately not - I gave it up after trying with 3 different platforms. I cannot make the homekit addon running.

If you’re still trying and haven’t tried this setup yet I’ve had good luck with Domoticz for my HA software controller and Homebridge with the eDomoticz plugin for HomeKit interfacing. I’ve never once had a problem with the pairing process for Homebridge it’s rock solid. Was hoping to transition to openHAB because an all-in-one solution sounded great but I guess the time hasn’t come yet.

I have OH2 working with Homekit and the Omnilink 1.9 plugin. I can now control my lights and thermostat with Siri! Everything works nicely except for when I reboot the raspberry pi or restart OH2.

I get this warning in the logs and i have to repair my IOS devices.

[WARN ] [nhab.io.homekit.internal.HomekitImpl] - Could not find existing MAC in org.eclipse.smarthome.storage.mapdb.MapDbStorage. Generating new MAC. This will require re-pairing of iOS devices.

Any ideas on how to fix this? So close!

1 Like

I have about 250 items configured that I want to use with HomeKit . my tests always run on the maximum of 99 accepted also . could it be that there is a limit ?

@beowulfe do you have any plans to update the binding and add some of the new command classes (i.e. Garage doors, fans, etc?) especially now that iOS 10 is out?

@Kleinpaul - there’s no defined limit at the protocol level, but I’m not sure if iOS enforces one.

@feens - definitely. They’re already supported in the underlying library - I just need to get them mapped in OH. First order of business is figuring out how we extend the OH ontology - I keep meaning to start that discussion.

I started the discussion here - https://github.com/eclipse/smarthome/issues/1093#issuecomment-247893106

Chime in there if you have an opinion.

Is it possible to split the openhab items into more homekit groups?

@beowulfe I get this warning in the logs and i have to pair my IOS devices when i reboot the system.

[WARN ] [nhab.io.homekit.internal.HomekitImpl] - Could not find existing MAC in org.eclipse.smarthome.storage.mapdb.MapDbStorage. Generating new MAC. This will require re-pairing of iOS devices.

Do you know how I can fix this?

@sbrandon - the add-on uses the persistence service to store this. Are you using any alternative persistence services? (i.e. - a database)

If not, check the perms on your userdata folder.

@beowulfe I am not using alternative persistence services. The userdata folder is wide open. I can see the storage.mapdb file being written to.

Thanks for your help! Sean

Very odd. Maybe try backing up your userdata folder and then deleting it (with OH shutdown)?

iOS 10 also brings support for sensors like movement or smoke, are you also integrate this types into the homekit binding?

@viruz - sure, would you bring those up in the ontology discussion I linked to?

Sure, already done!

Is anyone running OpenHAB2 on windows 10 with this plug in? I’m getting the following error:

2016-10-01 22:29:30.669 [ERROR] [org.openhab.io.homekit ] - FrameworkEvent ERROR - org.openhab.io.homekit
org.osgi.framework.BundleException: Could not resolve module: org.openhab.io.homekit [193]
Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.8))"

I have installed JavaSE 1.8.0_101 and updated my path etc.

Any ideas? Thanks

EDIT: Sorted - Problem with my Java_Home still pointing to the old JRE.

I have this error. i see the homebridge accessory but cannot connect to it.

14:13:19.864 [`ERROR`] [lfe.hap.impl.connections.HttpSession] - Could not handle request
	at com.beowulfe.hap.characteristics.FloatCharacteristic.getValue(FloatCharacteristic.java:72)[196:org.openhab.io.homekit:]
	at com.beowulfe.hap.characteristics.BaseCharacteristic.makeBuilder(BaseCharacteristic.java:71)[196:org.openhab.io.homekit:]
	at com.beowulfe.hap.characteristics.FloatCharacteristic.makeBuilder(FloatCharacteristic.java:48)[196:org.openhab.io.homekit:]
	at com.beowulfe.hap.characteristics.BaseCharacteristic.toJson(BaseCharacteristic.java:61)[196:org.openhab.io.homekit:]
	at com.beowulfe.hap.impl.json.AccessoryController.toJson(AccessoryController.java:73)[196:org.openhab.io.homekit:]
	at com.beowulfe.hap.impl.json.AccessoryController.listing(AccessoryController.java:39)[196:org.openhab.io.homekit:]
	at com.beowulfe.hap.impl.connections.HttpSession.handleAuthenticatedRequest(HttpSession.java:70)[196:org.openhab.io.homekit:]
	at com.beowulfe.hap.impl.connections.ConnectionImpl.doHandleRequest(ConnectionImpl.java:51)[196:org.openhab.io.homekit:]
	at com.beowulfe.hap.impl.connections.ConnectionImpl.handleRequest(ConnectionImpl.java:46)[196:org.openhab.io.homekit:]
	at com.beowulfe.hap.impl.http.impl.AccessoryHandler.channelRead0(AccessoryHandler.java:47)[196:org.openhab.io.homekit:]
	at com.beowulfe.hap.impl.http.impl.AccessoryHandler.channelRead0(AccessoryHandler.java:15)[196:org.openhab.io.homekit:]
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)[196:org.openhab.io.homekit:]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)[196:org.openhab.io.homekit:]
	at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:32)[196:org.openhab.io.homekit:]
	at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:299)[196:org.openhab.io.homekit:]
	at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:36)[196:org.openhab.io.homekit:]
	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)[196:org.openhab.io.homekit:]
	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[196:org.openhab.io.homekit:]

any ideas?

I just had the same issue. Probably one of your dimmer items has no current value. As a workaround try to change the values before pairing homekit

1 Like


i have a NIKO configuration working with homekit bridge but only one problem i had
My rollershutter tested from Paper UI ale is working. up and down and also stopping .

this is not working only from Apple home kit bridge, only up and down
where can i start investigation where is a problem