I use the latest stable version of openHAB but I can’t pair it with HomeKit. I have an iPhone XS and an iPad with the latest iOS version. I deleted the binding and Json dB ( inclusive backup). I get the message with the new ,ac address but my phone can’t find the openHAB. I go into home app and type the code but after a few minutes my phone nothing found. What can I do?
if you dont see openhab in the home app then it is typically an issue with infrastructure. something like - different sub networks, firewall blocking required ports, router blocking multicast.
Homekit uses protocols multicast DNS (mDNS) and bonjour to advertise bridges, i.e. in our case make OpenHAB visible to home app.
so, please make sure
port 5353 is not blocked by firewalls
if home app and openhab are in different subnetwork, make sure multicast does not get blocked by router. e.g. my Unifi router has a special setting called " Enable MulticastDNS Service"
hi all, i’m also trying to make homekit work!
Now i can just see the bridge on the iPhone, it ask me for the code, but the after a while is saying it can not connect and can’t add openhab bridge.
I installed homekit from paper ui, misc-homekit - 2.5.3
I read a lot of discussions, but up to now doesn’t work.
i checked version and seem to be upadted, it’s 2.5.8
I installed from PaperUI.
Stil the same behaviour, from Home app i can see the bridge but then no accessory are added.
ok. this is already very good. what you get if you execute following in the karaf console
homekit list
this will list all known homekit accessories in openhab.
if you dont get the one you are expecting (iDQ0), then it is an issue with configuration.
if you get the accessories you have configured, then it is something else. e.g. missing state information for that item.
hm. ok.
please try following
1.set allowUnauthenticated to false
2. enable additional logging in karaf with log:set TRACE io.github.hapjava
3. check in Paper UI > Configuration > Services > Homekit that you have network interface specified (IP address of openHAB) and check the PIN
4. add new home in home app on the iphone, add accessory, select openhab and enter the PIN if it asks for it.
5. if you still dont get accessory, please check the log file for something like
“/accessories …” and paste few lines before it and after it here.
still not working…
This is my log:
[INFO ] [mekit.internal.HomekitChangeListener] - Created 5 HomeKit items.
[TRACE] [thub.hapjava.server.impl.HomekitRoot] - Added accessory java.util.concurrent.CompletableFuture@423a0111[Completed normally]
[TRACE] [thub.hapjava.server.impl.HomekitRoot] - Added accessory java.util.concurrent.CompletableFuture@5d7fa0a4[Completed normally]
[TRACE] [thub.hapjava.server.impl.HomekitRoot] - Added accessory java.util.concurrent.CompletableFuture@729c03ce[Completed normally]
[TRACE] [thub.hapjava.server.impl.HomekitRoot] - Added accessory java.util.concurrent.CompletableFuture@4091f47[Completed normally]
[TRACE] [thub.hapjava.server.impl.HomekitRoot] - Added accessory java.util.concurrent.CompletableFuture@1629b45e[Completed normally]
[TRACE] [thub.hapjava.server.impl.HomekitRoot] - Added accessory java.util.concurrent.CompletableFuture@36f35cbf[Completed normally]
[TRACE] [pl.http.impl.NettyHomekitHttpService] - Bound homekit listener to /192.168.1.61:9124
[TRACE] [er.impl.jmdns.JmdnsHomekitAdvertiser] - Advertising accessory openHAB
[INFO ] [er.impl.jmdns.JmdnsHomekitAdvertiser] - Registering _hap._tcp.local. on port 9124
Ip of the ethernet card is specified, Code is ok…
Is strange because when i try to add objects the bridge is not always discovered, and also in this case no accessory added…
Another different behaviour, sfter restarting the service it works for a couple of minutes. If i made the pairing during this time accessories are found and works for a couple of minutes.
After that everything goes offline and the only way is restart the service.
Again 2 minutes working and then stoppes.
the only error in the log is complain that it cannot start homekit binding as homekit binding is already running.
can we check one thing
go to karaf
check with command list that you have only one homekit binding running.
e.g. following command should return only one result. list | grep Homekit
another strange thing - it keeps adding and removing accessory all the time. this process is trigged by changes in the items configuration. almost every minute openHAB tells homekit to re-create all accessory as they all were changed. strange. not sure how that could happen.
but let first exclude the error due multiple homekit bindings.
ok. this is good. one potential root cause excluded.
but i have no ideas, what actual root cause could be. the log looks really strange.
i would try the standard solutions - reinstall homekit binding, restart openhab, etc.
i will take a look on openHAB code later to understand what could trigger “add item/remove item” events.
I’ve also tried to integrate Homekit with OpenHab… unfortunetely with the same result. I’ve tried all the solutions explained without success.
My configuration :