-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclimate.yaml
143 lines (141 loc) · 3.59 KB
/
climate.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# Living Room A/C with https://github.com/SwiCago/HeatPump
- platform: mqtt
modes:
- "off"
- heat
- dry
- cool
- fan_only
- auto
fan_modes:
- AUTO
- QUIET
- "1"
- "2"
- "3"
- "4"
swing_modes:
- AUTO
- "1"
- "2"
- "3"
- "4"
- "5"
- SWING
current_temperature_template: "{{ value_json.roomTemperature }}"
temperature_state_template: "{{ value_json.temperature }}"
swing_mode_state_template: "{{ value_json.vane }}"
fan_mode_state_template: "{{ value_json.fan }}"
mode_state_template: >
{% if value_json.power == "OFF" %}
off
{% elif value_json.mode == "FAN" %}
fan_only
{% else %}
{{ value_json.mode|lower }}
{% endif %}
name: "Living Room A/C"
current_temperature_topic: "living/heatpump/status"
temperature_command_topic: "living/heatpump/_set/temperature"
temperature_state_topic: "living/heatpump"
swing_mode_command_topic: "living/heatpump/_set/vane"
swing_mode_state_topic: "living/heatpump"
fan_mode_command_topic: "living/heatpump/_set/fan"
fan_mode_state_topic: "living/heatpump"
mode_command_topic: "living/heatpump/_set/mode"
mode_state_topic: "living/heatpump"
send_if_off: true
# Bedroom A/C with https://github.com/SwiCago/HeatPump
- platform: mqtt
modes:
- "off"
- heat
- dry
- cool
- fan_only
- auto
fan_modes:
- AUTO
- QUIET
- "1"
- "2"
- "3"
- "4"
swing_modes:
- AUTO
- "1"
- "2"
- "3"
- "4"
- "5"
- SWING
current_temperature_template: "{{ value_json.roomTemperature }}"
temperature_state_template: "{{ value_json.temperature }}"
swing_mode_state_template: "{{ value_json.vane }}"
fan_mode_state_template: "{{ value_json.fan }}"
mode_state_template: >
{% if value_json.power == "OFF" %}
off
{% elif value_json.mode == "FAN" %}
fan_only
{% else %}
{{ value_json.mode|lower }}
{% endif %}
name: "Bedroom A/C"
current_temperature_topic: "bed/heatpump/status"
temperature_command_topic: "bed/heatpump/_set/temperature"
temperature_state_topic: "bed/heatpump"
swing_mode_command_topic: "bed/heatpump/_set/vane"
swing_mode_state_topic: "bed/heatpump"
fan_mode_command_topic: "bed/heatpump/_set/fan"
fan_mode_state_topic: "bed/heatpump"
mode_command_topic: "bed/heatpump/_set/mode"
mode_state_topic: "bed/heatpump"
send_if_off: true
# Office A/C with https://github.com/SwiCago/HeatPump
- platform: mqtt
modes:
- "off"
- heat
- dry
- cool
- fan_only
- auto
fan_modes:
- AUTO
- QUIET
- "1"
- "2"
- "3"
- "4"
swing_modes:
- AUTO
- "1"
- "2"
- "3"
- "4"
- "5"
- SWING
current_temperature_template: "{{ value_json.roomTemperature }}"
temperature_state_template: "{{ value_json.temperature }}"
swing_mode_state_template: "{{ value_json.vane }}"
fan_mode_state_template: "{{ value_json.fan }}"
mode_state_template: >
{% if value_json.power == "OFF" %}
off
{% elif value_json.mode == "FAN" %}
fan_only
{% else %}
{{ value_json.mode|lower }}
{% endif %}
name: "Office A/C"
current_temperature_topic: "office/heatpump/status"
temperature_command_topic: "office/heatpump/_set/temperature"
temperature_state_topic: "office/heatpump"
swing_mode_command_topic: "office/heatpump/_set/vane"
swing_mode_state_topic: "office/heatpump"
fan_mode_command_topic: "office/heatpump/_set/fan"
fan_mode_state_topic: "office/heatpump"
mode_command_topic: "office/heatpump/_set/mode"
mode_state_topic: "office/heatpump"
send_if_off: true