aequitas/python-rflink

Humidity sensors not recognized by HomeKit

erkr opened this issue · 2 comments

erkr commented

Hi
When I configure sensors of the type humidity like this:

sensor: 
  - platform: rflink
    devices:
      alectov4_5aaa_hum:
        sensor_type: humidity
        name: Alecto ch3 humidity

They are not recognized as such by e.g HomeKit in HomeAssistant.
Work around is adding a template sensor like this:

  - platform: template
    sensors:
      homekit_woonkamer_hum:
        friendly_name: woonkamer humidity
        unit_of_measurement: '%'
        value_template: "{{ states('sensor.alecto_ch3_humidity') }}"
        device_class: humidity 

The template sensor is recognized by HomeKit.
Please translate sensor_type: humidity into a device_class: humidity.
That would allow me to get rid of the template workaround.

This is a Home assistant specific issue and does not have much to do with python-rflink itself. I would suggest opening this issue there: https://github.com/home-assistant/core/issues

erkr commented

Thx, i have done that. Have a good day