mirror of
https://github.com/esphome/esphome.git
synced 2026-09-30 00:10:22 +00:00
[sps30] Use register_apply_action for the three sps30 actions (#19644)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
button:
|
||||
- platform: template
|
||||
name: SPS30 Actions
|
||||
on_press:
|
||||
- sps30.start_fan_autoclean: workshop_sps30
|
||||
- sps30.stop_measurement: workshop_sps30
|
||||
- sps30.start_measurement: workshop_sps30
|
||||
@@ -1,5 +1,6 @@
|
||||
sensor:
|
||||
- platform: sps30
|
||||
id: workshop_sps30
|
||||
i2c_id: i2c_bus
|
||||
pm_1_0:
|
||||
name: Workshop PM <1µm Weight concentration
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
|
||||
sps30: !include common.yaml
|
||||
actions: !include common-actions.yaml
|
||||
Reference in New Issue
Block a user