-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.yaml
293 lines (288 loc) · 9.5 KB
/
template.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
292
293
- name: "Modbus PE1 System Status"
unique_id: "modbus_pe1_system_status"
state: >
{% set mapper = {
'0' : 'Continuous load',
'1' : 'Domestic hot water',
'2' : 'Automatic',
'3' : 'Firewood operation',
'4' : 'Cleaning',
'5' : 'Boiler off',
'6' : 'Extra heating',
'7' : 'Chimney sweep',
'8' : 'Cleaning' } %}
{% set state = states.sensor.modbus_pe1_system_status_enum.state %}
{{ mapper[state] if state in mapper else 'Unknown' }}
icon: >
{% if this.state == 'Automatic' %}
mdi:refresh-auto
{% elif this.state == 'Domestic hot water' %}
mdi:water-pump
{% elif this.state == 'Continous load' %}
mdi:hours-24
{% else %}
mdi:alert-circle
{% endif %}
- name: "Modbus PE1 Furnace Status"
unique_id: "modbus_pe1_furnace_status_mapped"
state: >
{% set mapper = {
'0' : 'FAULT',
'1' : 'Boiler off',
'2' : 'Heating up',
'3' : 'Heating',
'4' : 'Slumber',
'5' : 'Off',
'6' : 'Door open',
'7' : 'Preparation',
'8' : 'Pre-heating',
'9' : 'Ignition',
'10' : 'Shutdown wait',
'11' : 'Shutdown wait 1',
'12' : 'Shutdown feed 1',
'13' : 'Shutdown wait 2',
'14' : 'Shutdown feed 2',
'15' : 'Cleaning',
'16' : 'Wait 2h',
'17' : 'Suction / Heating',
'18' : 'Ignition fault',
'19' : 'Standby',
'20' : 'Close grate',
'21' : 'Empty stoker',
'22' : 'Pre-Heating',
'23' : 'Suction',
'24' : 'Close BBF',
'25' : 'Open BBF',
'26' : 'Tilt grate',
'27' : 'Warming-Up / Ignition',
'28' : 'Empty feed',
'29' : 'Stoker fill',
'30' : 'Warming-Up Lambda Probe',
'31' : 'FD fan run-on I',
'32' : 'FD fan run-on II',
'33' : 'Stopped',
'34' : 'Additional Ignition',
'35' : 'Ignition wait',
'36' : 'TS: Close BBF',
'37' : 'TS: Ventilate boiler',
'38' : 'TS: Ignition',
'39' : 'TS: min. feed',
'40' : 'Close BBF',
'41' : 'FAULT: HL/ES',
'42' : 'FAULT: Tilting grate',
'43' : 'FAULT: C.C.Overpressure',
'44' : 'FAULT: Door Switch',
'45' : 'FAULT: ID Fan',
'46' : 'FAULT: Heating system',
'47' : 'ERROR: STL/EO',
'48' : 'ERROR: Tilting grate',
'49' : 'ERROR: C.C. Overpressure',
'50' : 'ERROR: Door Switch',
'51' : 'ERROR: ID Fan',
'52' : 'ERROR: Heating system',
'53' : 'ERROR: Stoker',
'54' : 'FAULT: Stoker',
'55' : 'TS: Empty stoker',
'56' : 'Purge',
'57' : 'FAULT: wood chip',
'58' : 'ERROR: Wood chip',
'59' : 'Emerg. Oper.: Door open',
'60' : 'Emerg. Oper.: Heating up',
'61' : 'Emerg. Oper.: Heating',
'62' : 'ERROR: STL/EO',
'63' : 'ERROR: General',
'64' : 'Emerg. Oper.: Shutdown',
'65' : 'Self test active',
'66' : 'Troubleshooting 20min',
'67' : 'ERROR: Drop box',
'68' : 'FAULT: Drop box',
'69' : 'Cleaning possible',
'70' : 'Heating - Cleaning',
'71' : 'LW Heating up',
'72' : 'LW Heating',
'73' : 'LW Heat/Shut down',
'74' : 'FAULT save',
'75' : 'FGR run-on',
'76' : 'Clean FGR',
'77' : 'Igniton OFF',
'78' : 'Cleaning filter',
'79' : 'Heating wizard',
'80' : 'Ignite firewood boiler',
'81' : 'SH fault',
'82' : 'Sensor check' } %}
{% set state = states.sensor.modbus_pe1_furnace_status_enum.state %}
{{ mapper[state] if state in mapper else 'Unknown' }}
icon: >
{% if this.state == 'Standby' %}
mdi:sleep
{% elif this.state == 'Ignition' %}
mdi:fire
{% elif this.state == 'Pre-heating' %}
mdi:fire
{% elif this.state == 'Heating' %}
mdi:fire
{% elif this.state == 'Heating up' %}
mdi:fire
{% elif this.state == 'Preparation' %}
mdi:fire
{% elif this.state == 'Shutdown wait' %}
mdi:sleep
{% elif this.state == 'Shutdown wait 1' %}
mdi:sleep
{% elif this.state == 'Shutdown wait 2' %}
mdi:sleep
{% else %}
mdi:alert-circle
{% endif %}
- name: "Modbus PE1 Heating Mode"
unique_id: "modbus_pe1_heating_mode"
state: >
{% set mapper = {
'0' : 'Off',
'1' : 'Automatic',
'2' : 'Extra heating',
'3' : 'Setback',
'4' : 'Continuous setback',
'5' : 'Party mode' } %}
{% set state = states.sensor.modbus_pe1_heating_mode_enum.state %}
{{ mapper[state] if state in mapper else 'Unknown' }}
icon: >
{% if this.state == 'Off' %}
mdi:power
{% elif this.state == 'Automatic' %}
mdi:clock
{% elif this.state == 'Extra heating' %}
mdi:sun-clock
{% elif this.state == 'Setback' %}
mdi:moon-waning-crescent
{% elif this.state == 'Continuous setback' %}
mdi:thermometer-minus
{% elif this.state == 'Party mode' %}
mdi:white-balance-sunny
{% else %}
mdi:alert-circle
{% endif %}
- name: Visualization Is Heating Active
unique_id: "visualization_heating_active"
state: >
{% if states('sensor.modbus_pe1_flow_temperature_target') | int > 0%}
true
{% else %}
false
{% endif %}
- name: Visualization Is Buffer Cold
unique_id: "visualization_buffer_cold"
state: >
{% if states('sensor.modbus_pe1_buffer_temperature_bottom') | int < 30 and states('sensor.modbus_pe1_buffer_temperature_top') | int < 30%}
true
{% else %}
false
{% endif %}
- name: Visualization Is Buffer Cold Warm
unique_id: "visualization_buffer_cold_warm"
state: >
{% if states('sensor.modbus_pe1_buffer_temperature_bottom') | int < 30 and states('sensor.modbus_pe1_buffer_temperature_top') | int >= 30 and states('sensor.modbus_pe1_buffer_temperature_top') | int < 50%}
true
{% else %}
false
{% endif %}
- name: Visualization Is Buffer Cold Hot
unique_id: "visualization_buffer_cold_hot"
state: >
{% if states('sensor.modbus_pe1_buffer_temperature_bottom') | int < 30 and states('sensor.modbus_pe1_buffer_temperature_top') | int >= 50%}
true
{% else %}
false
{% endif %}
- name: Visualization Is Buffer Warm Cold
unique_id: "visualization_buffer_warm_cold"
state: >
{% if states('sensor.modbus_pe1_buffer_temperature_bottom') | int >= 30 and states('sensor.modbus_pe1_buffer_temperature_bottom') | int < 50 and states('sensor.modbus_pe1_buffer_temperature_top') | int < 30%}
true
{% else %}
false
{% endif %}
- name: Visualization Is Buffer Warm
unique_id: "visualization_buffer_warm"
state: >
{% if states('sensor.modbus_pe1_buffer_temperature_bottom') | int >= 30 and states('sensor.modbus_pe1_buffer_temperature_bottom') | int < 50 and states('sensor.modbus_pe1_buffer_temperature_top') | int >= 30 and states('sensor.modbus_pe1_buffer_temperature_top') | int < 50%}
true
{% else %}
false
{% endif %}
- name: Visualization Is Buffer Warm Hot
unique_id: "visualization_buffer_warm_hot"
state: >
{% if states('sensor.modbus_pe1_buffer_temperature_bottom') | int >= 30 and states('sensor.modbus_pe1_buffer_temperature_bottom') | int < 50 and states('sensor.modbus_pe1_buffer_temperature_top') | int >= 50%}
true
{% else %}
false
{% endif %}
- name: Visualization Is Buffer Hot Warm
unique_id: "visualization_buffer_hot_warm"
state: >
{% if states('sensor.modbus_pe1_buffer_temperature_top') | int >= 30 and states('sensor.modbus_pe1_buffer_temperature_top') | int < 50 and states('sensor.modbus_pe1_buffer_temperature_bottom') | int >= 50%}
true
{% else %}
false
{% endif %}
- name: Visualization Is Buffer Hot
unique_id: "visualization_buffer_hot"
state: >
{% if states('sensor.modbus_pe1_buffer_temperature_bottom') | int >= 50 and states('sensor.modbus_pe1_buffer_temperature_top') | int >= 50 %}
true
{% else %}
false
{% endif %}
- name: Visualization Is Radiator Cold
unique_id: "visualization_radiator_cold"
state: >
{% if states('sensor.modbus_pe1_flow_temperature_actual') | int < 30%}
true
{% else %}
false
{% endif %}
- name: Visualization Is Radiator Warm
unique_id: "visualization_radiator_warm"
state: >
{% if states('sensor.modbus_pe1_flow_temperature_actual') | int >= 30 and states('sensor.modbus_pe1_flow_temperature_actual') | int < 40%}
true
{% else %}
false
{% endif %}
- name: Visualization Is Radiator Hot
unique_id: "visualization_radiator_hot"
state: >
{% if states('sensor.modbus_pe1_flow_temperature_actual') | int >= 40%}
true
{% else %}
false
{% endif %}
- name: Buffer Pump Status
unique_id: "visualization_buffer_pump_status"
state: >
{% if states('sensor.modbus_pe1_buffer_pump_control') | float(0) > 0%}
on
{% else %}
off
{% endif %}
icon: >
{% if this.state == 'on' %}
mdi:pump
{% else %}
mdi:pump-off
{% endif %}
- name: Boiler Pump Status
unique_id: "visualization_water_boiler_pump_status"
state: >
{% if states('sensor.modbus_pe1_water_boiler_pump_control') | float(0) > 0%}
on
{% else %}
off
{% endif %}
icon: >
{% if this.state == 'on' %}
mdi:pump
{% else %}
mdi:pump-off
{% endif %}