[hc8] Add support for HC8 CO2 sensor (#11872)
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
This commit is contained in:
13
tests/components/hc8/common.yaml
Normal file
13
tests/components/hc8/common.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- hc8.calibrate:
|
||||
id: hc8_sensor
|
||||
baseline: 420
|
||||
|
||||
sensor:
|
||||
- platform: hc8
|
||||
id: hc8_sensor
|
||||
co2:
|
||||
name: HC8 CO2 Value
|
||||
update_interval: 15s
|
||||
4
tests/components/hc8/test.esp32-idf.yaml
Normal file
4
tests/components/hc8/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart/esp32-idf.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
4
tests/components/hc8/test.esp8266-ard.yaml
Normal file
4
tests/components/hc8/test.esp8266-ard.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart/esp8266-ard.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
4
tests/components/hc8/test.rp2040-ard.yaml
Normal file
4
tests/components/hc8/test.rp2040-ard.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart/rp2040-ard.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
Reference in New Issue
Block a user