1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Add support for SGP30 eCO2 and TVOC sensors (#679)

* Add support for SGP30 eCO2 and TVOC sensors

* Added test for SGP30

* Lint issues fixed

* Lint fixes

* Fixed light lengths

* Cleanup

* Add support for Sensirion SCD30 CO2 sensors

* Fixed few lint issues

* Lint fixes

* Fixed line ending for lint

* Cleanup

* Refactored float conversion

* Refactor unnecessary return

* Refactoring and cleanup

* Updated uptime_sensor_ referencing and simplified checking on availability of copensation

* Temperature and Humidity source moved to a separate compensation block; Dependency for Uptime sensor removed.

* Both humidity_source and temperature_source are now mandatory if the compensation block is defined;

* Clean up

* Cleanup

* Cleanup in search of perfection

* Use correct comment style


Co-authored-by: Otto Winter <otto@otto-winter.com>
This commit is contained in:
Nad
2019-10-19 21:21:07 +02:00
committed by Otto Winter
parent 58b6311821
commit 286ca07cc8
5 changed files with 412 additions and 0 deletions

View File

@@ -531,6 +531,15 @@ sensor:
name: "Living Room Humidity 9"
address: 0x61
update_interval: 15s
- platform: sgp30
eco2:
name: "Workshop eCO2"
accuracy_decimals: 1
tvoc:
name: "Workshop TVOC"
accuracy_decimals: 1
address: 0x58
update_interval: 5s
- platform: template
name: "Template Sensor"
id: template_sensor