I did a fresh install of openHABian and openHAB3.4.2 on a new microSD card for my raspberry pi 3B+.
When I tried to expose Items to the homekit binding, I encountered several problems:
- When assigning homekit metadata at Equipment level, there is an option to propagate the homekit properties to the direct members of the related Equipment group. Clicking this “populate group members” link does nothing.
- To get the metadata assigned to the individual Points in an Equipment, you need to add the metadata for each Point (Item) individually.
- You cannot assign multiple homekit device types at Equipment level. Either the metadata remains empty or the UI shows garbled settings (as if they lost the relation to the selected device types).
- Even if you succeed in properly assigning the required homekit metadata, most of the time the devices exposed to the homekit binding either become dummy items or remain in “No response” state in the Home app.
If I try to assign homekit metadata at Equipment level in the UI, the JavaScript console produces the following error when I try to assign a sub property to a related Point (in this case Lighting.onType
to the Brightness
Point of a Lightbulb
:
TypeError: undefined is not an object (evaluating 'a.metadata.homekit')
updateLinkedItem — 16.app.eab2460dc8b652f1fc46.js:1:133237
updateLinkedItem
qe — app.eab2460dc8b652f1fc46.js:7:11325
dispatchEvent
trigger — app.eab2460dc8b652f1fc46.js:1:9730
b — app.eab2460dc8b652f1fc46.js:7:311041
l — app.eab2460dc8b652f1fc46.js:1:7535
When I subsequently click the “Update group members” link on the same page, nothing happens, not even a warning in the JavaScript console.
Andf here’s what happens in the logs:
2023-03-15 10:32:15.627 [WARN ] [.accessories.HomekitAccessoryFactory] - Accessory of type Lighting must have following characteristics [OnState]. Found only []
2023-03-15 10:32:15.633 [WARN ] [mekit.internal.HomekitChangeListener] - Cannot create accessory Item:Rail_straat_N1 (Type=GroupItem, Members=1, State=NULL, Label=Rail straat N1, Category=lightbulb, Tags=[Lightbulb], Groups=[LivingRoom]) HomeKit type: 'Lighting' characteristic: 'Empty'
2023-03-15 10:32:55.006 [INFO ] [mekit.internal.HomekitChangeListener] - Created 18 HomeKit items in instance 1.