mirror of
https://github.com/esphome/esphome.git
synced 2026-10-06 19:06:37 +00:00
[scd30] Use register_apply_action for scd30.force_recalibration_with_reference (#19652)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
button:
|
||||
- platform: template
|
||||
name: SCD30 Calibrate
|
||||
on_press:
|
||||
- scd30.force_recalibration_with_reference: 419
|
||||
- scd30.force_recalibration_with_reference:
|
||||
id: co2_scd30
|
||||
value: !lambda return 420;
|
||||
@@ -1,5 +1,6 @@
|
||||
sensor:
|
||||
- platform: scd30
|
||||
id: co2_scd30
|
||||
i2c_id: i2c_bus
|
||||
co2:
|
||||
name: SCD30 CO2
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
|
||||
scd30: !include common.yaml
|
||||
actions: !include common-actions.yaml
|
||||
Reference in New Issue
Block a user