Hi.
I want to expose my KNX sensor to Apple Homekit. While KNX-Lights and Covers are exposed automatically, I wasn’t able to manage it with KNX-Sensors and also not with templates.
For example I have an KNX temperature sensor:
knx:
sensor:
- name: "Gartenraum-Temperatur"
state_address: "3/5/0"
type: temperature
I can see the Entity within the HA-UI and it shows the right temperature with the right unit “°C”, but it is not exposed to HomeKit. I have also tried to set the device-class manually: device_class: temperature
.
Then I have tried to use a template - as the HomeKit-Docu say, we need to use:
All sensors that have
°C
or°F
as theirunit_of_measurement
andtemperature
as theirdevice_class
.
My template looks like:
template:
-sensor:
- name: "Gartenraum-Temperatur-HomeKit"
unit_of_measurement: "°C"
device_type: temperature
state: "{{ states('sensor.gartenraum_temperatur') }}"
Again I can see the entity in the HA-UI with right values. But it is not exposed to HomeKit.
What I’m doing wrong?