I might found the problem. Let me explain the situation:
I have an iphone and an Ipad and with the new iOS10 icloud has added a Homekit button in which apparently you can share the homekit devices trough out all your devices. There is another option which is to use an apple TV or Ipad as a hub when you are outside your home LAN.
IIn my case, the pairing is done with one device (Iphone) and in the Ipad you can also see all devices paired with the iPhone and manipulate the items from both devices, but when you get out of the APP, it stops working and the MAC error message comes up.
I belive that at some point we are not using the Iphone to send the orders and therfore the iphone MAC which is the device that I used to do the pairing and is an icloud service the one that sends the orders instead. That is why OH doesnât recognize the device as paired.
I tried to disable the icloud service and now my iphone works ok, but I can only use Homekit in 1 device, and if I am out of home I canât control it.
When you use multiple iOS devices tied to the same iCloud account, they all share the same authentication code. Same thing for users you invite to the Home. We have two iPhones, three iPads, and an AppleTV all connected without issue.
The specific log line you included would only show up during initialization of the bundle.
That log doesnât tell me much, but itâs probably irrelevant. If youâre seeing the message that the MAC had to be recreated, it explains why youâre losing the pairing. As far as why itâs not persisting⊠I donât have any ideas.
The MAC message doesnât appear anymore. The problem now is that if I exit the APP and enter again all Items donât respond (keep updating) and this is the Log. Is estrange because if I enter the APP after 5 min, then is ok.
I got exactly the same problem as you. A few minutes after connecting it seems like my iPhone loses connection to the homekit. All of the devices wonât respond anymore and the only way to fix it is by re-pairing. Iâm Using Openhab2, Homekit Integration, and an iPhone and iPad both at iOS 10. Openhab and Homekit are both running on a Raspberry pi 3.
Thanks this thread has been helpful in resolving many of common issues pairing with OH2 with HK plugin.
I have one question though
After installing mapdb and following @richard1 steps, I no longer experience the need to repair with the HK addon ay every OH reboot. However Iâm seeing following issue in my openhab.log. Any idea what could be wrong?
==> /var/log/openhab2/openhab.log <==
2016-11-09 22:31:56.809 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Error during the execution of startup rule 'ut': cannot invoke method public abstract org.eclipse.smarthome.core.types.State org.eclipse.smarthome.core.persistence.HistoricItem.getState() on null
Hi there
seems to be a quite old threat, but i experience the same issue of the ârepair needâ only since i installed openhab âfinalâ 2.0. i did not had the issue with beta 4 (i guess that was the previous version before final). @beowulfe Is it still a known bug in the final version?
EDIT: I thought i had installed the latest version but i had RC1 installed. I was on the unstable apt library. Made a clean install of the latest version on the stable package and everything works fine.
The mapdb hack was actually a coincidence, and actually didnât do anything. The problem stems from a race condition in HomeKit. The steps to get it to work consistently are as follows:
Log into karaf console and run smarthome:homekit clearPairings
Restart openHab
Check logs for [WARN ] [nhab.io.homekit.internal.HomekitImpl] - Could not find existing MAC in org.eclipse.smarthome.storage.json.JsonStorage. Generating new MAC. This will require re-pairing of iOS devices.
Restart openHab again.
Make sure you do not see the âCould not find existing MACâ message in the logs. If you do, start over.
Welcome, You should start a new thread for questions not related to what is being discussed in this thread. You have a syntax error in your sitemap file, if you are editing it in the Eclipse Smart Home designer app it should give you a more detailed description of the error.
[WARN ] [homekit.internal.HomekitAuthInfoImpl] - Could not find existing MAC in org.eclipse.smarthome.storage.json.JsonStorage. Generating new MAC. This will require re-pairing of iOS devices.
Andy, in web address https://github.com/beowulfe/openhab2/tree/homekit/addons/io/org.openhab.io.homekit you are mentioning window coverings, for me namely the rollershutters. However i couldnât find that information in openhab2 distro snapshots. Are these already included in the distro binding, or the binding in your git page is different? Thanks