Hi,
This is probably a stupid beginner question: I have been using the HomeKit binding for some time now, with only one item, a garage door opener. Now I added another item, a thermostat. Since I added the metadata one by one, there were initially errors in the log file that not all mandatory characteristics were present, but in the end it seems it was created successfully. However, I do not see the new device in the Home app on my iPhone.
Is there anything specific I need to do for HomeKit to update the devices available via the openHAB accessory?
2024-01-10 21:19:17.065 [WARN ] [.accessories.HomekitAccessoryFactory] - Accessory of type Thermostat must have following characteristics [CurrentHeatingCoolingMode, TargetHeatingCoolingMode, CurrentTemperature, TargetTemperature]. Found only [Item:Heat_OG_BL_Power (Type=SwitchItem, State=OFF, Label=Thermostat Power, Category=heating, Tags=[Point, Power], Groups=[Outlet_OG_BL]) HomeKit type: 'Thermostat' characteristic: 'CurrentHeatingCoolingMode', Item:Heat_OG_BL_Power (Type=SwitchItem, State=OFF, Label=Thermostat Power, Category=heating, Tags=[Point, Power], Groups=[Outlet_OG_BL]) HomeKit type: 'Thermostat' characteristic: 'TargetHeatingCoolingMode']
2024-01-10 21:19:17.065 [WARN ] [mekit.internal.HomekitChangeListener] - Cannot create accessory Item:Heat_OG_BL_Power (Type=SwitchItem, State=OFF, Label=Thermostat Power, Category=heating, Tags=[Point, Power], Groups=[Outlet_OG_BL]) HomeKit type: 'Thermostat' characteristic: 'Empty'
2024-01-10 21:19:39.055 [WARN ] [.accessories.HomekitAccessoryFactory] - Accessory of type Thermostat must have following characteristics [CurrentHeatingCoolingMode, TargetHeatingCoolingMode, CurrentTemperature, TargetTemperature]. Found only [Item:Heat_OG_BL_Power (Type=SwitchItem, State=OFF, Label=Thermostat Power, Category=heating, Tags=[Point, Power], Groups=[Outlet_OG_BL]) HomeKit type: 'Thermostat' characteristic: 'CurrentHeatingCoolingMode', Item:Heat_OG_BL_Power (Type=SwitchItem, State=OFF, Label=Thermostat Power, Category=heating, Tags=[Point, Power], Groups=[Outlet_OG_BL]) HomeKit type: 'Thermostat' characteristic: 'TargetHeatingCoolingMode']
2024-01-10 21:19:39.055 [WARN ] [mekit.internal.HomekitChangeListener] - Cannot create accessory Item:Outlet_OG_BL (Type=GroupItem, Members=4, State=NULL, Label=Heizung, Category=heating, Tags=[RadiatorControl], Groups=[SM_OG_BL]) HomeKit type: 'Thermostat' characteristic: 'Empty'
2024-01-10 21:21:45.187 [WARN ] [.accessories.HomekitAccessoryFactory] - Accessory of type Thermostat must have following characteristics [CurrentHeatingCoolingMode, TargetHeatingCoolingMode, CurrentTemperature, TargetTemperature]. Found only [Item:Heat_OG_BL_Power (Type=SwitchItem, State=OFF, Label=Thermostat Power, Category=heating, Tags=[Point, Power], Groups=[Outlet_OG_BL]) HomeKit type: 'Thermostat' characteristic: 'CurrentHeatingCoolingMode', Item:Heat_OG_BL_Power (Type=SwitchItem, State=OFF, Label=Thermostat Power, Category=heating, Tags=[Point, Power], Groups=[Outlet_OG_BL]) HomeKit type: 'Thermostat' characteristic: 'TargetHeatingCoolingMode', Item:Heat_OG_BL_CurrentTemp (Type=NumberItem, State=22.3 °C, Label=Thermostat Current Temperature, Category=Temperature, Tags=[Measurement, Temperature], Groups=[Outlet_OG_BL]) HomeKit type: 'Thermostat' characteristic: 'CurrentTemperature']
2024-01-10 21:21:45.188 [WARN ] [mekit.internal.HomekitChangeListener] - Cannot create accessory Item:Outlet_OG_BL (Type=GroupItem, Members=4, State=NULL, Label=Heizung, Category=heating, Tags=[RadiatorControl], Groups=[SM_OG_BL]) HomeKit type: 'Thermostat' characteristic: 'Empty'
2024-01-10 21:22:15.496 [WARN ] [istics.impl.base.FloatCharacteristic] - Detected value out of range 0.0. Returning min value instead. Characteristic io.github.hapjava.characteristics.impl.thermostat.CurrentTemperatureCharacteristic@7a70947b
2024-01-10 21:22:15.524 [WARN ] [istics.impl.base.FloatCharacteristic] - Detected value out of range 0.0. Returning min value instead. Characteristic io.github.hapjava.characteristics.impl.thermostat.TargetTemperatureCharacteristic@4aa699ed
2024-01-10 21:22:15.526 [INFO ] [mekit.internal.HomekitChangeListener] - Created 2 HomeKit items in instance 1.
One thing I am not sure if I did it right, I wanted to map both the CurrentHeatingCoolingMode and TargetHeatingCoolingMode to the same point in openHAB. Is this a problem?
Here is how the metadata config for the thermostat item looks like:
And here the metadata code for the one switch that both current and target modes are mapped to:
value: Thermostat.CurrentHeatingCoolingMode,Thermostat.TargetHeatingCoolingMode
config:
HEAT: ON
OFF: OFF
Regards, Robert