mirror of
https://github.com/esphome/esphome.git
synced 2026-09-30 00:10:22 +00:00
[ezo_pmp] Use register_apply_action for the twelve ezo_pmp actions (#19663)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
button:
|
||||
- platform: template
|
||||
name: EZO PMP Actions
|
||||
on_press:
|
||||
- ezo_pmp.change_i2c_address:
|
||||
id: hcl_pump
|
||||
address: 104
|
||||
- ezo_pmp.change_i2c_address:
|
||||
id: hcl_pump
|
||||
address: !lambda return 105;
|
||||
- ezo_pmp.dose_volume:
|
||||
id: hcl_pump
|
||||
volume: !lambda return 2.5;
|
||||
- ezo_pmp.dose_volume_over_time:
|
||||
id: hcl_pump
|
||||
volume: !lambda return 2.5;
|
||||
duration: !lambda return 3;
|
||||
- ezo_pmp.arbitrary_command:
|
||||
id: hcl_pump
|
||||
command: !lambda return "D,?";
|
||||
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
|
||||
ezo_pmp: !include common.yaml
|
||||
actions: !include common-actions.yaml
|
||||
Reference in New Issue
Block a user