Sensor don't sync over to HomeKit


I recently set up a sensor which i’m trying to appear in HomeKit. The sensor seem to work as when I check under developer tools>states in HASS I can see the sensor. As well as when I go to devices and setup my HomeKit integration I can select the sensor and sync it over to HomeKit. Though when I open the home application on my iPhone the sensor don’t show up.

This my code for my sensors, the sensor i’m talking about that’s giving me trouble is “Watch Procent” But I choose to include both here in case there some error with my configuration.

  - sensor:
      - name: "AC Set Temperature"
        unit_of_measurement: "°C"
        state: '{{ states.input_number.temperatureac.state | round(1, default=18) }}'
  - sensor:
      - name: "Watch Procent"
        unit_of_measurement: "%"
        state: '{{ states.input_number.watchbattery.state | round(1, default=18) }}'

Kind regards Julian

It could be that the HomeKit integration doesn’t know what to do with them since the type is not set. See if adding the device_class: parameter helps, that allows HomeKit to know what to do with it, otherwise it’s just a basic value with no context.