-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathhaier-smartair2.yaml
100 lines (86 loc) · 1.85 KB
/
haier-smartair2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
esphome:
name: haier
platform: ESP8266
board: d1_mini
# Set statul led for Wemos D1 mini
status_led:
pin: GPIO2
wifi:
ssid: "ASUS88"
password: "3503470936"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Haier_wifi"
password: "Haier_wifi"
captive_portal:
# Enable web server (can be disabled)
web_server:
port: 80
time:
- platform: sntp
id: sntp_time
timezone: "Europe/ Moscow"
# Enable logging
logger:
level: DEBUG
baud_rate: 0 #Important. You can't use serial port
# Enable Home Assistant API
api:
password: "3503470936"
ota:
- platform: esphome
password: "3503470936"
uart:
- baud_rate: 9600
tx_pin: 1
rx_pin: 3
climate:
- platform: haier
id: haier_ac
name: "Haier"
alternative_swing_control: false
wifi_signal: true
supported_modes:
- 'OFF'
- HEAT_COOL
- COOL
- HEAT
- DRY
- FAN_ONLY
supported_swing_modes:
- 'OFF'
- VERTICAL
- HORIZONTAL
- BOTH
supported_presets:
- BOOST
- COMFORT
switch:
- platform: template
id: haier_ac_health_mode
name: Haier SmartAir2 Climate health mode
icon: mdi:leaf
restore_mode: RESTORE_DEFAULT_OFF
lambda: |-
return id(haier_ac).get_health_mode();
turn_on_action:
climate.haier.health_on: haier_ac
turn_off_action:
climate.haier.health_off: haier_ac
- platform: template
id: haier_ac_display_switch
name: Haier SmartAir2 Climate display
icon: mdi:led-on
entity_category: config
restore_mode: RESTORE_DEFAULT_ON
lambda: |-
return id(haier_ac).get_display_state();
turn_on_action:
climate.haier.display_on: haier_ac
turn_off_action:
climate.haier.display_off: haier_ac
mqtt:
broker: 192.168.31.58
port: 44444
username: mqtt
password: mqtt