Hi Guys,
today i updated to Openhab 3.0 and still was facing problems with Homekit Pairing!
But i’ve done it twice today
My Steps:
-
Delete Homekit in Openhab & Delete OH-Bridge from the IOS HOME App
-
Stop Openhab
sudo systemctl stop openhab -
Delete all Homekit Files
sudo find / -name homekit*
(delete all Homekit related files, had some “lib/openhab2” files too)
rm -r /var/lib/openhab/config/org/openhab/homekit.config
rm -r /var/lib/openhab/jsondb/homekit.json
and so on… -
Delete Cache
sudo openhab-cli clean-cache -
Delete all Homekit Backups
/var/lib/openhab/jsondb/backup
rm -r 1608xxxxxxxx–homekit.json -
Start Openhab
sudo systemctl start openhab -
Install Homekit
-
Setup Homekit and Restart OH
-
Get into Console / Karaf
sudo ssh openhab@localhost -p 8101 -
Check if Homekit is running (Console)
list | grep Homekit
homekit (gives you Usage Info) -
Optional: Check for Homekit Items (Console)
openhab:homekit list -
Set Trace (Console)
log:set TRACE io.github.hapjava -
Check the Log (most Important Step) (Console)
log:tail io.github.hapjava (Keep the Window open) -
Home.app add OH Bridge
you should see some stuff in the Log/Console -
Check Error in Log
i was getting *“Terminated homekit connection from… Bad Client Credentials” all the time -
The current Pin didn’t work and i tried all my previous Pins -> SUCCESS
then i missclicked in the OH homekit settings and pressed save with another Pin and i lost the connection again damn
and did it again, but without uninstalling Homekit, maybe that works too.
- Delete Bridge on IOS
- Stop Openhab
- Delete every Homekit File (incl. Backups)
- start Openhab
- Console -> Clear Pairings
openhab:homekit clearPairings - setup a new Pin and check if IP Address is correct ( lost it twice )
-
save and check nano /var/lib/openhab/config/org/openhab/homekit.config
looks like this
:org.apache.felix.configadmin.revision:=L"3"
networkInterface="192.168.xxx.xxx"
service.pid="org.openhab.homekit"
- Pair again
- enjoy (the current Pin in the Setting works for me now )
So keep your old PINs in mind
openhab is using old backup stuff, even when you reinstall homekit as you can see here, so delete them. ( Step 4 )