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
74.08k stars 31.09k forks source link

ccs811 wrong unit of measurement #129692

Closed tricoveri closed 4 weeks ago

tricoveri commented 4 weeks ago

The problem

Got this warning appearing in my log file

Apparently the unit of measurement for this sensor is not correct anymore being outside the list of values allowed for this class

What version of Home Assistant Core has the issue?

core-2024.10.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ESP-HOME

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-11-02 18:29:58.318 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.ccs811_total_volatile_organic_compound (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement 'ppb' which is not a valid unit for the device class ('volatile_organic_compounds') it is using; expected one of ['µg/m³']; 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+esphome%22

Additional information

No response

joostlek commented 4 weeks ago

You need to use another device class for this in your configuration for this to work. The volatile_organic_compound_parts one