mirror of
https://github.com/esphome/esphome.git
synced 2026-09-30 08:20:21 +00:00
[pmwcs3] Use register_apply_action for the calibration and address actions (#19666)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
button:
|
||||
- platform: template
|
||||
name: PMWCS3 Actions
|
||||
on_press:
|
||||
- pmwcs3.air_calibration:
|
||||
- pmwcs3.water_calibration:
|
||||
- pmwcs3.new_i2c_address: 0x64
|
||||
- pmwcs3.new_i2c_address:
|
||||
address: !lambda return 0x65;
|
||||
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
|
||||
pmwcs3: !include common.yaml
|
||||
actions: !include common-actions.yaml
|
||||
Reference in New Issue
Block a user