esphome/esphome/components/sgp30
Panuruj Khambanonda (PK) 170d52e0db Fix SGP30 incorrect baseline reading/writing (#936)
* Split the SGP30 baseline into 2 values

- According to the SGP30 datasheet, each eCO2 and TVOC baseline is a 2-byte value (MSB first)
- The current implementation ignores the MSB of each of the value
- Update the schema to allow 2 different baseline values (optional, but both need to be specified for the baseline to apply)

* Make both eCO2 and TVOC required if the optional baseline is defined

* Make dump_config() looks better
2020-01-12 16:42:18 +01:00
..
__init__.py Add support for SGP30 eCO2 and TVOC sensors (#679) 2019-10-19 21:21:07 +02:00
sensor.py Fix SGP30 incorrect baseline reading/writing (#936) 2020-01-12 16:42:18 +01:00
sgp30.cpp Fix SGP30 incorrect baseline reading/writing (#936) 2020-01-12 16:42:18 +01:00
sgp30.h Fix SGP30 incorrect baseline reading/writing (#936) 2020-01-12 16:42:18 +01:00