Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Humidity sensor is not displayed in HomeKit #194

Closed
1 of 2 tasks
envy opened this issue Mar 31, 2019 · 1 comment · Fixed by #189
Closed
1 of 2 tasks

Humidity sensor is not displayed in HomeKit #194

envy opened this issue Mar 31, 2019 · 1 comment · Fixed by #189

Comments

@envy
Copy link
Contributor

envy commented Mar 31, 2019

Description of problem:

I have a humidity sensor that sends onto the KNX bus every 10 sec. This works fine and is also picked up fine in Home-Assistant.

However, the sensor is not displayed in HomeKit, possibly because Home-Assistant does not see it as a humidity sensor. The HomeKit documentation says this for humidity sensors:
"All sensors that have % as their unit_of_measurement and humidity as their device_class." (https://www.home-assistant.io/components/homekit/)

I also have a temperature sensor on KNX that works fine in HomeKit because the HomeKit documentation says this: "All sensors that have Celsius or Fahrenheit as their unit_of_measurement or temperature as their device_class."

Emphasis mine both times.

It seems that xknx is not specifying the device_class for its sensors and therefore HomeKit picks up only the temperature sensor (because it's measuring °C) but not the humidity sensor.

  • using xknx standalone
  • using Home-Assistant knx plugin

Version information:

  • xknx / Home-Assistant release with the issue: 0.90.1
  • last working xknx / Home-Assistant release (if known): N/A

KNX installation:
Mainly ABB and some selfmade KNXnet/IP devices using my ESP8266 library

Problem-relevant xknx.yaml or configuration.yaml entries (fill out even if it seems unimportant):

sensors:
  - platform: knx
    name: wznico.temp
    type: temperature
    address: '0/1/1'
  - platform: knx
    name: wznico.hum
    type: humidity
    address: '0/1/2'

Traceback (if applicable):

@envy envy changed the title Humidity sensor is not diplayed in HomeKit Humidity sensor is not displayed in HomeKit Mar 31, 2019
@amp-man
Copy link
Contributor

amp-man commented Mar 31, 2019

I also think it would be great if xknx would set the device_class.
@envy: As a quick fix, you could put something like this in your customize.yaml:

sensor.kitchen_humidity:
  device_class: humidity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants