Homekit bundle throwing exceptions on installation

I’ve worked with SNAPSHOT .jar, but never with .kar. What are the exact steps to be able to test it?

If it works at all depends on the OH version you use. I can’t support anything below 2.5 Snapshot 1588 which is known to work. Still there it is a little bit tricky (took me three tries and I don’t know why). If you want to try: Drop the .kar in the addons directory (like you would do with a .jar) and wait until “openhab-misc-homekit-test” (not “openhab-misc-homekit”!) shows up as installable bundle in PaperUI. Press install. If it does not work out, try again.

1 Like

Seeing some odd behaviour.

  • I’ve upgraded to openHAB 2.5.0~S1589-1 (Build #1589)
  • I removed the uninstalled the old homekit bundle
  • grabbed the new one, renamed to jar and dropped in addons.
  • restarted openhab
  • installed the new bundle feature:install openhab-misc-homekit-test

The logs shows it installed, then a minute or so later, it seems to automatically uninstall with no intervention on my part

Any idea why this would be?

13:45:50.674 [INFO ] [rthome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
13:45:53.286 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory openHAB
13:45:53.362 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Bound homekit listener to /192.168.24.119:9124
13:45:53.367 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Bedtime Scene
13:45:53.370 [INFO ] [hap.impl.jmdns.JmdnsHomekitAdvertiser] - Advertising accessory openHAB
13:45:53.375 [INFO ] [hap.impl.jmdns.JmdnsHomekitAdvertiser] - Registering _hap._tcp.local. on port 9124
13:45:53.404 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.412 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory TV Room
13:45:53.442 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.444 [INFO ] [eonplm.internal.device.MessageHandler] - DimmerRequestReplyHandler: set device 28.F4.E7 to level 0
13:45:53.448 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Basement Lights
13:45:53.460 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.466 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Laundry Room
13:45:53.479 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.494 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Master Light
13:45:53.509 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.515 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Playroom lights
13:45:53.531 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.536 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Garland
13:45:53.554 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.560 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory DGarage
13:45:53.580 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.590 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Michael Garage
13:45:53.611 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.617 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Mike Night Table
13:45:53.638 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.644 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Starting Work Scene
13:45:53.666 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.671 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Synchro Scene
13:45:53.696 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.701 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Landscape Lights
13:45:53.726 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.731 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Backyard Lights
13:45:53.758 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.763 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Laundry Room Hallway
13:45:53.790 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.795 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory TV Room Accent
13:45:53.821 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.826 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Master Fan
13:45:53.852 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.857 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Main Hallway Lights
13:45:53.886 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.892 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Garage Light
13:45:53.921 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.927 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory TV Room Fireplace
13:45:53.958 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.963 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Diane Night Table
13:45:53.992 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:53.996 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Power Room Sconce
13:45:54.027 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:54.031 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Pool Light
13:45:54.062 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:54.067 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory School Day Morning Scene
13:45:54.099 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:54.104 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Awning
13:45:54.138 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:54.143 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Pool Pump
13:45:54.178 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:54.182 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Powder Room Foyer
13:45:54.219 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:54.224 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Living Room Accent
13:45:54.265 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:54.270 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Powder Room
13:45:54.322 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:54.327 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Bookshelf Lights
13:45:54.364 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:54.369 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Mike Garage
13:45:54.410 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:45:54.415 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Added accessory Diane Garage
13:45:54.457 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:46:03.425 [INFO ] [eonplm.internal.device.MessageHandler] - DimmerRequestReplyHandler: set device 23.49.F9 to level 0
13:46:33.611 [INFO ] [smarthome.event.ItemStateChangedEvent] - Azimuth changed from 196.51230869858037 to 197.0443791680659
13:46:33.620 [INFO ] [smarthome.event.ItemStateChangedEvent] - Elevation changed from 64.2731871274729 to 64.22103757424877
13:46:33.630 [INFO ] [smarthome.event.ItemStateChangedEvent] - DiffuseRadiation changed from 127.46684983249209 to 127.46112069364149
13:46:33.640 [INFO ] [smarthome.event.ItemStateChangedEvent] - TotalRadiation changed from 803.2342068001117 to 802.7609921373805
13:46:40.218 [INFO ] [ng.insteonplm.InsteonPLMActiveBinding] - devices: 29 configured, 27 polling, msgs received: 70
13:46:43.291 [INFO ] [eonplm.internal.device.MessageHandler] - DimmerRequestReplyHandler: set device 29.07.7C to level 0
13:46:53.307 [INFO ] [eonplm.internal.device.MessageHandler] - SwitchRequestReplyHandler: set device 28.8A.B7 to OFF
13:47:01.104 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Bedtime Scene
13:47:01.135 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.139 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory TV Room
13:47:01.171 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.175 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Basement Lights
13:47:01.202 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.205 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Laundry Room
13:47:01.239 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.243 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Master Light
13:47:01.271 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.275 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Playroom lights
13:47:01.304 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.308 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Garland
13:47:01.336 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.340 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory DGarage
13:47:01.366 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.371 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Michael Garage
13:47:01.396 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.400 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Mike Night Table
13:47:01.424 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.428 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Starting Work Scene
13:47:01.451 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.455 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Synchro Scene
13:47:01.477 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.482 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Landscape Lights
13:47:01.503 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.507 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Backyard Lights
13:47:01.527 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.531 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Laundry Room Hallway
13:47:01.551 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.555 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory TV Room Accent
13:47:01.573 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.577 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Master Fan
13:47:01.595 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.599 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Main Hallway Lights
13:47:01.616 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.621 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Garage Light
13:47:01.637 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.641 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory TV Room Fireplace
13:47:01.656 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.660 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Diane Night Table
13:47:01.675 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.679 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Power Room Sconce
13:47:01.692 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.696 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Pool Light
13:47:01.709 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.713 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory School Day Morning Scene
13:47:01.726 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.730 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Awning
13:47:01.742 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.747 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Pool Pump
13:47:01.757 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.761 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Powder Room Foyer
13:47:01.771 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.775 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Living Room Accent
13:47:01.784 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.788 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Powder Room
13:47:01.796 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.800 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Bookshelf Lights
13:47:01.807 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.811 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Mike Garage
13:47:01.818 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:01.822 [INFO ] [com.beowulfe.hap.HomekitRoot ] - Removed accessory Diane Garage
13:47:01.827 [INFO ] [mpl.http.impl.NettyHomekitHttpService] - Resetting connections
13:47:05.489 [INFO ] [rthome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
13:47:05.559 [INFO ] [.core.karaf.internal.FeatureInstaller] - Uninstalled 'openhab-misc-homekit-test’
13:47:05.576 [INFO ] [smarthome.event.ExtensionEvent ] - Extension ‘misc-homekit-test’ has been uninstalled.

And without any additional interaction, it’s gone from the bundle list

openhab> feature:install openhab-misc-homekit-test

openhab> bundle:list |grep omekit
205 │ Active │ 80 │ 0 │ wrap_file__var_lib_openhab2_tmp_kar_homekit-2.5.0-SNAPSHOT_net_vrallev_ecc_ecc-25519-java_1.0.1_ecc-25519-java-1.0.1.jar
282 │ Active │ 80 │ 2.5.0.201905101223 │ openHAB Add-ons :: Bundles :: Homekit

openhab> bundle:list |grep omekit
205 │ Active │ 80 │ 0 │ wrap_file__var_lib_openhab2_tmp_kar_homekit-2.5.0-SNAPSHOT_net_vrallev_ecc_ecc-25519-java_1.0.1_ecc-25519-java-1.0.1.jar
282 │ Active │ 80 │ 2.5.0.201905101223 │ openHAB Add-ons :: Bundles :: Homekit

openhab> bundle:list |grep omekit
205 │ Active │ 80 │ 0 │ wrap_file__var_lib_openhab2_tmp_kar_homekit-2.5.0-SNAPSHOT_net_vrallev_ecc_ecc-25519-java_1.0.1_ecc-25519-java-1.0.1.jar

Thanks

Yes. I’d did not work for me, too. At least not reliably. I ended up with adding homekit-test to the misc-part of addons.cfg

That worked for me.

Adding homekit-test to the misc section of my /srv/openhab2-userdata/config/org/openhab/addons.config and restarting, then adding openhab to the iphone home.app was successful.

Thanks very much!