-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Unit of measurement for VOC seems to be wrong with current Home Assistant #16057
Comments
ppb -> µg/m3 is not an easy conversion as you need to know stuff about the exact gas mix it is detecting. I gave up when adding support for https://www.develcoproducts.com/products/sensors-and-alarms/air-quality-sensor/, it also reports ppb and it even has a table but none of the formulas I found even came close to the table they listed. I imagine it would be similar for the Xiaomi one, this conversion will also be device dependent so one that works for one might not even be close for another device. |
New Beta 2023.2.0B0 now shows this Warning:
If it is not convertible, maybe the better idea would be to talk to the HA authors? |
If it is not convertible, maybe the better idea would be to talk to the HA authors? Is second this solution :) |
This should partially adress Koenkk/zigbee2mqtt#16057 The following manufacturer have devices using this expose: - heiman -> seems to actually report µg/m3 based on the photos of the display - develco -> outputs ppb but formulate to convert it to µg/m3 is available (next commit) - lifecontrol -> returns ppb, no formulate available will add withUnit('ppb') - aqara (xiaomi) -< returns ppb, no formulate available will add withUnit('ppb')
Newer doc revisions for the sensor (Sensirion SGP30) contains the formulate on how to convert ppb -> µg/m3 This should fix Koenkk/zigbee2mqtt#16057 for this device.
Pushed a fix for this, Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html) |
I switched my VOCKQJK11LM sensor to display VOC in mg/m3 on screen and compared it with ppb value reported via zigbee
On average coefficient is 2.3, on lower values variance is greater |
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
The text was updated successfully, but these errors were encountered: