mirror of
https://github.com/esphome/esphome.git
synced 2026-01-09 19:50:49 -07:00
Sgp40 (#1513)
* Start of SGP40 dev * Clean up * Initial Commit * VOC is working * Fixed up sensor config * Lint Fixes Added in save/restore baseline Noted original repo in header * Lint Fixes Added to test * Lint Fixes * Added additional check on restoring * Removed double check * Changed defines to static const double * Changed defines to const Do not send voc index until sensor stabilizes * Fixed sensor stabilization message * Fixup according to PR * samples_read increment fix * Fixed missing device class * Choose a SENSOR device class * Moved some sensors for tests Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
This commit is contained in:
@@ -54,6 +54,10 @@ deep_sleep:
|
||||
as3935_i2c:
|
||||
irq_pin: GPIO12
|
||||
|
||||
mcp3008:
|
||||
- id: 'mcp3008_hub'
|
||||
cs_pin: GPIO12
|
||||
|
||||
sensor:
|
||||
- platform: homeassistant
|
||||
entity_id: sensor.hello_world
|
||||
@@ -212,12 +216,21 @@ sensor:
|
||||
- platform: inkbird_ibsth1_mini
|
||||
mac_address: 38:81:D7:0A:9C:11
|
||||
temperature:
|
||||
name: 'Inkbird IBS-TH1 Temperature'
|
||||
name: 'Inkbird IBS-TH1 Temperature'
|
||||
humidity:
|
||||
name: 'Inkbird IBS-TH1 Humidity'
|
||||
name: 'Inkbird IBS-TH1 Humidity'
|
||||
battery_level:
|
||||
name: 'Inkbird IBS-TH1 Battery Level'
|
||||
|
||||
name: 'Inkbird IBS-TH1 Battery Level'
|
||||
- platform: sgp40
|
||||
name: 'Workshop VOC'
|
||||
update_interval: 5s
|
||||
store_baseline: 'true'
|
||||
- platform: mcp3008
|
||||
update_interval: 5s
|
||||
mcp3008_id: 'mcp3008_hub'
|
||||
id: freezer_temp_source
|
||||
reference_voltage: 3.19
|
||||
number: 0
|
||||
time:
|
||||
- platform: homeassistant
|
||||
on_time:
|
||||
|
||||
Reference in New Issue
Block a user