steilerDev / homebridge-openhab2-complete

A homebridge plugin for openHAB, that has the expectation to fully support all Services offered by Apple's Homekit Accessory Protocol (HAP)
GNU General Public License v3.0
52 stars 16 forks source link

Hash on Item name to secure unique Homekit id's #27

Closed EjvindHald closed 5 years ago

EjvindHald commented 5 years ago

Homekit needs a unique id, and I think you generate this by the name displayed in Homekit from config.json+ maybe some other stuff. Regardless, I have experienced some duplicate errors eg. if I have type light "Ceiling" , which I later map to 2 different rooms on my Iphone.

The build-in homekit binding uses the openhab Item name for hashing which secures uniqueness, and I have never had any duplicate errors there. I suggest you do to the same, because that will broaded up the potential usage of your excellent work. Thanks.

EjvindHald commented 5 years ago

I have already received answer that this is made on purpose. All items has a unique name, when displayed in the Homekit app, and then it can be renamed directly in the app afterwards.