@beumer
Bij deze de gevraagde code in de posts hieronder. (bericht te lang anders) Ik heb geen DHW via de ThermaV, dus dat zou je er eventueel nog zelf in moeten vouwen.
Dit werkt iig op het board van @AUijtdehaag, tenzij hij componenten gewijzigd heeft na vorig jaar
Het scriptje (overshoot control) reageerde bij mij in elk geval op de nieuwe target. Het is me nog altijd onduidelijk of de WP zelf daar nu ook echt iets mee doet. Als ik namelijk handmatig de stooklijn + of -, dan duurt dan 5-10 min voordat de wp daar op reageert.
Wellicht dat dat anders is in de eerste 10 min van de opstart.
De WP pakt dan namelijk meer flow en kent ook in die 10 min een elastischer hysterese. Maar dat staat los van het script.
Misschien is het wel een placebo-scriptje
Krijg af en toe wel nog warnings. Dus als je die er uit weet te slopen; do let me know!
/f/image/4EyesLhlZ9Zn4Kl5EQEuYsqX.png?f=fotoalbum_large)
Bij deze de gevraagde code in de posts hieronder. (bericht te lang anders) Ik heb geen DHW via de ThermaV, dus dat zou je er eventueel nog zelf in moeten vouwen.
Dit werkt iig op het board van @AUijtdehaag, tenzij hij componenten gewijzigd heeft na vorig jaar
Het scriptje (overshoot control) reageerde bij mij in elk geval op de nieuwe target. Het is me nog altijd onduidelijk of de WP zelf daar nu ook echt iets mee doet. Als ik namelijk handmatig de stooklijn + of -, dan duurt dan 5-10 min voordat de wp daar op reageert.
Wellicht dat dat anders is in de eerste 10 min van de opstart.
De WP pakt dan namelijk meer flow en kent ook in die 10 min een elastischer hysterese. Maar dat staat los van het script.
Misschien is het wel een placebo-scriptje
Krijg af en toe wel nog warnings. Dus als je die er uit weet te slopen; do let me know!
/f/image/4EyesLhlZ9Zn4Kl5EQEuYsqX.png?f=fotoalbum_large)
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
| esphome: name: esp-wp-control esp32: board: mhetesp32minikit framework: type: arduino # Enable Home Assistant API api: encryption: key: "***" ota: password: "***" wifi: ssid: *** password: *** manual_ip: static_ip: 192.168.108.101 gateway: 192.168.108.1 subnet: 255.255.255.0 # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Toverdoos Fallback Hotspot" password: "***" button: - platform: restart id: restart_button name: "Herstart ESP module" # Enable logging. Disable modbus controller debug messages logger: logs: modbus_controller.sensor: DEBUG modbus_controller.output: DEBUG esp32.preferences: DEBUG sensor: DEBUG globals: - id: stooklijn_target type: float restore_value: no initial_value: '25' - id: force_update_stooklijn type: bool restore_value: no initial_value: 'true' number: - platform: template id: stooklijn_min_oat name: "Stooklijn Minimum Buitentemperatuur" min_value: -15 max_value: 4 step: 1 restore_value: yes initial_value: -5 unit_of_measurement: "°C" optimistic: true set_action: then: - lambda: |- id(force_update_stooklijn) = true; - platform: template id: stooklijn_max_oat name: "Stooklijn Maximum Buitentemperatuur" min_value: 5 max_value: 20 step: 1 restore_value: yes initial_value: 13 unit_of_measurement: "°C" optimistic: true set_action: then: - lambda: |- id(force_update_stooklijn) = true; - platform: template id: stooklijn_max_wtemp name: "Stooklijn Maximum Watertemperatuur" min_value: 30 max_value: 35 step: 1 restore_value: yes initial_value: 30 unit_of_measurement: "°C" optimistic: true set_action: then: - lambda: |- id(force_update_stooklijn) = true; - platform: template id: stooklijn_min_wtemp name: "Stooklijn Minimum Watertemperatuur" min_value: 25 max_value: 30 step: 1 restore_value: yes initial_value: 28 unit_of_measurement: "°C" optimistic: true set_action: then: - lambda: |- id(force_update_stooklijn) = true; # offset op stooklijn. Handig voor nachtverlaging of buiten de deur? Kijk uit met hysterese settigns van de controller! - platform: template name: "Stooklijn offset" id: wp_stooklijn_offset min_value: -4 max_value: 4 initial_value: 0 step: 1 restore_value: yes unit_of_measurement: "°C" optimistic: true set_action: then: - lambda: |- id(force_update_stooklijn) = true; # mee aan het kutten - platform: template id: oat_silent_always_off name: "Buitentemperatuur silent uit" min_value: -20 max_value: 10 step: 1 restore_value: yes initial_value: 2 unit_of_measurement: "°C" optimistic: true icon: mdi:volume-plus - platform: template id: oat_silent_always_on name: "Buitentemperatuur silent aan" min_value: -20 max_value: 20 step: 1 restore_value: yes initial_value: 6 unit_of_measurement: "°C" optimistic: true icon: mdi:volume-off switch: - platform: output name: "Silent Mode" id: silent_mode_switch output: 'modbus_set_silent_mode' - platform: template id: stooklijn_on_off name: "Stooklijn On/Off" optimistic: true - platform: template id: overshootcontrol_on_off name: "Overshoot Control On/Off" optimistic: true uart: id: mod_bus tx_pin: GPIO23 rx_pin: GPIO19 baud_rate: 9600 stop_bits: 1 parity: NONE modbus: flow_control_pin: GPIO18 send_wait_time: 2000ms id: modbus_lg modbus_controller: - id: lg ## the Modbus device addr address: 0x1 modbus_id: modbus_lg setup_priority: -10 update_interval: 10s output: - platform: modbus_controller modbus_controller_id: lg id: water_temp_target_output register_type: holding address: 2 value_type: U_WORD multiply: 1000 - platform: modbus_controller modbus_controller_id: lg id: modbus_set_silent_mode register_type: coil address: 2 binary_sensor: - platform: modbus_controller modbus_controller_id: lg name: "Pump Running" id: pump_running register_type: discrete_input skip_updates: 3 address: 1 - platform: modbus_controller modbus_controller_id: lg name: "Compressor Running" id: compressor_running register_type: discrete_input skip_updates: 3 address: 3 - platform: modbus_controller modbus_controller_id: lg name: "Defrosting" id: defrosting register_type: discrete_input skip_updates: 3 address: 4 - platform: modbus_controller modbus_controller_id: lg name: "Silent Mode" id: silent_mode register_type: coil skip_updates: 3 address: 2 on_state: then: - lambda: |- if(id(silent_mode).state != id(silent_mode_switch).state) id(silent_mode_switch).publish_state(id(silent_mode).state); sensor: - platform: modbus_controller modbus_controller_id: lg name: "fan" id: fan register_type: read address: 19 unit_of_measurement: "RPM" accuracy_decimals: 0 - platform: modbus_controller modbus_controller_id: lg name: "Bedrijfsmodus" id: bedrijfsmodus register_type: read address: 1 value_type: U_WORD - platform: modbus_controller modbus_controller_id: lg name: "Water retour" id: water_temp_retour register_type: read address: 2 unit_of_measurement: "°C" value_type: U_WORD accuracy_decimals: 1 filters: - multiply: 0.1 - platform: modbus_controller modbus_controller_id: lg name: "Compressor" id: compressor_hz register_type: read address: 24 unit_of_measurement: "Hz" value_type: U_WORD accuracy_decimals: 0 - platform: modbus_controller modbus_controller_id: lg name: "LowPress" id: LowPress register_type: read address: 23 unit_of_measurement: "mBar" value_type: U_WORD accuracy_decimals: 0 - platform: modbus_controller modbus_controller_id: lg name: "HighPress" id: HighPress register_type: read address: 22 unit_of_measurement: "mBar" value_type: U_WORD accuracy_decimals: 0 - platform: modbus_controller modbus_controller_id: lg name: "Pipe in Temp" id: Pipein register_type: read address: 16 unit_of_measurement: "°C" value_type: U_WORD accuracy_decimals: 0 filters: - multiply: 0.1 - platform: modbus_controller modbus_controller_id: lg name: "Pipe out Temp" id: pipeout register_type: read address: 17 unit_of_measurement: "°C" value_type: U_WORD accuracy_decimals: 0 filters: - multiply: 0.1 - platform: modbus_controller modbus_controller_id: lg name: "flow rate" id: flow register_type: read address: 8 unit_of_measurement: "l/min" value_type: U_WORD accuracy_decimals: 1 filters: - multiply: 0.1 |
Ik doe niet aan bijgeloof. Dat brengt ongeluk.