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.73k stars 29.98k forks source link

Support volatile_organic_compounds_parts in VOC sensor #126120

Open kusmi opened 6 days ago

kusmi commented 6 days ago

The problem

I have a sensor providing device class: volatile_organic_compounds_parts which sees not supported, only volatile_organic_compounds seems supported yet.

It would be great if volatile_organic_compounds_parts would also supported, as many devices (e.g. mine Airthings Wave) uses that device class.

For converting ppb or ppm to µg/m^3 you can use the formula on the following websites I found:

https://atmotube.com/atmotube-support/voc-concentrations-in-air-units-of-measurement https://www.breeze-technologies.de/blog/air-pollution-how-to-convert-between-mgm3-µgm3-ppm-ppb/

Basically you can calculate with an average 100 g/mol, you have to take into account there are sensors with unit_of_measurement of ppb or ppm.

What version of Home Assistant Core has the issue?

core-2024.9.2

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

HomeKit Bridge

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

homekit:
  filter:
    include_entities:
        - light.zimmer_tim_left_light
        - light.zimmer_tim_right_light
        - light.zimmer_tim_desk_light
        - sensor.zimmer_tim_ble_humidity
        - sensor.zimmer_tim_ble_temperature
        - light.elternzimmer_desk_light
        - light.elternzimmer_stand_light
        - sensor.elternzimmer_airthings_wave_humidity
        - sensor.elternzimmer_airthings_wave_temperature
        - sensor.elternzimmer_airthings_wave_voc
        - light.zimmer_noa_bed_light
  name: HASS Bridge 1

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 6 days 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!

Code owner commands Code owners of `homekit` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign homekit` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


homekit documentation homekit source (message by IssueLinks)

kusmi commented 6 days ago

The state attributes of the VOC sensor are:

state_class: measurement
unit_of_measurement: ppb
device_class: volatile_organic_compounds_parts
friendly_name: VOC Elternzimmer