[midea] Use register_apply_action for the eight midea_ac actions (#19625)

This commit is contained in:
J. Nick Koston
2026-09-25 12:32:16 -04:00
committed by GitHub
parent 9a9169305e
commit 73548b0f15
4 changed files with 59 additions and 172 deletions
@@ -0,0 +1,26 @@
button:
- platform: template
name: Midea Actions
on_press:
- midea_ac.follow_me:
id: midea_unit
temperature: 23.0
beeper: true
- midea_ac.follow_me:
id: midea_unit
temperature: !lambda return id(midea_unit).target_temperature + 1.0f;
use_fahrenheit: !lambda return false;
- midea_ac.display_toggle:
id: midea_unit
- midea_ac.swing_step:
id: midea_unit
- midea_ac.beeper_on:
id: midea_unit
- midea_ac.beeper_off:
id: midea_unit
- midea_ac.power_on:
id: midea_unit
- midea_ac.power_off:
id: midea_unit
- midea_ac.power_toggle:
id: midea_unit
@@ -0,0 +1,9 @@
packages:
remote_transmitter: !include ../../test_build_components/common/remote_transmitter/esp8266-ard.yaml
uart: !include ../../test_build_components/common/uart/esp8266-ard.yaml
midea: !include common.yaml
actions: !include common-actions.yaml
wifi:
ssid: MySSID
password: password1