Skip to content

Unit of measurement for VOC seems to be wrong with current Home Assistant #16057

@jmerifjKriwe

Description

@jmerifjKriwe

What happened?

Seems that the unit of measurement for VOC shouldn't be 'ppb' if you use the current version of Home Assistant (2023.1).

What did you expect to happen?

According to https://www.home-assistant.io/integrations/sensor/ it's only allowed to be:

volatile_organic_compounds: Concentration of volatile organic compounds in µg/m³

How to reproduce it (minimal and precise)

Use any sensor with voc, e.g. Xiaomi VOCKQJK11LM

will result in:
Entity sensor.mysensor_voc (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'ppb' which is not a valid unit for the device class ('volatile_organic_compounds') it is using; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22

Zigbee2MQTT version

1.29.1 commit: 7d67ffc

Adapter firmware version

20221102

Adapter

zStack3x0

Debug log

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    problemSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions