[ezo_pmp] Use register_apply_action for the twelve ezo_pmp actions (#19663)

This commit is contained in:
J. Nick Koston
2026-09-25 15:21:23 -04:00
committed by GitHub
parent cf9d807bf0
commit dfd9d2639f
4 changed files with 53 additions and 298 deletions
@@ -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