mirror of
https://github.com/esphome/esphome.git
synced 2026-10-03 17:55:57 +00:00
[midea] Use register_apply_action for the eight midea_ac actions (#19625)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user