1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 14:43:51 +00:00

climate triggers Climate and ClimateCall references (#5028)

This commit is contained in:
Sergey Dudanov
2023-07-30 23:52:01 +04:00
committed by GitHub
parent cd72a2ed7e
commit a120a455bf
7 changed files with 33 additions and 20 deletions

View File

@@ -2200,9 +2200,14 @@ climate:
use_fahrenheit: true
- platform: midea
on_control:
logger.log: Control message received!
- logger.log: Control message received!
- lambda: |-
x.set_mode(CLIMATE_MODE_FAN_ONLY);
on_state:
logger.log: State changed!
- logger.log: State changed!
- lambda: |-
if (x.mode == CLIMATE_MODE_FAN_ONLY)
id(binary_sensor1).publish_state(true);
id: midea_unit
uart_id: uart_0
name: Midea Climate