Unable to discover openHAB2 with Homekit (iOS 10)

I recently did a test installtion of openHAB2 from the unstable Debian Repository on a fresh Ubuntu 16.04 server.

I only enabled the Philips Hue Binding and the Homekit Service Binding, as i wanted to try out the homekit bridge functionality. I will migrate my 1.8.3 installation after openHAB2 got a stable version.

Folowing the Guide on http://docs.openhab.org/addons/io/homekit/readme.html i created the these files for homekit for the homekit binding:

/etc/openhab2/services/homekit.cfg

org.openhab.homekit:port=9124
org.openhab.homekit:pin=031-45-154
org.openhab.homekit:useFahrenheitTemperature=true
org.openhab.homekit:thermostatCoolMode=CoolOn
org.openhab.homekit:thermostatHeatMode=HeatOn
org.openhab.homekit:thermostatAutoMode=Auto
org.openhab.homekit:thermostatOffMode=Off
org.openhab.homekit:networkInterface=10.0.0.99

/etc/openhab2/items/test.items

Switch Hue_lamp2 "LAMMMP" { channel="hue:0100:001788172cd5:14" } ["Lighting"]

However i am not able to discover the openHAB2 Hub or the exposed “LAMMMP” item.

I already tried the iOS app Hesperus, Elgato Eve and the built-in iOS 10 Home app.

Do i need to do something else? Any suggestions?

I found the error in the meantime

As it turned out, the item definition was wrong:
Instead of using

Switch Hue_lamp2 "LAMMMP" { channel="hue:0100:001788172cd5:14" } ["Lighting"]

It should have been

Switch Hue_lamp2 "LAMMMP" ["Lighting"] { channel="hue:0100:001788172cd5:14" } 

Also i found it very confusing, that the tag of the item got a lot of different syntaxes through the development process.

I found the following (which are not working in my opinion?):
homekit:Lighting
he:Lighting
Lightbulb
Light

Based on the source code of the binding i think these item types are recognized and supported:

    DIMMABLE_LIGHTBULB("DimmableLighting"),
    HUMIDITY_SENSOR("CurrentHumidity"),
    LIGHTBULB("Lighting"),
    SWITCH("Switchable"),
    TEMPERATURE_SENSOR("CurrentTemperature"),
    THERMOSTAT("Thermostat");

Now i got another Problem, maybe it is because of the fiddling arround or the items in the paper ui get tag automatically. I got about 15 Lights which don’t affect any openhab items.

How can i clean up this mess?

I already hat a look at

http://<openhabserver>:9124/accessories

after issueing the following command in the osgi cli

smarthome: homekit allowUnauthenticated true

and i think i can see all the not useable accessories.

Thank you so far

Cheers

Andreas

It looks like as the PaperUI tags Hue Lamps automatically with the Lighting Tag, so i got a lot of not used lights.

To clear everything i typed in the following in the osgi cli:
smarthome:items clear
smarthome:links clear

Now i got an empty system ready to implement everything.

This took some doing. Hopefully rest will be easy :).

1 Like

This helped me a ton! Thanks for clearing this up. I was also confused around the syntax, location and proper naming.