[hc8] Add support for HC8 CO2 sensor (#11872)

Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
This commit is contained in:
omartijn
2025-11-20 09:24:45 -05:00
committed by GitHub
co-authored by Jonathan Swoboda
parent 06bef148f4
commit 3c86f3894b
9 changed files with 242 additions and 0 deletions
+13
View 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
View File
@@ -0,0 +1,4 @@
packages:
uart: !include ../../test_build_components/common/uart/esp32-idf.yaml
<<: !include common.yaml
@@ -0,0 +1,4 @@
packages:
uart: !include ../../test_build_components/common/uart/esp8266-ard.yaml
<<: !include common.yaml
@@ -0,0 +1,4 @@
packages:
uart: !include ../../test_build_components/common/uart/rp2040-ard.yaml
<<: !include common.yaml