home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.62k stars 29.93k forks source link

Linked_humdity_sensor is not allowed for temperature sensor? #73787

Closed hlyi closed 2 years ago

hlyi commented 2 years ago

The problem

I integrated Xiaomi Mijia Smart Thermometer into HA. It has the following entities:

sensor.xiaomi_battery_level
sensor.xiaomi_battery_voltage
sensor.xiaomi_humidity
sensor.xiaomi_temperature

I would like to have it integrated into homekit as well. The configuration I used is:

  filter:
    include_entities:
      - sensor.xiaomi_temperature
  entity_config:
    sensor.xiaomi_temperature:
      linked_battery_sensor: sensor.xiaomi_battery_level
      linked_humidity_sensor: sensor.xiaomi_humidity

However, the configuration seems to be not valid due to linked_humidity_sensor:

 The system cannot restart because the configuration is not valid: Invalid config for [homekit]: [linked_humidity_sensor] is an invalid option for [homekit]. Check: homekit->homekit->7->entity_config->linked_humidity_sensor. (See /config/configuration.yaml, line 55).

Can linked_humidity_sensor be used for any device or it must be some specific device_class?

What version of Home Assistant Core has the issue?

2022.6.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

The system cannot restart because the configuration is not valid: Invalid config for [homekit]: [linked_humidity_sensor] is an invalid option for [homekit]. Check: homekit->homekit->7->entity_config->linked_humidity_sensor. (See /config/configuration.yaml, line 55).

Example YAML snippet

filter:
    include_entities:
      - sensor.xiaomi_temperature
  entity_config:
    sensor.xiaomi_temperature:
      linked_battery_sensor: sensor.xiaomi_battery_level
      linked_humidity_sensor: sensor.xiaomi_humidity

Anything in the logs that might be useful for us?

No response

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

homekit documentation homekit source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (homekit) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

bdraco commented 2 years ago

https://www.home-assistant.io/integrations/homekit#linked_humidity_sensor

The entity_id of a sensor entity to use as the humidity sensor of the humidifier/dehumidifier accessory.

These are only for humidifiers