Limych / ha-iaquk

Indoor Air Quality Sensor Component for Home Assistant
MIT License
105 stars 15 forks source link

Is it possible to use VOC index instead of TVOC? #115

Closed RASTRILL0 closed 10 months ago

RASTRILL0 commented 1 year ago

Is your feature request related to a problem? Please describe.

The SGP40 and SGP41 gas sensors report VOC as an index. The index is unit-less and bounded between 0–500 steps from the best to the worst air quality level. These sensors are pretty good at detecting VOC in realistic lab tests (see Al-Okby et al, 2022: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8876806/ ). Table 1 in the linked paper offers an approximation of TVOC levels compared to the VOC index values reported by the SGP4X sensors.

Describe the solution you'd like Suggest adding a new unit to tvoc in ha-iaquk called 'index' that converts index values and corresponding PPM values to determine the TVOC placement on the IAQUK rating index.

Describe alternatives you've considered I could try to manually add a template sensor to HA configuration.yaml to create a surrogate TVOC from VOC Index but I think with the popularity of these sensors, it might make more sense to solve the issue in the project itself.

Additional context

Screen Shot 2023-03-10 at 6 55 22 PM

Limych commented 11 months ago

@RASTRILL0 Test it, please.

RASTRILL0 commented 10 months ago

Sorry for the delay. Got a chance to try it out today and everything seems to be working great. Thanks so much!