forked from RalfWinter/lambda-heatpump-modbus-tcp-HA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHA-Lambda-WP_configuration.yaml
614 lines (613 loc) · 21.5 KB
/
HA-Lambda-WP_configuration.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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
# Lambda WP Modbus/TCP Integration
# based on Lambda Modbus specification dated 11.04.2023
# Change name according to your requirements, host to the IP of your heatpump
#
# the contents of this file needs to be appended to the configuration.yaml in your HA-installation!
#
modbus:
- name: "EU13L"
type: tcp
host: 192.168.1.120
port: 502
sensors:
#General Ambient
- name: EU13L_Ambient_Error_Number
address: 0000
input_type: holding
state_class: total
scale: 1
precision: 0
data_type: int16
- name: EU13L_Ambient_Operating_State
address: 0001
input_type: holding
unit_of_measurement: ""
state_class: total
scale: 1
precision: 0
data_type: uint16
- name: EU13L_Ambient_Temperature
address: 0002
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Ambient_Temperature_1h
address: 0003
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Ambient_Temperature_calculated
address: 0004
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
# General E-Manager
# comment this section in case you have no E-Manager active
- name: EU13L_EMgr_Error_Number
address: 100
input_type: holding
state_class: total
scale: 1
precision: 0
data_type: int16
- name: EU13L_EMgr_Operating_State
address: 101
input_type: holding
unit_of_measurement: ""
state_class: total
scale: 1
precision: 0
data_type: uint16
- name: EU13L_EMgr_Actual_Power
address: 102
input_type: holding
unit_of_measurement: "W"
state_class: total
scale: 1
precision: 0
data_type: int16
- name: EU13L_EMgr_Actual_Power_Consumption
address: 103
input_type: holding
unit_of_measurement: "W"
state_class: total
scale: 1
precision: 0
data_type: int16
- name: EU13L_EMgr_Power_Consumption_Setpoint
address: 104
input_type: holding
unit_of_measurement: "W"
state_class: total
scale: 1
precision: 0
data_type: int16
# Heat Pump No. 1 --for additonal heatpumps, this section needs to be duplicated and second digit of address increased by 1--
- name: EU13L_Hp1_Error_State
address: 1000
input_type: holding
state_class: total
scale: 1
precision: 0
data_type: uint16
- name: EU13L_Hp1_Error_Number
address: 1001
input_type: holding
state_class: total
scale: 1
precision: 0
data_type: int16
- name: EU13L_Hp1_State
address: 1002
input_type: holding
unit_of_measurement: ""
state_class: total
scale: 1
precision: 0
data_type: uint16
- name: EU13L_Hp1_Operating_State
address: 1003
input_type: holding
unit_of_measurement: ""
state_class: total
scale: 1
precision: 0
data_type: uint16
- name: EU13L_Hp1_Flow_Line_Temperature
address: 1004
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.01
precision: 1
data_type: int16
- name: EU13L_Hp1_Return_Line_Temperature
address: 1005
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.01
precision: 1
data_type: int16
- name: EU13L_Hp1_Volume_flow_heat_sink
address: 1006
input_type: holding
unit_of_measurement: "l/h"
state_class: total
scale: 1
precision: 1
data_type: int16
- name: EU13L_Hp1_Energy_source_inlet_temperature
address: 1007
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hp1_Energy_source_outlet_temperature
address: 1008
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hp1_Volume_flow_energy_source
address: 1009
input_type: holding
unit_of_measurement: "l/min"
state_class: total
scale: 0.01
precision: 1
data_type: int16
- name: EU13L_Hp1_Compressor_unit_rating
address: 1010
input_type: holding
unit_of_measurement: "%"
state_class: total
scale: 0.01
precision: 0
data_type: uint16
- name: EU13L_Hp1_Actual_Heating_Capacity
address: 1011
input_type: holding
unit_of_measurement: "kW"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hp1_Inverter_Power_Consumption
address: 1012
input_type: holding
unit_of_measurement: "W"
state_class: total
scale: 1
precision: 0
data_type: int16
- name: EU13L_Hp1_COP
address: 1013
input_type: holding
unit_of_measurement: ""
state_class: total
scale: 0.01
precision: 2
data_type: int16
- name: EU13L_Hp1_Request-Type
address: 1015
input_type: holding
unit_of_measurement: ""
state_class: total
scale: 1
precision: 0
data_type: int16
- name: EU13L_Hp1_Requested_flow_line_temperature
address: 1016
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hp1_Requested_return_line_temperature
address: 1017
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hp1_Requested_flow_to_return_line_temperature_difference
address: 1018
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hp1_Relais_State_2nd_Heating_Stage
address: 1019
input_type: holding
unit_of_measurement: ""
state_class: total
scale: 1
precision: 0
data_type: int16
- name: EU13L_Hp1_Compressor_Power_Consumption_accumulated
address: 1020
input_type: holding
unit_of_measurement: "Wh"
state_class: total
scale: 1
precision: 0
data_type: int32
- name: EU13L_Hp1_Compressor_Thermal_Energy_Output_accumulated
address: 1022
input_type: holding
unit_of_measurement: "Wh"
state_class: total
scale: 1
precision: 0
data_type: int32
# Boiler --for additonal boiler, this section needs to be duplicated and second digit of address increased by 1--
- name: EU13L_Boil1_Error_Number
address: 2000
input_type: holding
state_class: total
scale: 1
precision: 0
data_type: int16
- name: EU13L_Boil1_Operating_state
address: 2001
input_type: holding
unit_of_measurement: ""
state_class: total
scale: 1
precision: 0
data_type: uint16
- name: EU13L_Boil1_Actual_high_temperature
address: 2002
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Boil1_Actual_low_temperature
address: 2003
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Boil1_Set_temperature
address: 2050
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
# Buffer --for additonal buffer, this section needs to be duplicated and second digit of address increased by 1--
- name: EU13L_Buff1_Error_Number
address: 3000
input_type: holding
state_class: total
scale: 1
precision: 0
data_type: int16
- name: EU13L_Buff1_Operating_state
address: 3001
input_type: holding
unit_of_measurement: ""
state_class: total
scale: 1
precision: 0
data_type: uint16
- name: EU13L_Buff1_Actual_high_temperature
address: 3002
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Buff1_Actual_low_temperature
address: 3003
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Buff1_Set_temperature
address: 3050
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
# Solar --for additonal solar modules, this section needs to be duplicated and second digit of address increased by 1--
# comment this section in case you have no Solar module active
- name: EU13L_Sol1_Error_Number
address: 4000
input_type: holding
state_class: total
scale: 1
precision: 0
data_type: int16
- name: EU13L_Sol1_Operating_state
address: 4001
input_type: holding
unit_of_measurement: ""
state_class: total
scale: 1
precision: 0
data_type: uint16
- name: EU13L_Sol1_Actual_collector_temperature
address: 4002
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Sol1_Actual_buffer_sensor1_temperature
address: 4003
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Sol1_Actual_buffer_sensor2_temperature
address: 4004
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Sol1_Set_max_buffer_temperature
address: 4050
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Sol1_Set_buffer_changeover_temperature
address: 4051
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
# Heating Circuit -- e.g. underfloor heating --for additonal heating circuits , this section needs to be duplicated and second digit of address increased by 1--
- name: EU13L_Hc1_Error_Number
address: 5000
input_type: holding
state_class: total
scale: 1
precision: 0
data_type: int16
- name: EU13L_Hc1_Operating_state
address: 5001
input_type: holding
unit_of_measurement: ""
state_class: total
scale: 1
precision: 0
data_type: uint16
- name: EU13L_Hc1_Flow_line_temperature
address: 5002
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hc1_Return_line_temperature
address: 5003
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hc1_Room_device_temperature
address: 5004
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hc1_Set_flow_line_temperature
address: 5005
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hc1_Operating_mode
address: 5006
input_type: holding
state_class: total
scale: 1
precision: 0
data_type: int16
- name: EU13L_Hc1_Set_flow_line_offset_temperature
address: 5050
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hc1_Set_heating_mode_room_temperature
address: 5051
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hc1_Set_cooling_mode_room_temperature
address: 5052
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
# Heating Circuit 2 (e.g. radiators --for additonal heating circuits , this section needs to be duplicated and second digit of address increased by 1--
# delete or comment this section in case you have no further heating circuits
- name: EU13L_Hc2_Error_Number
address: 5100
input_type: holding
state_class: total
scale: 1
precision: 0
data_type: int16
- name: EU13L_Hc2_Operating_state
address: 5101
input_type: holding
unit_of_measurement: ""
state_class: total
scale: 1
precision: 0
data_type: uint16
- name: EU13L_Hc2_Flow_line_temperature
address: 5102
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hc2_Return_line_temperature
address: 5103
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hc2_Romm_device_temperature
address: 5104
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hc2_Set_flow_line_temperature
address: 5105
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hc2_Operating_mode
address: 5106
input_type: holding
state_class: total
scale: 1
precision: 0
data_type: int16
- name: EU13L_Hc2_Set_flow_line_offset_temperature
address: 5150
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hc2_Set_heating_mode_room_temperature
address: 5151
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
- name: EU13L_Hc2_Set_cooling_mode_room_temperature
address: 5152
input_type: holding
unit_of_measurement: "°C"
state_class: total
scale: 0.1
precision: 1
data_type: int16
# Conversion of numerical returncodes to text
# this is German language, change accordingly. English definitions are found in the Modbus spec: https://lambda-wp.at/wp-content/uploads/2023/04/Modbus-Protokoll-und-Beschreibung.pdf
sensor:
- platform: template
sensors:
eu13l_ambient_operating_state_txt:
friendly_name: "EU13L_Ambient_Operating_State_txt"
value_template: >
{{ ['Off', 'Automatik', 'Manual', 'Error'][states('sensor.eu13l_ambient_operating_state')|int] }}
eu13l_emgr_operating_state_txt:
friendly_name: "EU13L_EMgr_Operating_State_txt"
value_template: >
{{ ['Off', 'Automatik', 'Manual', 'Error', 'Offline'][states('sensor.eu13l_emgr_operating_state')|int] }}
eu13l_hp1_error_state_txt:
friendly_name: "EU13L_Hp1_Error_State_txt"
value_template: >
{{ ['OK', 'Message', 'Warnung', 'Alarm', 'Fault'][states('sensor.eu13l_hp1_error_state')|int] }}
eu13l_hp1_state_txt:
friendly_name: "EU13L_Hp1_State_txt"
value_template: >
{{ ['Init', 'Reference', 'Restart-Block', 'Ready', 'Start Pumps', 'Start Compressor', 'Pre-Regulation', 'Regulation', 'Not Used', 'Cooling', 'Defrosting', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Stopping', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Fault-Lock', 'Alarm-Block', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Not Used', 'Error-Reset'][states('sensor.eu13l_hp1_state')|int] }}
eu13l_hp1_operating_state_txt:
friendly_name: "EU13L_Hp1_Operating_State_txt"
value_template: >
{{ ['Standby', 'Central Heating', 'Domestic Hot Water', 'Cold Climate', 'Circulate', 'Defrost', 'Off', 'Frost', 'Standby-Frost', 'Not used', 'Summer', 'Holiday', 'Error', 'Warning', 'Info-Message', 'Time-Block', 'Release-Block', 'Mintemp-Block', 'Firmware-Download'][states('sensor.eu13l_hp1_operating_state')|int] }}
eu13l_hp1_request_type_txt:
friendly_name: "EU13L_Hp1_Request-Type_txt"
value_template: >
{{ ['No Request', 'Flow Pump Circulation', 'Central Heating', 'Central Cooling', 'Domestic Hot Water'][states('sensor.eu13l_hp1_request-type')|int] }}
eu13l_boil1_operating_state_txt:
friendly_name: "EU13L_Boil1_Operating_State_txt"
value_template: >
{{ ['Standby', 'Domestic Hot Water', 'Legio', 'Summer', 'Frost', 'Holiday', 'Prio-Stop', 'Error', 'Off', 'Prompt-DHW', 'Trailing-Stop', 'Temp-Lock', 'Standby-Frost'][states('sensor.eu13l_boil1_operating_state')|int] }}
eu13l_buff1_operating_state_txt:
friendly_name: "EU13L_Buff1_Operating_State_txt"
value_template: >
{{ ['Standby', 'Heating', 'Cooling', 'Summer', 'Frost', 'Holiday', 'Prio-Stop', 'Error', 'Off', 'Standby-Frost'][states('sensor.eu13l_buff1_operating_state')|int] }}
eu13l_sol1_operating_state_txt:
friendly_name: "EU13L_Sol1_Operating_State_txt"
value_template: >
{{ ['Standby', 'Heating', 'Error', 'Off'][states('sensor.eu13l_sol1_operating_state')|int] }}
eu13l_hc1_operating_state_txt:
friendly_name: "EU13L_Hc1_Operating_State_txt"
value_template: >
{{ ['Heating', 'Eco', 'Cooling', 'Floor-dry', 'Frost', 'Max-Temp', 'Error', 'Service', 'Holiday', 'Central Heating Summer', 'Central Cooling Winter', 'Prio-Stop', 'Off', 'Release-Off', 'Time-Off', 'Standby', 'Standby-Heating', 'Standby-Eco', 'Standby-Cooling', 'Standby-Frost', 'Standby-Floor-dry'][states('sensor.eu13l_hc1_operating_state')|int] }}
eu13l_hc1_operating_mode_txt:
friendly_name: "EU13L_Hc1_Operating_Mode_txt"
value_template: >
{{ ['Off', 'Manual', 'Automatik', 'Auto-Heating', 'Auto-Cooling', 'Frost', 'Summer', 'Floor-dry'][states('sensor.eu13l_hc1_operating_mode')|int] }}
eu13l_hc2_operating_state_txt:
friendly_name: "EU13L_Hc2_Operating_State_txt"
value_template: >
{{ ['Heating', 'Eco', 'Cooling', 'Floor-dry', 'Frost', 'Max-Temp', 'Error', 'Service', 'Holiday', 'Central Heating Summer', 'Central Cooling Winter', 'Prio-Stop', 'Off', 'Release-Off', 'Time-Off', 'Standby', 'Standby-Heating', 'Standby-Eco', 'Standby-Cooling', 'Standby-Frost', 'Standby-Floor-dry'][states('sensor.eu13l_hc2_operating_state')|int] }}
eu13l_hc2_operating_mode_txt:
friendly_name: "EU13L_Hc2_Operating_Mode_txt"
value_template: >
{{ ['Off', 'Manual', 'Automatik', 'Auto-Heating', 'Auto-Cooling', 'Frost', 'Summer', 'Floor-dry'][states('sensor.eu13l_hc2_operating_mode')|int] }}