forked from andMaximus/esphome_dietrich
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dietrich_pl.yaml
258 lines (236 loc) · 13.4 KB
/
dietrich_pl.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
esphome:
name: uart_dietrich
platform: ESP8266
board: d1_mini
includes:
- dietrich.h
wifi:
ssid: "ssid"
password: "secret"
# Enable logging
logger:
hardware_uart: UART1
# web server
web_server:
# Enable Home Assistant API
api:
ota:
uart:
id: uart_bus
baud_rate: 9600
tx_pin: GPIO1
rx_pin: GPIO3
# stop_bits: 1
text_sensor:
- platform: template
id: piec_status_txt
name: "Piec Status"
- platform: template
id: piec_podstatus_txt
name: "Piec Podstatus"
sensor:
- platform: custom
lambda: |-
auto dietrich = new Dietrich(id(uart_bus));
App.register_component(dietrich);
return {dietrich->state_sensor, dietrich->sub_state_sensor, dietrich->lockout_sensor, dietrich->blocking_sensor,
dietrich->flow_temp_sensor, dietrich->return_temp_sensor, dietrich->outside_temp_sensor, dietrich->calorifier_temp_sensor,
dietrich->boiler_control_temp_sensor, dietrich->room_temp_sensor, dietrich->ch_setpoint_sensor, dietrich->dhw_setpoint_sensor, dietrich->room_temp_setpoint_sensor,
dietrich->fan_speed_setpoint_sensor, dietrich->fan_speed_sensor,
dietrich->ionisation_current_sensor, dietrich->internal_setpoint_sensor, dietrich->available_power_sensor, dietrich->pump_percentage_sensor,
dietrich->desired_max_power_sensor, dietrich->actual_power_sensor,
dietrich->demand_source_bit0_sensor, dietrich->demand_source_bit1_sensor, dietrich->demand_source_bit2_sensor, dietrich->demand_source_bit3_sensor,
dietrich->demand_source_bit4_sensor, dietrich->demand_source_bit5_sensor, dietrich->demand_source_bit6_sensor, dietrich->demand_source_bit7_sensor,
dietrich->hours_run_pump_sensor, dietrich->hours_run_3way_sensor, dietrich->hours_run_ch_sensor, dietrich->hours_run_dhw_sensor,
dietrich->power_supply_aval_hours_sensor, dietrich->pump_starts_sensor, dietrich->number_of3way_valce_cycles_sensor, dietrich->burner_start_dhw_sensor,
dietrich->total_burner_start_sensor, dietrich->failed_burner_start_sensor, dietrich->number_flame_loss_sensor,
dietrich->hydro_pressure_sensor, dietrich->control_temp_sensor, dietrich->dhw_flowrate_sensor
};
sensors:
- id: piec_status
on_value:
then:
- lambda: |-
if (id(piec_status).state==0) {id(piec_status_txt).publish_state("0:Czuwanie");} //Standby
else if (id(piec_status).state==1) {id(piec_status_txt).publish_state("1:Uruchomienie kotła");} //Boiler start
else if (id(piec_status).state==2) {id(piec_status_txt).publish_state("2:Uruchomienie palnika");} //Burner start
else if (id(piec_status).state==3) {id(piec_status_txt).publish_state("3:Ogrzewanie CO");} //Burning CH
else if (id(piec_status).state==4) {id(piec_status_txt).publish_state("4:Ogrzewanie CWU");} //Burning DHW
else if (id(piec_status).state==5) {id(piec_status_txt).publish_state("5:Zatrzymanie palnika");} //Burner stop
else if (id(piec_status).state==6) {id(piec_status_txt).publish_state("6:Zatrzymanie kotła");} //Boiler stop
else if (id(piec_status).state==7) {id(piec_status_txt).publish_state("7:-");}
else if (id(piec_status).state==8) {id(piec_status_txt).publish_state("8:Kontrolowane zatrzymanie");} //Controlled stop
else if (id(piec_status).state==9) {id(piec_status_txt).publish_state("9:Tryb blokowania");} //Blocking mode
else if (id(piec_status).state==10) {id(piec_status_txt).publish_state("10:Locking mode");}
else if (id(piec_status).state==11) {id(piec_status_txt).publish_state("11:Chimney mode L");}
else if (id(piec_status).state==12) {id(piec_status_txt).publish_state("12:Chimney mode h");}
else if (id(piec_status).state==13) {id(piec_status_txt).publish_state("13:Chimney mode H");}
else if (id(piec_status).state==14) {id(piec_status_txt).publish_state("14:-");}
else if (id(piec_status).state==15) {id(piec_status_txt).publish_state("15:Manual-heatdemand");}
else if (id(piec_status).state==16) {id(piec_status_txt).publish_state("16:Zabezpieczenie przed zamarzaniem");} //Boiler-frost-protection
else if (id(piec_status).state==17) {id(piec_status_txt).publish_state("17:Odpowietrzanie");} //De-aeration
else
{id(piec_status_txt).publish_state("999:Unknown");}
- id: piec_podstatus
on_value:
then:
- lambda: |-
if (id(piec_podstatus).state==0) {id(piec_podstatus_txt).publish_state("0:Czuwanie");} //Standby
else if (id(piec_podstatus).state==1) {id(piec_podstatus_txt).publish_state("1:Anti-cycling");}
else if (id(piec_podstatus).state==2) {id(piec_podstatus_txt).publish_state("2:Open hydraulic valve");}
else if (id(piec_podstatus).state==3) {id(piec_podstatus_txt).publish_state("3:Pump start");}
else if (id(piec_podstatus).state==4) {id(piec_podstatus_txt).publish_state("4:Wait for burner start");}
else if (id(piec_podstatus).state==5) {id(piec_podstatus_txt).publish_state("5:-");}
else if (id(piec_podstatus).state==6) {id(piec_podstatus_txt).publish_state("6:-");}
else if (id(piec_podstatus).state==7) {id(piec_podstatus_txt).publish_state("7:-");}
else if (id(piec_podstatus).state==8) {id(piec_podstatus_txt).publish_state("8:-");}
else if (id(piec_podstatus).state==9) {id(piec_podstatus_txt).publish_state("9:-");}
else if (id(piec_podstatus).state==10) {id(piec_podstatus_txt).publish_state("10:Open external gas valve");}
else if (id(piec_podstatus).state==11) {id(piec_podstatus_txt).publish_state("11:Fan to fluegasvalve speed");}
else if (id(piec_podstatus).state==12) {id(piec_podstatus_txt).publish_state("12:Open fluegasvalve");}
else if (id(piec_podstatus).state==13) {id(piec_podstatus_txt).publish_state("13:Pre-purge");}
else if (id(piec_podstatus).state==14) {id(piec_podstatus_txt).publish_state("14:Wait for release");}
else if (id(piec_podstatus).state==15) {id(piec_podstatus_txt).publish_state("15:Burner start");}
else if (id(piec_podstatus).state==16) {id(piec_podstatus_txt).publish_state("16:VPS test");}
else if (id(piec_podstatus).state==17) {id(piec_podstatus_txt).publish_state("17:Pre-ignition");}
else if (id(piec_podstatus).state==18) {id(piec_podstatus_txt).publish_state("18:Ignition");}
else if (id(piec_podstatus).state==19) {id(piec_podstatus_txt).publish_state("19:Flame check");}
else if (id(piec_podstatus).state==20) {id(piec_podstatus_txt).publish_state("20:Interpurge");}
else if (id(piec_podstatus).state==30) {id(piec_podstatus_txt).publish_state("30:Normal internal setpoint");}
else if (id(piec_podstatus).state==31) {id(piec_podstatus_txt).publish_state("31:Limited internal setpoint");}
else if (id(piec_podstatus).state==32) {id(piec_podstatus_txt).publish_state("32:Normal power control");}
else if (id(piec_podstatus).state==33) {id(piec_podstatus_txt).publish_state("33:Gradient control level 1");}
else if (id(piec_podstatus).state==34) {id(piec_podstatus_txt).publish_state("34:Gradient control level 2");}
else if (id(piec_podstatus).state==35) {id(piec_podstatus_txt).publish_state("35:Gradient control level 3");}
else if (id(piec_podstatus).state==36) {id(piec_podstatus_txt).publish_state("36:Flame protection");}
else if (id(piec_podstatus).state==37) {id(piec_podstatus_txt).publish_state("37:Stabilisation time");}
else if (id(piec_podstatus).state==38) {id(piec_podstatus_txt).publish_state("38:Cold start");}
else if (id(piec_podstatus).state==39) {id(piec_podstatus_txt).publish_state("39:Limited power Tfg");}
else if (id(piec_podstatus).state==40) {id(piec_podstatus_txt).publish_state("40:Burner stop");}
else if (id(piec_podstatus).state==41) {id(piec_podstatus_txt).publish_state("41:Post purge");}
else if (id(piec_podstatus).state==42) {id(piec_podstatus_txt).publish_state("42:Fan to flue gas valve speed");}
else if (id(piec_podstatus).state==43) {id(piec_podstatus_txt).publish_state("43:Close flue gas valve");}
else if (id(piec_podstatus).state==44) {id(piec_podstatus_txt).publish_state("44:Stop fan");}
else if (id(piec_podstatus).state==45) {id(piec_podstatus_txt).publish_state("45:Close external gas valve");}
else if (id(piec_podstatus).state==46) {id(piec_podstatus_txt).publish_state("46:-");}
else if (id(piec_podstatus).state==47) {id(piec_podstatus_txt).publish_state("47:-");}
else if (id(piec_podstatus).state==48) {id(piec_podstatus_txt).publish_state("48:-");}
else if (id(piec_podstatus).state==49) {id(piec_podstatus_txt).publish_state("49:-");}
else if (id(piec_podstatus).state==39) {id(piec_podstatus_txt).publish_state("39:Heat exchanger protection");}
else if (id(piec_podstatus).state==60) {id(piec_podstatus_txt).publish_state("60:Pump post running");}
else if (id(piec_podstatus).state==61) {id(piec_podstatus_txt).publish_state("61:Pump stop");}
else if (id(piec_podstatus).state==62) {id(piec_podstatus_txt).publish_state("62:Close hydraulic valve");}
else if (id(piec_podstatus).state==63) {id(piec_podstatus_txt).publish_state("63:Start anti-cycle timer");}
else if (id(piec_podstatus).state==255) {id(piec_podstatus_txt).publish_state("255:Reset wait time");}
else if (id(piec_podstatus).state==999) {id(piec_podstatus_txt).publish_state("999:Unkown Sub-State");}
- name: "Piec lockout"
- name: "Piec blocking"
- name: "Piec temp. przepływu"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Piec temp. powrotu"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Piec temp. zewnętrzna"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Piec temp. podgrzewacza"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Piec temp. pieca"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Piec temp. pomieszczenia"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Piec zadana temp. CO"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Piec zadana temp. CWU"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Piec zadana temp. pomieszczenia"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Piec zadana prędkość wentylatora"
unit_of_measurement: rpm
accuracy_decimals: 2
- name: "Piec prędkość wentylatora"
unit_of_measurement: rpm
accuracy_decimals: 2
- name: "Piec prąd jonizacji"
unit_of_measurement: "μA"
accuracy_decimals: 1
- name: "Piec wewnętrzna wartość zadana"
unit_of_measurement: "%"
accuracy_decimals: 0
- name: "Piec available_power"
unit_of_measurement: "%"
accuracy_decimals: 0
- name: "Piec pump_percentage"
unit_of_measurement: "%"
accuracy_decimals: 0
- name: "Piec desired_max_power"
unit_of_measurement: "%"
accuracy_decimals: 0
- name: "Piec actual_power"
unit_of_measurement: "%"
accuracy_decimals: 0
- name: "Piec Mod.Controller Connected"
- name: "Piec Heat demand from Mod.Controller"
- name: "Piec Heat demand from on/off controller"
- name: "Piec Frost Protection"
- name: "Piec DHW Eco"
- name: "Piec DHW Blocking"
- name: "Piec Anti Legionella"
- name: "Piec DHW Heat Demand"
- name: "Piec ilość godzin pracy pompy"
unit_of_measurement: h
accuracy_decimals: 0
- name: "Piec ilość godzin pracy zaworu trójdrożnego"
unit_of_measurement: h
accuracy_decimals: 0
- name: "Piec ilość godzin pracy"
unit_of_measurement: h
accuracy_decimals: 0
- name: "Piec ilość godzin pracy c.w.u."
unit_of_measurement: h
accuracy_decimals: 0
- name: "Piec ilość godzin zasilania"
unit_of_measurement: h
accuracy_decimals: 0
- name: "Piec ilość startów pompy"
unit_of_measurement: il
accuracy_decimals: 0
- name: "Piec ilość trójdrożnych cykli zaworu"
unit_of_measurement: il
accuracy_decimals: 0
- name: "Piec ilość startów c.w.u."
unit_of_measurement: il
accuracy_decimals: 0
- name: "Piec ilość startów palnika"
unit_of_measurement: il
accuracy_decimals: 0
- name: "Piec ilość nieudanych startów palnika"
unit_of_measurement: il
accuracy_decimals: 0
- name: "Piec ilość awarii płomienia"
unit_of_measurement: il
accuracy_decimals: 0
- name: "Piec Ciśnienie wody"
unit_of_measurement: bar
accuracy_decimals: 2
- name: "Piec kontrola temp."
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Piec natężenie przepływu C.W.U."
unit_of_measurement: l/m
accuracy_decimals: 0
- platform: wifi_signal
name: "Piec WiFi Signal"
update_interval: 60s
- platform: uptime
name: "Piec Uptime"
# - name: "My Custom Pressure Sensor"
# unit_of_measurement: hPa
# accuracy_decimals: 2