-
Notifications
You must be signed in to change notification settings - Fork 0
/
esp32_0.1.yaml
634 lines (547 loc) · 17.3 KB
/
esp32_0.1.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
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
substitutions:
settings_skipped_updates: "30"
devicename: "baxi_esp"
esphome:
name: $devicename
esp32:
board: esp32-c3-devkitm-1
variant: esp32c3
framework:
type: esp-idf
version: latest
# platform_version: 6.5.0
external_components:
- source:
type: git
url: https://github.com/esphome/esphome
ref: d5bdf2575c151abfad39b6c24c3856395a7d0901
components:
- ethernet
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: *************************
ota:
- platform: esphome
password: *************************
ethernet:
id: my_network
type: DM9051 # W5500
clk_pin: 7
mosi_pin: 10
miso_pin: 3
cs_pin: 9
interrupt_pin: 8
reset_pin: 6
clock_speed: 20MHz
manual_ip:
static_ip: 192.168.***.***
gateway: 192.168.***.***
subnet: 255.255.***.***
dns1: 192.168.***.***
time:
- platform: homeassistant
id: homeassistant_time
uart:
id: mod_bus
tx_pin: GPIO2
rx_pin: GPIO5
baud_rate: 9600
stop_bits: 1
modbus:
id: baxi_esp_modbus
modbus_controller:
- id: baxi_esp
address: 0x64
modbus_id: baxi_esp_modbus
setup_priority: -10
update_interval: "15s"
command_throttle: "50ms"
############################## ENTITIES ##############################
############################## SENSORS ###############################
sensor:
- platform: modbus_controller #272 PowerActualReceived
modbus_controller_id: $devicename
name: "Potencia de salida real 272"
address: 272
register_type: holding
value_type: U_WORD
unit_of_measurement: "%"
accuracy_decimals: 2
device_class: power_factor
state_class: measurement
filters:
- multiply: 1
- platform: modbus_controller #384 varApTOutside 8-1
modbus_controller_id: $devicename
name: "AM027 Temp. exterior 384"
address: 384
register_type: holding
value_type: S_WORD
unit_of_measurement: "°C"
accuracy_decimals: 2
device_class: temperature
state_class: measurement
filters:
- multiply: 0.01
- platform: modbus_controller #403 varHpHeatPumpTF 8-1
modbus_controller_id: $devicename
name: "HM001 Temp. ida bomba 403"
id: hm001_temp_ida_bomba_de_calor_403
address: 403
register_type: holding
value_type: S_WORD
unit_of_measurement: "°C"
accuracy_decimals: 2
device_class: temperature
state_class: measurement
filters:
- multiply: 0.01
- platform: modbus_controller #404 varHpHeatPumpTR 8-1
modbus_controller_id: $devicename
name: "HM002 Temp. retorno bomba 404"
id: hm002_temp_retorno_bomba_de_calor_404
address: 404
register_type: holding
value_type: S_WORD
unit_of_measurement: "°C"
accuracy_decimals: 2
device_class: temperature
state_class: measurement
filters:
- multiply: 0.01
- platform: modbus_controller #405 varApInternalSetpoint 8-1
modbus_controller_id: $devicename
name: "AM101 Cons. interna 405"
address: 405
register_type: holding
value_type: U_WORD
unit_of_measurement: "°C"
accuracy_decimals: 2
device_class: temperature
state_class: measurement
filters:
- multiply: 0.01
- platform: modbus_controller #409 varApWaterPressure
modbus_controller_id: $devicename
name: "AM019 Presion del agua 409"
address: 409
register_type: holding
value_type: U_WORD
unit_of_measurement: "bar"
accuracy_decimals: 2
device_class: pressure
state_class: measurement
filters:
- multiply: 0.1
- platform: modbus_controller #410 varApFlowmeter 8-1
modbus_controller_id: $devicename
name: "AM056 Caudal 410"
id: am056_caudal_410
address: 410
register_type: holding
value_type: U_WORD
unit_of_measurement: "L/min"
accuracy_decimals: 2
device_class: volume_flow_rate
state_class: measurement
filters:
- multiply: 0.01
- platform: modbus_controller #414 varHePowerSetpoint 8-1
modbus_controller_id: $devicename
name: "Cons. de potencia en % del máximo 414"
address: 414
register_type: holding
value_type: U_WORD
unit_of_measurement: "%"
accuracy_decimals: 2
device_class: power_factor
state_class: measurement
filters:
- multiply: 0.001
- platform: modbus_controller #433 varApChEnergyConsumption 24-17
modbus_controller_id: $devicename
name: "AC005 Energia consumida CC 433"
address: 433
register_type: holding
value_type: U_DWORD
unit_of_measurement: "kWh"
accuracy_decimals: 2
device_class: energy
state_class: measurement
filters:
- multiply: 1
- platform: modbus_controller #435 varApDhwEnergyConsumption 24-17
modbus_controller_id: $devicename
name: "AC006 Energia consumida ACS 435"
address: 435
register_type: holding
value_type: U_DWORD
unit_of_measurement: "kWh"
accuracy_decimals: 2
device_class: energy
state_class: measurement
filters:
- multiply: 1
- platform: modbus_controller #437 varApCoolingEnergyConsumption 24-17
modbus_controller_id: $devicename
name: "AC007 Energia consumida AACC 437"
address: 437
register_type: holding
value_type: U_DWORD
unit_of_measurement: "kWh"
accuracy_decimals: 2
device_class: energy
state_class: measurement
filters:
- multiply: 1
- platform: modbus_controller #1104 varZoneTRoom 8-1
modbus_controller_id: $devicename
name: "Temp. ambiente actual 1104"
address: 1104
register_type: holding
value_type: S_WORD
unit_of_measurement: "°C"
accuracy_decimals: 1
device_class: temperature
state_class: measurement
filters:
- multiply: 0.1
- platform: modbus_controller #1631 varDhwTankTemperature 8-1
modbus_controller_id: $devicename
name: "DM001 Temp. tanque de ACS 1631"
address: 1631
register_type: holding
value_type: S_WORD
unit_of_measurement: "°C"
accuracy_decimals: 2
device_class: temperature
state_class: measurement
filters:
- multiply: 0.01
############################## TEMPLATES ########################
- platform: template
name: "ΔTemp."
unit_of_measurement: "°C"
accuracy_decimals: 2
device_class: temperature
state_class: measurement
lambda: |-
return (id(hm001_temp_ida_bomba_de_calor_403).state - id(hm002_temp_retorno_bomba_de_calor_404).state);
- platform: template
name: "Pot. Termica"
unit_of_measurement: "W"
accuracy_decimals: 2
device_class: power
state_class: measurement
lambda: |-
return (id(am056_caudal_410).state * 60 * (id(hm001_temp_ida_bomba_de_calor_403).state - id(hm002_temp_retorno_bomba_de_calor_404).state)/1);
############################## BINARY SENSORS ########################
binary_sensor:
- platform: modbus_controller #1110 varZonePumpRunning
modbus_controller_id: $devicename
name: "CM050 Estado de la bomba de CC 1110"
address: 1110
register_type: holding
############################## SWITCH ################################
switch:
- platform: modbus_controller #389 parApForceSummerMode
modbus_controller_id: $devicename
name: "AP074 Forzar modo verano 389"
address: 389
register_type: holding
use_write_multiple: True
bitmask: 1
- platform: modbus_controller #500 parApChEnabled
modbus_controller_id: $devicename
name: "AP016 Habilitar Climatizacion 500"
address: 500
register_type: holding
use_write_multiple: True
bitmask: 1
- platform: modbus_controller #501 parApDhwEnabled
modbus_controller_id: $devicename
name: "AP017 Habilitar ACS 501"
address: 501
register_type: holding
use_write_multiple: True
bitmask: 1
- platform: modbus_controller #503 parApCoolingForced
modbus_controller_id: $devicename
name: "AP015 Forzar bomba de calor en AACC 503"
address: 503
register_type: holding
use_write_multiple: True
bitmask: 1
############################## NUMBER ################################
number:
- platform: modbus_controller #386 parApSummerWinter 8-1
modbus_controller_id: $devicename
name: "AP073 Temp. ext apagar CC 386"
address: 386
use_write_multiple: false
unit_of_measurement: "°C"
device_class: temperature
min_value: 0
max_value: 30.5
value_type: U_WORD
multiply: 100
- platform: modbus_controller #387 parApNeutralBandSummerWinter 8-1
modbus_controller_id: $devicename
name: "AP075 Temp. ext apagar bomba de calor 387"
address: 387
use_write_multiple: false
unit_of_measurement: "°C"
device_class: temperature
min_value: 0
max_value: 10
value_type: U_WORD
multiply: 100
- platform: modbus_controller #388 parApNeutralBandSummerWinter 8-1
modbus_controller_id: $devicename
name: "AP080 Temp. ext activa antihielo 388"
address: 388
use_write_multiple: false
unit_of_measurement: "°C"
device_class: temperature
min_value: -30
max_value: 20
value_type: S_WORD
multiply: 100
- platform: modbus_controller #663 parZoneAmbiantHolidaySetpoint 8-1
modbus_controller_id: $devicename
name: "CP510 Temp. cons. temporal 663"
address: 663
use_write_multiple: false
unit_of_measurement: "°C"
device_class: temperature
min_value: 5
max_value: 30
value_type: U_WORD
multiply: 10
- platform: modbus_controller #664 parZoneRoomManualSetpoint 8-1
modbus_controller_id: $devicename
name: "CP200 Temp. cons. manual 664"
address: 664
use_write_multiple: false
unit_of_measurement: "°C"
device_class: temperature
min_value: 5
max_value: 30
value_type: U_WORD
multiply: 10
- platform: modbus_controller #672 parZoneTFlowSetpointMax 8-1
modbus_controller_id: $devicename
name: "CP000 Max.Cons.Temp. Ida 672"
address: 672
use_write_multiple: false
unit_of_measurement: "°C"
device_class: temperature
min_value: 7
max_value: 100
step: 0.5
value_type: U_WORD
multiply: 100
- platform: modbus_controller #674 parZoneSlope
modbus_controller_id: $devicename
name: "CP230 Pendiente curva CC 674"
address: 674
use_write_multiple: false
min_value: 0
max_value: 4
step: 0.1
value_type: U_WORD
multiply: 10
- platform: modbus_controller #675 parZoneHCZPD 8-1
modbus_controller_id: $devicename
name: "CP210 Temp. pie curva CC confort 675"
address: 675
use_write_multiple: false
unit_of_measurement: "°C"
device_class: temperature
min_value: 15
max_value: 90
step: 0.5
value_type: U_WORD
multiply: 10
- platform: modbus_controller #676 parZoneHCZPD 8-1
modbus_controller_id: $devicename
name: "CP220 Temp. pie curva CC ECO 676"
address: 676
use_write_multiple: false
unit_of_measurement: "°C"
device_class: temperature
min_value: 15
max_value: 90
step: 0.5
value_type: U_WORD
multiply: 10
- platform: modbus_controller #677 parZoneMaxPreHeatTime 8-1
modbus_controller_id: $devicename
name: "CP750 Precalentamiento max. 677"
address: 677
use_write_multiple: false
unit_of_measurement: "min"
min_value: 0
max_value: 240
value_type: U_WORD
multiply: 1
- platform: modbus_controller #687 parZonePumpPostRun
modbus_controller_id: $devicename
name: "DP213 Postfuncionamiento bomba 687"
address: 687
use_write_multiple: false
unit_of_measurement: "min"
min_value: 0
max_value: 20
value_type: U_WORD
multiply: 1
- platform: modbus_controller #1177 parZoneDhwComfortSetpoint 8-1
modbus_controller_id: $devicename
name: "DP070 Temp. confort ACS 1177"
address: 1177
use_write_multiple: false
unit_of_measurement: "°C"
device_class: temperature
min_value: 40
max_value: 80
value_type: U_WORD
multiply: 100
- platform: modbus_controller #1178 parZoneDhwReducedSetpoint 8-1
modbus_controller_id: $devicename
name: "DP080 Temp. ECO ACS 1178"
address: 1178
use_write_multiple: false
unit_of_measurement: "°C"
device_class: temperature
min_value: 10
max_value: 60
value_type: U_WORD
multiply: 100
- platform: modbus_controller #1179 parZoneDhwHolidaySetpoint 8-1
modbus_controller_id: $devicename
name: "DP337 Temp. vacaciones ACS 1179"
address: 1179
use_write_multiple: false
unit_of_measurement: "°C"
device_class: temperature
min_value: 0
max_value: 100
value_type: U_WORD
multiply: 100
- platform: modbus_controller #1180 parZoneDhwAntilegionelSetpoint 8-1
modbus_controller_id: $devicename
name: "Temp. antilegionella ACS 1180"
address: 1180
use_write_multiple: false
unit_of_measurement: "°C"
device_class: temperature
min_value: 0
max_value: 100
value_type: U_WORD
multiply: 100
- platform: modbus_controller #1192 parZoneDhwHysterisis 8-1
modbus_controller_id: $devicename
name: "DP220 Histeresis ACS 1192"
address: 1192
use_write_multiple: false
unit_of_measurement: "°C"
device_class: temperature
min_value: 0
max_value: 100
value_type: U_WORD
multiply: 1000
- platform: modbus_controller #1198 parZoneDhwCalorifierHysterisis 8-1
modbus_controller_id: $devicename
name: "DP120 Histeresis para la carga del tanque de ACS 1198"
address: 1198
use_write_multiple: false
unit_of_measurement: "°C"
device_class: temperature
min_value: 0
max_value: 40
value_type: U_WORD
multiply: 100
############################## SELECT ################################
select:
- platform: modbus_controller #649 parZoneMode 1
modbus_controller_id: $devicename
name: "CP320 Modo trabajo Climatizacion 649"
address: 649
use_write_multiple: false
value_type: U_WORD
optionsmap:
"Programacion": 0
"Manual": 1
"Antiescarcha": 2
skip_updates: 10
- platform: modbus_controller #688 parZoneTimeProgramSelected 1
modbus_controller_id: $devicename
name: "DP570 Programa horario de la Climatizacion 688"
address: 688
use_write_multiple: false
value_type: U_WORD
optionsmap:
"Programa horario 1": 0
"Programa horario 2": 1
"Programa horario 3": 2
skip_updates: 10
- platform: modbus_controller #1161 parZoneMode 2
modbus_controller_id: $devicename
name: "CP320 Modo trabajo ACS 1161"
address: 1161
use_write_multiple: True
value_type: U_WORD
optionsmap:
"Programacion": 0
"Manual": 1
"Antiescarcha": 2
skip_updates: 10
############################## TEXT SENSOR ###########################
text_sensor:
- platform: modbus_controller #411 varApStatus
modbus_controller_id: $devicename
name: "AM012 Estado del aparato 411"
address: 411
register_type: holding
bitmask: 1
raw_encode: HEXBYTES
lambda: |-
uint8_t value = modbus_controller::word_from_hex_str(x, 0);
switch (value) {
case 0: return std::string("En espera");
case 1: return std::string("Demanda calor");
case 3: return std::string("Calentando CC");
case 4: return std::string("Calentando ACS");
case 6: return std::string("Postcirculacion Bomba");
case 7: return std::string("Refrigeracion activa");
case 8: return std::string("Parada controlada");
case 9: return std::string("Bloqueado");
case 10: return std::string("Bloqueo temporal");
case 11: return std::string("Test carga minima");
case 12: return std::string("Test carga maxima CC");
case 16: return std::string("Proteccion antiheladas");
case 17: return std::string("Purgado activado");
default: return std::string("Desconocido");
}
return x;
- platform: modbus_controller #1619 varZoneCurrentActivities 2
modbus_controller_id: $devicename
name: "CM130 Actividad del ACS activa actual 1619"
address: 1619
register_type: holding
bitmask: 1
raw_encode: HEXBYTES
lambda: |-
uint8_t value = modbus_controller::word_from_hex_str(x, 0);
switch (value) {
case 0: return std::string("Antiescarcha");
case 1: return std::string("ECO");
case 2: return std::string("Confort");
case 3: return std::string("Antilegionella");
default: return std::string("Desconocido");
}
return x;
############################## END ###################################