-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathYaml
291 lines (254 loc) · 6.45 KB
/
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
substitutions:
name: "4heat"
friendly_name: 4heat
esphome:
name: ${name}
friendly_name: ${friendly_name}
name_add_mac_suffix: false
project:
name: catdognaus.NG21
version: '1.0'
esp8266:
board: d1_mini
# Enable logging
logger:
baud_rate: 0
# Enable Home Assistant API
api:
# Allow Over-The-Air updates
ota:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# In combination with the `ap` this allows the user
# to provision wifi credentials to the device via WiFi AP.
captive_portal:
external_components:
source: github://leoshusar/4heat-esphome
uart:
tx_pin: GPIO1
rx_pin: GPIO3
baud_rate: 9600
fourheat:
switch:
- id: state_switch
name: State
platform: fourheat
restore_mode: DISABLED
datapoint: J30001
on_datapoint: J30253
off_datapoint: J30254
on_data: '1'
off_data: '1'
parser: |-
auto size = data.size();
return
data[size - 1] != '0' ||
data[size - 2] != '0';
# Night mode stuff starts
- platform: fourheat
id: Cleaning_Motor_Off
datapoint: B20701
on_data: '1'
off_data: '0'
parser: return data[data.size() - 1] != '0';
- platform: template
name: Enable night mode menu
lambda: |-
if (id(Cleaning_Motor_Off).state) {
return true; // if night mode enabled, switch indicates ON
} else {
return false; // else OFF
}
turn_on_action:
- switch.turn_on: Cleaning_Motor_Off
turn_off_action:
- switch.turn_off: Cleaning_Motor_Off
# Night mode stuff ends
text_sensor:
- id: state
name: State
platform: fourheat
datapoint: J30001
options:
0: "OFF"
1: "Check Up"
2: "Ignition"
3: "Stabilization"
4: "Ignition"
5: "Run"
6: "Modulation"
7: "Extinguishing"
8: "Safety"
9: "Block"
10: "Recover Ignition"
11: "Standby"
30: "Ignition"
31: "Ignition"
32: "Ignition"
33: "Ignition"
34: "Ignition"
- id: error
name: Error
platform: fourheat
datapoint: J30002
options:
0: "No"
1: "Safety Thermostat HV1: signalled also in case of Stove OFF"
2: "Safety PressureSwitch HV2: signalled with Combustion Fan ON"
3: "Extinguishing for Exhausting Temperature lowering"
4: "Extinguishing for water over Temperature"
5: "Extinguishing for Exhausting over Temperature"
6: "unknown"
7: "Encoder Error: No Encoder Signal (in case of P25=1 or 2)"
8: "Encoder Error: Combustion Fan regulation failed (in case of P25=1 or 2)"
9: "Low pressure in to the Boiler"
10: "High pressure in to the Boiler Error"
11: "DAY and TIME not correct due to prolonged absence of Power Supply"
12: "Failed Ignition"
13: "Ignition"
14: "Ignition"
15: "Lack of Voltage Supply"
16: "RS485 communication problem. Touch display does not communicate with the oven."
17: "Flowmeter (FCS) error. Cancel and try to restart"
18: "Lack of Voltage Supply"
23: "One of the temperature sensors failed. Cancel and try to restart."
25: "Ash grate cleaning blocked. Remove obstruction, restart"
39: "Flowmeter (FCS) fail. Cancel and try to restart"
41: "Flowmeter data error (Required airflow not reached). Cancel and try to restart"
42: "Max airflow exceeded. Cancel and try to restart"
44: "Shutdown due to front door opening. Check and close."
- id: combustion_power
name: Combustion power
platform: fourheat
datapoint: J30011
icon: "mdi:heating-coil"
options:
1: "P1"
2: "P2"
3: "P3"
4: "P4"
5: "P5"
6: "Cleaning"
7: "Standby"
8: "Ignition 2"
9: "Modulation"
10: "Ignition P0"
11: "MAX P"
12: "Extinguish"
100: "Off"
110: "Off"
120: "Pmax Test"
255: "Ignition"
0: "Stabilizing"
button:
- id: clear_error
name: Clear error
platform: fourheat
datapoint: J30255
select:
- id: power
name: Power
platform: fourheat
datapoint: B20364
options:
1: "P1"
2: "P2"
3: "P3"
4: "P4"
5: "P5"
6: "Auto"
# - id: combi
# name: Combi Management
# platform: fourheat
# datapoint: B20379
# options:
# 0: "Pellet"
# 1: "Wood"
# 2: "Wood-Pellet"
# 3: "Combi 1"
# 4: "Combi 2"
binary_sensor:
- id: stove_offline
name: Stove offline
platform: fourheat
type: module_offline
- id: room_thermostat_state
name: Room thermostat state
platform: fourheat
datapoint: J40007
parser: return data[data.size() - 3] == '0';
sensor:
- id: exhaust_temperature
name: Exhaust temperature
platform: fourheat
datapoint: J30005
device_class: temperature
unit_of_measurement: °C
- id: buffer_temperature
name: Buffer temperature
platform: fourheat
datapoint: J30012
device_class: temperature
unit_of_measurement: °C
- id: boiler_temperature
name: Boiler temperature
platform: fourheat
datapoint: J30017
device_class: temperature
unit_of_measurement: °C
- id: water_pressure
name: Water pressure
platform: fourheat
datapoint: J30020
device_class: pressure
unit_of_measurement: mbar
- id: airflow
name: Airflow
icon: "mdi:air-filter"
platform: fourheat
datapoint: J30026
unit_of_measurement: cm/s
- id: comb_fan_speed
name: Combustion Fan Speed
icon: "mdi:fan"
platform: fourheat
datapoint: J30025
unit_of_measurement: rpm
- id: room_temperature
name: Room temperature
platform: fourheat
datapoint: J30006
device_class: temperature
unit_of_measurement: °C
- id: ambient_fan_voltage
name: Ambient Fan Voltage
platform: fourheat
datapoint: J30009
device_class: voltage
unit_of_measurement: V
number:
- id: boiler_target_temperature
name: Boiler target temperature
platform: fourheat
datapoint: B20199
device_class: temperature
unit_of_measurement: °C
min_value: 5
max_value: 110
- id: buffer_thermostat_threshold
name: Buffer thermostat threshold
platform: fourheat
datapoint: B20241
device_class: temperature
unit_of_measurement: °C
min_value: 1
max_value: 20
- id: buffer_target_temperature
name: Buffer target temperature
platform: fourheat
datapoint: B20225
device_class: temperature
unit_of_measurement: °C
min_value: 20
max_value: 110