[SOLVED] HomeKit Integration - Pairing Problems (iOS 10 - iOS 14)

Thanks @Nicolas

i changed the code and now its working again - much love! <3


1 Like

Other than changing the code/PIN, what did you do. I have also HomeKit problems in openhab. Since I changed the PIN I can see openhab in home.app again, but I cannot pair it. How did you manage to pair it?

restart openhab/raspberry and try again
and have a look at your openhab-log :wink:

good luck

Thx. I somehow thought i did that already. But now it works.

I struggled with Openhab/HomeKit integration for a long time on a Raspberry Pi. I switched from a Pi to a Linux based computer and HomeKit magically started working. The config files were basically identical. I think something in the RPi’s networking stack makes it a poor choice for Apple’s proprietary networking requirements.


I’m a newcomer to this forum, and I am trying to connect a dozen of Particle Photons around my new home to OpenHAB and further on to Homekit, so that I can use Siri.

My OH server runs on a MacbookAir.

The first part works fine:

  • Currently I have 4 switches, by which I can start 8 (ON/OFF) Particle functions from the OpenHAB dashboard.
  • The external url via myopenhab.org works fine also.

Yesterday, I managed to pair with Homekit on my iPhone, but only the last one of my 4 switches appeared. It worked well!
But I found the reason of the other 3 switches not showing in Homekit was that the label “Switchable” was only added to the last item in the file “Fidel.items”. So, I added this label to all 4.
After that, Homekit did not want to show the first 3 switches, whatever I tried…

Then, I decided to remove OpenHAB from Homekit and start again.
But after 4 hours sweating, :tired_face: trying all tips I could find, OpenHAB does not show up anymore in Homekit…

I also tried to clear all pairings:

openhab> smarthome:homekit clearPairings
Cleared homekit pairings

openhab> smarthome:homekit allowUnauthenticated true
Enabled unauthenticated homekit access

I also tried with different Pin codes: 031-45-154 and 31-45-155

The weirdest thing I remarked now is that whatever I put in “Network Interface” is immediately changed to a kind of “fallback” IP address !!!
My OH server’s IP address is: (local) or https://myopenhab.org:443 (external)

See screenshot below:

Thanks on beforehand for any tips which bring back HomeKit…

Actually, I saw the same on @RiotMode 's screenshot:

this exact thing just happened to me as well, looking for a solution.

looks like the issue was related to: /var/lib/openhab/jsondb/homekit.json , check this file


Currently not home.
I’ll check your tip asap…

Hi @ers,

I don’t see any relation with the strange URL I’m getting:


i deleted this file and started over and worked for me


btw, i ended up using this now: https://www.npmjs.com/package/homebridge-openhab2 it’s a plugin of homebridge for openhab2 , main thing is homebridge. it works much better: https://www.npmjs.com/package/homebridge


How long did you wait ? - sometimes i do changes in my items and it takes a while to see the updates in HomeKit - so just wait a bit after u make changes

HomeKit is a bitch :wink:

The weirdest thing I remarked now is that whatever I put in “Network Interface” is immediately changed to a kind of “fallback” IP address !!!

clear your OpenHab Cache and try again

1 Like

Thanks all for your tips!

BTW: How do I clear this OpenHAB cache?


This is my little Command List for noobs :smiley: :


sudo /etc/init.d/openhab2 start

sudo /etc/init.d/openhab2 stop
sudo systemctl stop openhab2.service

sudo systemctl restart openhab2.service

sudo ssh openhab@localhost -p 8101

sudo openhabian-config
( Apply Improvements -> Fix Permissions )

sudo /etc/init.d/openhab2 stop
sudo rm -rf /var/lib/openhab2/cache/*
sudo rm -rf /var/lib/openhab2/tmp/*
sudo /etc/init.d/openhab2 start


Anyone tried to add an iOS 10 device to the Home from an iOS 11 device? I have done setup it works on all devices except on my old iPad which can’t be updated to iOS11. When I try to send an invite it says that this email is not associated with an Apple ID…

Thanks for sharing your noobs command list @RiotMode!

As it is made for OpenHABian on RPi, I will have to afapt it to my install on OS-X…
I am considering a dedicated RPi with OpenHABian later but first I want to make it run on my MacbookAir.

I am still comparing Homebridge and OpenHAB and not convinced yet about the reliability of OpenHAB with Apple Homekit.

I saw this tip about a Homebridge plugin for OpenHAB and should try it out…


That sounds like an ideal combination of both worlds!
I’ll try it out as soon as I can make some time…


1 Like


it stopped working with ios12 - i tried the beta. can anyone confirm this?
I reset everything in the console and can see the openHab Homekit-Item but it fails to add it …

Hello Ersin,
i installed the homebridge-openhab2 on me Raspberry Pi3 Homebridge Server, but i can’t see any items in my Home App on my iPhone.
Can you explain me or show me your config, how you did that?

Thanks a lot.