I wanted to join the community with some information rather than a question for once.
I was having trouble getting the homekit module to pair with my phone. Here is what i did to get it working. Feel free to comment if any of these steps are redundant / wrong / could be better.
stop openHAB2 & launch karaf console using
sudo systemctl stop openhab2.service sudo /usr/share/openhab2/start.sh
once in Karaf, view logging status and enable more logging
log:list log:set TRACE com.beowulfe.hap log:set TRACE org.openhab.homekit
watch the logs
tail -f /var/log/openhab2/openhab.log
OpenHAB appear in my iOS Home app as an accessory, but pairing always timed out. Nothing showed up in the logs even. If i accessed the default port (9124) with a browser lots happened in the logs as you can imagine.
All the above was really to consolidate when i found from many hours messing around into one place. the fix (i think!) was to change the port from 9124 to 51826. You can do this in the Paper UI via
Configuration> Services> (HomeKit)CONFIGURE. This is the port that the Hombridge project uses, i’ve not tired any other.
my setup for reference.
HomeKit Integration (misc-homekit - 2.0.0.b5)