forked from kakaki/esphome_dietrich
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathremeha_en.yaml
268 lines (249 loc) · 13.5 KB
/
remeha_en.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
esphome:
name: remeha-calenta
includes:
- /config/esphome/remeha/remeha.h
esp8266:
board: huzzah
packages:
device_base: !include common/device_base_esp8266.yaml
substitutions:
node_name: remeha_calenta
friendly_name: Remeha Calenta
board: huzzah
restore_from_flash: 'False'
log_level: ERROR
# Enable logging
logger:
# hardware_uart: UART1
# web server
web_server:
# port: 80
# Enable Home Assistant API
api:
encryption:
key: "encryption key"
ota:
platform: esphome
password: "password"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Remeha-Calenta Fallback Hotspot"
password: "password"
captive_portal:
# -------------
uart:
id: uart_bus
baud_rate: 9600
tx_pin: GPIO1
rx_pin: GPIO3
# rx_buffer_size: 256
# stop_bits: 1
text_sensor:
- platform: template
id: remeha_state_txt
name: "Boiler State"
- platform: template
id: remeha_substate_txt
name: "Boiler Sub State"
sensor:
- platform: custom
lambda: |-
auto remeha = new Remeha(id(uart_bus));
App.register_component(remeha);
return {remeha->state_sensor, remeha->sub_state_sensor, remeha->lockout_sensor, remeha->blocking_sensor,
remeha->flow_temp_sensor, remeha->return_temp_sensor, remeha->outside_temp_sensor, remeha->calorifier_temp_sensor,
remeha->boiler_control_temp_sensor, remeha->room_temp_sensor, remeha->ch_setpoint_sensor, remeha->dhw_setpoint_sensor, remeha->room_temp_setpoint_sensor,
remeha->fan_speed_setpoint_sensor, remeha->fan_speed_sensor,
remeha->ionisation_current_sensor, remeha->internal_setpoint_sensor, remeha->available_power_sensor, remeha->pump_percentage_sensor,
remeha->desired_max_power_sensor, remeha->actual_power_sensor,
remeha->demand_source_bit0_sensor, remeha->demand_source_bit1_sensor, remeha->demand_source_bit2_sensor, remeha->demand_source_bit3_sensor,
remeha->demand_source_bit4_sensor, remeha->demand_source_bit5_sensor, remeha->demand_source_bit6_sensor, remeha->demand_source_bit7_sensor,
remeha->hours_run_pump_sensor, remeha->hours_run_3way_sensor, remeha->hours_run_ch_sensor, remeha->hours_run_dhw_sensor,
remeha->power_supply_avail_hours_sensor, remeha->pump_starts_sensor, remeha->number_of_3way_valve_cycles_sensor, remeha->burner_start_dhw_sensor,
remeha->total_burner_start_sensor, remeha->failed_burner_start_sensor, remeha->number_flame_loss_sensor,
remeha->hydro_pressure_sensor, remeha->control_temp_sensor, remeha->dhw_flowrate_sensor
};
sensors:
- id: remeha_state
on_value:
then:
- lambda: |-
if (id(remeha_state).state==0) {id(remeha_state_txt).publish_state("0:Standby");}
else if (id(remeha_state).state==1) {id(remeha_state_txt).publish_state("1:Boiler Start");}
else if (id(remeha_state).state==2) {id(remeha_state_txt).publish_state("2:Burner Start");}
else if (id(remeha_state).state==3) {id(remeha_state_txt).publish_state("3:Burning CH");}
else if (id(remeha_state).state==4) {id(remeha_state_txt).publish_state("4:Burning DHW");}
else if (id(remeha_state).state==5) {id(remeha_state_txt).publish_state("5:Burner Stop");}
else if (id(remeha_state).state==6) {id(remeha_state_txt).publish_state("6:Boiler Stop");}
else if (id(remeha_state).state==7) {id(remeha_state_txt).publish_state("7:-");}
else if (id(remeha_state).state==8) {id(remeha_state_txt).publish_state("8:Controlled Stop");}
else if (id(remeha_state).state==9) {id(remeha_state_txt).publish_state("9:Blocking Mode");}
else if (id(remeha_state).state==10) {id(remeha_state_txt).publish_state("10:Locking Mode");}
else if (id(remeha_state).state==11) {id(remeha_state_txt).publish_state("11:Chimney Mode L");}
else if (id(remeha_state).state==12) {id(remeha_state_txt).publish_state("12:Chimney Mode h");}
else if (id(remeha_state).state==13) {id(remeha_state_txt).publish_state("13:Chimney Mode H");}
else if (id(remeha_state).state==14) {id(remeha_state_txt).publish_state("14:-");}
else if (id(remeha_state).state==15) {id(remeha_state_txt).publish_state("15:Manual Heat Demand");}
else if (id(remeha_state).state==16) {id(remeha_state_txt).publish_state("16:Boiler Frost Protection");}
else if (id(remeha_state).state==17) {id(remeha_state_txt).publish_state("17:De-Aeration");} //
else
{id(remeha_state_txt).publish_state("999:Unknown State");}
- id: remeha_substate
on_value:
then:
- lambda: |-
if (id(remeha_substate).state==0) {id(remeha_substate_txt).publish_state("0:Standby");}
else if (id(remeha_substate).state==1) {id(remeha_substate_txt).publish_state("1:Anti-Cycling");}
else if (id(remeha_substate).state==2) {id(remeha_substate_txt).publish_state("2:Open Hydraulic Valve");}
else if (id(remeha_substate).state==3) {id(remeha_substate_txt).publish_state("3:Pump Start");}
else if (id(remeha_substate).state==4) {id(remeha_substate_txt).publish_state("4:Wait for Burner Start");}
else if (id(remeha_substate).state==5) {id(remeha_substate_txt).publish_state("5:-");}
else if (id(remeha_substate).state==6) {id(remeha_substate_txt).publish_state("6:-");}
else if (id(remeha_substate).state==7) {id(remeha_substate_txt).publish_state("7:-");}
else if (id(remeha_substate).state==8) {id(remeha_substate_txt).publish_state("8:-");}
else if (id(remeha_substate).state==9) {id(remeha_substate_txt).publish_state("9:-");}
else if (id(remeha_substate).state==10) {id(remeha_substate_txt).publish_state("10:Open External Gas Valve");}
else if (id(remeha_substate).state==11) {id(remeha_substate_txt).publish_state("11:Fan to Flue Gas Valve Speed");}
else if (id(remeha_substate).state==12) {id(remeha_substate_txt).publish_state("12:Open Flue Gas Valve");}
else if (id(remeha_substate).state==13) {id(remeha_substate_txt).publish_state("13:Pre-purge");}
else if (id(remeha_substate).state==14) {id(remeha_substate_txt).publish_state("14:Wait for Release");}
else if (id(remeha_substate).state==15) {id(remeha_substate_txt).publish_state("15:Burner Start");}
else if (id(remeha_substate).state==16) {id(remeha_substate_txt).publish_state("16:VPS Test");}
else if (id(remeha_substate).state==17) {id(remeha_substate_txt).publish_state("17:Pre-ignition");}
else if (id(remeha_substate).state==18) {id(remeha_substate_txt).publish_state("18:Ignition");}
else if (id(remeha_substate).state==19) {id(remeha_substate_txt).publish_state("19:Flame Check");}
else if (id(remeha_substate).state==20) {id(remeha_substate_txt).publish_state("20:Interpurge");}
else if (id(remeha_substate).state==30) {id(remeha_substate_txt).publish_state("30:Normal Internal Setpoint");}
else if (id(remeha_substate).state==31) {id(remeha_substate_txt).publish_state("31:Limited Internal Setpoint");}
else if (id(remeha_substate).state==32) {id(remeha_substate_txt).publish_state("32:Normal Power Control");}
else if (id(remeha_substate).state==33) {id(remeha_substate_txt).publish_state("33:Gradient Control Level 1");}
else if (id(remeha_substate).state==34) {id(remeha_substate_txt).publish_state("34:Gradient Control Level 2");}
else if (id(remeha_substate).state==35) {id(remeha_substate_txt).publish_state("35:Gradient Control Level 3");}
else if (id(remeha_substate).state==36) {id(remeha_substate_txt).publish_state("36:Flame Protection");}
else if (id(remeha_substate).state==37) {id(remeha_substate_txt).publish_state("37:Stabilisation Time");}
else if (id(remeha_substate).state==38) {id(remeha_substate_txt).publish_state("38:Cold Start");}
else if (id(remeha_substate).state==39) {id(remeha_substate_txt).publish_state("39:Limited Power Tfg");}
else if (id(remeha_substate).state==40) {id(remeha_substate_txt).publish_state("40:Burner Stop");}
else if (id(remeha_substate).state==41) {id(remeha_substate_txt).publish_state("41:Post Purge");}
else if (id(remeha_substate).state==42) {id(remeha_substate_txt).publish_state("42:Fan to Flue Gas Valve Speed");}
else if (id(remeha_substate).state==43) {id(remeha_substate_txt).publish_state("43:Close Flue Gas Valve");}
else if (id(remeha_substate).state==44) {id(remeha_substate_txt).publish_state("44:Stop Fan");}
else if (id(remeha_substate).state==45) {id(remeha_substate_txt).publish_state("45:Close External Gas Valve");}
else if (id(remeha_substate).state==46) {id(remeha_substate_txt).publish_state("46:-");}
else if (id(remeha_substate).state==47) {id(remeha_substate_txt).publish_state("47:-");}
else if (id(remeha_substate).state==48) {id(remeha_substate_txt).publish_state("48:-");}
else if (id(remeha_substate).state==49) {id(remeha_substate_txt).publish_state("49:-");}
else if (id(remeha_substate).state==39) {id(remeha_substate_txt).publish_state("39:Heat Exchanger Protection");}
else if (id(remeha_substate).state==60) {id(remeha_substate_txt).publish_state("60:Pump Post Running");}
else if (id(remeha_substate).state==61) {id(remeha_substate_txt).publish_state("61:Pump Stop");}
else if (id(remeha_substate).state==62) {id(remeha_substate_txt).publish_state("62:Close Hydraulic Valve");}
else if (id(remeha_substate).state==63) {id(remeha_substate_txt).publish_state("63:Start Anti-Cycle Timer");}
else if (id(remeha_substate).state==255) {id(remeha_substate_txt).publish_state("255:Reset Wait Time");}
else
{id(remeha_substate_txt).publish_state("999:Unkown Sub-State");}
- name: "Boiler Lockout"
- name: "Boiler Blocking"
- name: "Boiler Flow Temperature"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Boiler Return Temperature"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Boiler Outside Temperature"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Boiler Calorifier Temperature"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Boiler Control Temperature"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Boiler Room Temperature"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Boiler Setpoint (Heating)"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Boiler Setpoint (Hot Water)"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Boiler Setpoint Room"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Boiler Setpoint Fanspeed"
unit_of_measurement: rpm
accuracy_decimals: 2
- name: "Boiler Fanspeed"
unit_of_measurement: rpm
accuracy_decimals: 2
- name: "Boiler Ionisation Current"
unit_of_measurement: "μA"
accuracy_decimals: 1
- name: "Boiler Internal Setpoint"
unit_of_measurement: "%"
accuracy_decimals: 0
- name: "Boiler Available Power"
unit_of_measurement: "%"
accuracy_decimals: 0
- name: "Boiler Pump Percentage"
unit_of_measurement: "%"
accuracy_decimals: 0
- name: "Boiler Desired Max. Power"
unit_of_measurement: "%"
accuracy_decimals: 0
- name: "Boiler Actual Power"
unit_of_measurement: "%"
accuracy_decimals: 0
- name: "Boiler Mod. Controller Connected"
- name: "Boiler Heat Demand from Mod. Controller"
- name: "Boiler Heat Demand from On/Off Controller"
- name: "Boiler Frost Protection"
- name: "Boiler DHW Eco Mode"
- name: "Boiler DHW Blocking"
- name: "Boiler Anti Legionella"
- name: "Boiler DHW Heat Demand"
- name: "Boiler Pump Hours"
unit_of_measurement: h
accuracy_decimals: 0
- name: "Boiler 3-Way Sensor Hours"
unit_of_measurement: h
accuracy_decimals: 0
- name: "Boiler Hours Run (Heating)"
unit_of_measurement: h
accuracy_decimals: 0
- name: "Boiler Hours Run (Hot Water)"
unit_of_measurement: h
accuracy_decimals: 0
- name: "Boiler Power ON Hours"
unit_of_measurement: h
accuracy_decimals: 0
- name: "Boiler Pump Starts"
unit_of_measurement: times
accuracy_decimals: 0
- name: "Boiler No. of 3-Way Valve Cycles"
unit_of_measurement: cycles
accuracy_decimals: 0
- name: "Boiler Burner Starts (Hot Water)"
unit_of_measurement: times
accuracy_decimals: 0
- name: "Boiler Burner Starts (Total)"
unit_of_measurement: times
accuracy_decimals: 0
- name: "Boiler Failed Burner Starts"
unit_of_measurement: times
accuracy_decimals: 0
- name: "Boiler Flame Loss times"
unit_of_measurement: times
accuracy_decimals: 0
- name: "Boiler Water Pressure"
unit_of_measurement: bar
accuracy_decimals: 2
- name: "Control Temperature"
unit_of_measurement: °C
accuracy_decimals: 2
- name: "Boiler Hot Water Flowrate"
unit_of_measurement: l/m
accuracy_decimals: 2