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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user