[sps30] Use register_apply_action for the three sps30 actions (#19644)

This commit is contained in:
J. Nick Koston
2026-09-25 18:12:35 +00:00
committed by GitHub
parent 22035cb9f5
commit 15d756d559
5 changed files with 20 additions and 51 deletions
@@ -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
View File
@@ -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