1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

extend scd4x (#3409)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Martin
2022-05-10 11:25:44 +02:00
committed by GitHub
parent 4e1f6518e8
commit 782186e13d
6 changed files with 287 additions and 76 deletions

View File

@@ -890,6 +890,7 @@ sensor:
temperature_offset: 4.2C
i2c_id: i2c_bus
- platform: scd4x
id: scd40
co2:
name: "SCD4X CO2"
temperature:
@@ -2822,3 +2823,14 @@ lock:
- platform: copy
source_id: test_lock2
name: Generic Output Lock Copy
button:
- platform: template
name: "Start calibration"
on_press:
- scd4x.perform_forced_calibration:
value: 419
id: scd40
- scd4x.factory_reset:
id: scd40