-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
config.yaml
452 lines (412 loc) · 16.9 KB
/
config.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
# for flashing : press boot button for 2-3 seconds before the serial connection initialize
# After OTA update, the EN (reset) button must be pressed to run firmware
# do not use gpio12 (MTDI)
############## General configuration
substitutions:
name: floor-heating-controller
friendly_name: "Floor heating"
revision: "1.117"
#time
TZ: "Europe/Zurich" #timezone
reboot_days_of_week: "MON"
reboot_hours: "5"
reboot_minutes: "0"
reboot_seconds: "0"
# valve_maintenance_interval: "7days"
onboot_valve_calibration_delay: "1min"
web_server:
port: 80
#version: 3
log: true
local: false #true in case of no internet
# Enable HOME Assistant API
api:
reboot_timeout: 30min
############## Channels definition (packages as template : https://espHOME.io/guides/configuration-types.html#packages-as-templates)
packages:
##### Sample PID config
# channel_1: !include
# file: heating_channel_PID.yaml
# vars:
# channel_number: 1
# id: wc #bad
# frendly_name: wc #bad
# temperature_sensor: corridor_temperature_sensor
# default_target_temperature: "21 °C"
# pid_kp: "0.06"
# pid_ki: "0.00011"
# pid_kd: "4.0"
# visual_min_temperature: "10 °C"
# visual_max_temperature: "30 °C"
# visual_temperature_step: "0.1 °C"
# bemf_trigger_initial_value: "0.105"
### do not change :
# bemf_sensor_adc: BEMF_1_2_sensor_ADC
# bemf_linked_with_channel: 2
# sn74hc595_IA_pin: 0
# sn74hc595_IB_pin: 1
##### Sample linear config
# channel_2: !include
# file: heating_channel_linear.yaml
# vars:
# channel_number: 2
# id: storage
# frendly_name: storage
# temperature_sensor: reduit_temperature_sensor
# default_preset: HOME
# preset_1_name: HOME #ECO, AWAY, BOOST, COMFORT, HOME, SLEEP, ACTIVITY
# preset_1_mode: HEAT #OFF, AUTO, HEAT, COOL, HEAT, FAN_ONLY, DRY
# preset_1_target_temperature_low: "19 °C" #ASHRAE studies recommend 21°C with a band of 2°C which result in 90% occupant acceptability
# preset_1_target_temperature_high: "20 °C"
# preset_2_name: AWAY
# preset_2_mode: HEAT
# preset_2_target_temperature_low: "18 °C"
# preset_2_target_temperature_high: "19 °C"
# preset_3_name: BOOST
# preset_3_mode: HEAT
# preset_3_target_temperature_low: "23 °C"
# preset_3_target_temperature_high: "24 °C"
# visual_min_temperature: "10 °C"
# visual_max_temperature: "30 °C"
# visual_temperature_step: "0.1 °C"
# check_interval: "16min"
# bemf_trigger_initial_value: "0.105"
# do not change :
# bemf_sensor_adc: BEMF_1_2_sensor_ADC
# bemf_linked_with_channel: 1
# sn74hc595_IA_pin: 2
# sn74hc595_IB_pin: 3
##### Sample tanh (non linear) config
# channel_1: !include
# file: heating_channel_tanh.yaml
# vars:
# channel_number: 1
# id: wc
# frendly_name: wc
# temperature_sensor: corridor_temperature_sensor #must match one sensor defined in sensor_temperature.yaml
# default_preset: HOME
# preset_1_name: HOME #ECO, AWAY, BOOST, COMFORT, HOME, SLEEP, ACTIVITY
# preset_1_mode: HEAT #OFF, AUTO, HEAT, COOL, HEAT, FAN_ONLY, DRY
# preset_1_target_temperature_low: "19 °C" #ASHRAE studies recommend 21°C with a band of 2°C which result in 90% occupant acceptability
# preset_1_target_temperature_high: "20 °C"
# preset_2_name: AWAY
# preset_2_mode: HEAT
# preset_2_target_temperature_low: "18 °C"
# preset_2_target_temperature_high: "19 °C"
# preset_3_name: BOOST
# preset_3_mode: HEAT
# preset_3_target_temperature_low: "23 °C"
# preset_3_target_temperature_high: "24 °C"
# visual_min_temperature: "10 °C"
# visual_max_temperature: "30 °C"
# visual_temperature_step: "0.1 °C"
# check_interval: "15min"
# bemf_trigger_initial_value: "0.105"
# tanh_steepness: "0.70" ############# NEW
# #do not change :
# bemf_sensor_adc: BEMF_1_2_sensor_ADC
# bemf_linked_with_channel: 2
# sn74hc595_IA_pin: 0
# sn74hc595_IB_pin: 1
##### Sample fully remote controlled channel config
# channel_1: !include
# file: heating_channel_remote_controlled.yaml
# vars:
# channel_number: 1
# id: wc
# frendly_name: wc
# temperature_sensor: corridor_temperature_sensor #must match one sensor defined in sensor_temperature.yaml
# default_preset: HOME
# preset_1_name: HOME #ECO, AWAY, BOOST, COMFORT, HOME, SLEEP, ACTIVITY
# preset_1_mode: HEAT #OFF, AUTO, HEAT, COOL, HEAT, FAN_ONLY, DRY
# preset_1_target_temperature_low: "19 °C" #ASHRAE studies recommend 21°C with a band of 2°C which result in 90% occupant acceptability
# preset_1_target_temperature_high: "20 °C"
# preset_2_name: AWAY
# preset_2_mode: HEAT
# preset_2_target_temperature_low: "18 °C"
# preset_2_target_temperature_high: "19 °C"
# preset_3_name: BOOST
# preset_3_mode: HEAT
# preset_3_target_temperature_low: "23 °C"
# preset_3_target_temperature_high: "24 °C"
# visual_min_temperature: "10 °C"
# visual_max_temperature: "30 °C"
# visual_temperature_step: "0.1 °C"
# #check_interval: "15min"
# bemf_trigger_initial_value: "0.105"
# #tanh_steepness: "0.70" ### new parameter for heating_channel_tanh.yaml only
# #do not change :
# bemf_sensor_adc: BEMF_1_2_sensor_ADC
# bemf_linked_with_channel: 2
# sn74hc595_IA_pin: 0
# sn74hc595_IB_pin: 1
#### normal channel config
channel_1: !include
file: heating_channel_tanh.yaml
vars:
channel_number: 1
id: wc
frendly_name: wc
temperature_sensor: corridor_temperature_sensor #must match one sensor defined in sensor_temperature.yaml
default_preset: HOME
preset_1_name: HOME #ECO, AWAY, BOOST, COMFORT, HOME, SLEEP, ACTIVITY
preset_1_mode: HEAT #OFF, AUTO, HEAT, COOL, HEAT, FAN_ONLY, DRY
preset_1_target_temperature_low: "21 °C" #ASHRAE studies recommend 21°C with a band of 2°C which result in 90% occupant acceptability
# preset_1_target_temperature_low: "21 °C" #ASHRAE studies recommend 21°C with a band of 2°C which result in 90% occupant acceptability
# preset_1_target_temperature_high: "20 °C"
preset_2_name: AWAY
preset_2_mode: HEAT
preset_2_target_temperature_low: "19 °C"
# preset_2_target_temperature_high: "19 °C"
preset_3_name: BOOST
preset_3_mode: HEAT
preset_3_target_temperature_low: "23 °C"
# preset_3_target_temperature_high: "24 °C"
visual_min_temperature: "10 °C"
visual_max_temperature: "30 °C"
visual_temperature_step: "0.1 °C"
check_interval: "15min"
bemf_trigger_initial_value: "0.105" # 0.105" for esphome < 2024.6
tanh_steepness: "0.70" ### new parameter for heating_channel_tanh.yaml only
# do not change :
bemf_sensor_adc: BEMF_1_2_sensor_ADC
bemf_linked_with_channel: 2
sn74hc595_IA_pin: 0
sn74hc595_IB_pin: 1
channel_2: !include
file: heating_channel_tanh.yaml
vars:
channel_number: 2
id: storage
frendly_name: storage
temperature_sensor: reduit_temperature_sensor
default_preset: HOME
preset_1_name: HOME #ECO, AWAY, BOOST, COMFORT, HOME, SLEEP, ACTIVITY
preset_1_mode: HEAT #OFF, AUTO, HEAT, COOL, HEAT, FAN_ONLY, DRY
preset_1_target_temperature_low: "21 °C" #ASHRAE studies recommend 21°C with a band of 2°C which result in 90% occupant acceptability
# preset_1_target_temperature_high: "20 °C"
preset_2_name: AWAY
preset_2_mode: HEAT
preset_2_target_temperature_low: "19 °C"
# preset_2_target_temperature_high: "19 °C"
preset_3_name: BOOST
preset_3_mode: HEAT
preset_3_target_temperature_low: "23 °C"
# preset_3_target_temperature_high: "24 °C"
visual_min_temperature: "10 °C"
visual_max_temperature: "30 °C"
visual_temperature_step: "0.1 °C"
check_interval: "16min"
bemf_trigger_initial_value: "0.105"
tanh_steepness: "0.70"
## do not change :
bemf_sensor_adc: BEMF_1_2_sensor_ADC
bemf_linked_with_channel: 1
sn74hc595_IA_pin: 2
sn74hc595_IB_pin: 3
channel_3: !include
file: heating_channel_tanh.yaml
vars:
channel_number: 3
id: living
frendly_name: living
temperature_sensor: living_room_temperature_sensor
default_preset: HOME
preset_1_name: HOME #ECO, AWAY, BOOST, COMFORT, HOME, SLEEP, ACTIVITY
preset_1_mode: HEAT #OFF, AUTO, HEAT, COOL, HEAT, FAN_ONLY, DRY
preset_1_target_temperature_low: "21 °C" #ASHRAE studies recommend 21°C with a band of 2°C which result in 90% occupant acceptability
# preset_1_target_temperature_high: "20 °C"
preset_2_name: AWAY
preset_2_mode: HEAT
preset_2_target_temperature_low: "19 °C"
# preset_2_target_temperature_high: "19 °C"
preset_3_name: BOOST
preset_3_mode: HEAT
preset_3_target_temperature_low: "23 °C"
# preset_3_target_temperature_high: "24 °C"
visual_min_temperature: "10 °C"
visual_max_temperature: "30 °C"
visual_temperature_step: "0.1 °C"
check_interval: "17min"
bemf_trigger_initial_value: "0.105"
tanh_steepness: "0.70"
## do not change :
bemf_sensor_adc: BEMF_3_4_sensor_ADC
bemf_linked_with_channel: 4
sn74hc595_IA_pin: 4
sn74hc595_IB_pin: 5
channel_4: !include
file: heating_channel_tanh.yaml
vars:
channel_number: 4
id: dining
frendly_name: dining
temperature_sensor: living_room_temperature_sensor #indoor_temperature_sensor
default_preset: HOME
preset_1_name: HOME #ECO, AWAY, BOOST, COMFORT, HOME, SLEEP, ACTIVITY
preset_1_mode: HEAT #OFF, AUTO, HEAT, COOL, HEAT, FAN_ONLY, DRY
preset_1_target_temperature_low: "21 °C" #ASHRAE studies recommend 21°C with a band of 2°C which result in 90% occupant acceptability
# preset_1_target_temperature_high: "20 °C"
preset_2_name: AWAY
preset_2_mode: HEAT
preset_2_target_temperature_low: "19 °C"
# preset_2_target_temperature_high: "19 °C"
preset_3_name: BOOST
preset_3_mode: HEAT
preset_3_target_temperature_low: "23 °C"
# preset_3_target_temperature_high: "24 °C"
visual_min_temperature: "10 °C"
visual_max_temperature: "30 °C"
visual_temperature_step: "0.1 °C"
check_interval: "18min"
bemf_trigger_initial_value: "0.105"
tanh_steepness: "0.70"
## do not change :
bemf_sensor_adc: BEMF_3_4_sensor_ADC
bemf_linked_with_channel: 3
sn74hc595_IA_pin: 6
sn74hc595_IB_pin: 7
channel_5: !include
file: heating_channel_tanh.yaml
vars:
channel_number: 5
id: kitchen
frendly_name: kitchen
temperature_sensor: living_room_temperature_sensor
# default_target_temperature_low: "21 °C"
# pid_kp: "0.06"
# pid_ki: "0.00011"
# pid_kd: "4.0"
# visual_min_temperature: "10 °C"
# visual_max_temperature: "30 °C"
# visual_temperature_step: "0.1 °C"
default_preset: HOME
preset_1_name: HOME #ECO, AWAY, BOOST, COMFORT, HOME, SLEEP, ACTIVITY
preset_1_mode: HEAT #OFF, AUTO, HEAT, COOL, HEAT, FAN_ONLY, DRY
preset_1_target_temperature_low: "21 °C" #ASHRAE studies recommend 21°C with a band of 2°C which result in 90% occupant acceptability
# preset_1_target_temperature_high: "20 °C"
preset_2_name: AWAY
preset_2_mode: HEAT
preset_2_target_temperature_low: "19 °C"
# preset_2_target_temperature_high: "19 °C"
preset_3_name: BOOST
preset_3_mode: HEAT
preset_3_target_temperature_low: "23 °C"
# preset_3_target_temperature_high: "24 °C"
visual_min_temperature: "10 °C"
visual_max_temperature: "30 °C"
visual_temperature_step: "0.1 °C"
check_interval: "15min"
bemf_trigger_initial_value: "0.105"
tanh_steepness: "0.70"
## do not change :
bemf_sensor_adc: BEMF_5_6_sensor_ADC
bemf_linked_with_channel: 6
sn74hc595_IA_pin: 8
sn74hc595_IB_pin: 9
channel_6: !include
file: heating_channel_tanh.yaml
vars:
channel_number: 6
id: office
frendly_name: office
temperature_sensor: office_temperature_sensor
default_preset: HOME
preset_1_name: HOME #ECO, AWAY, BOOST, COMFORT, HOME, SLEEP, ACTIVITY
preset_1_mode: HEAT #OFF, AUTO, HEAT, COOL, HEAT, FAN_ONLY, DRY
preset_1_target_temperature_low: "21 °C" #ASHRAE studies recommend 21°C with a band of 2°C which result in 90% occupant acceptability
# preset_1_target_temperature_high: "20 °C"
preset_2_name: AWAY
preset_2_mode: HEAT
preset_2_target_temperature_low: "19 °C"
# preset_2_target_temperature_high: "19 °C"
preset_3_name: BOOST
preset_3_mode: HEAT
preset_3_target_temperature_low: "23 °C"
# preset_3_target_temperature_high: "24 °C"
visual_min_temperature: "10 °C"
visual_max_temperature: "30 °C"
visual_temperature_step: "0.1 °C"
check_interval: "16min"
bemf_trigger_initial_value: "0.105"
tanh_steepness: "0.70"
## do not change :
bemf_sensor_adc: BEMF_5_6_sensor_ADC
bemf_linked_with_channel: 5
sn74hc595_IA_pin: 10
sn74hc595_IB_pin: 11
channel_7: !include
file: heating_channel_tanh.yaml
vars:
channel_number: 7
id: bedroom
frendly_name: bedroom
temperature_sensor: bedroom_temperature_sensor
default_preset: HOME
preset_1_name: HOME #ECO, AWAY, BOOST, COMFORT, HOME, SLEEP, ACTIVITY
preset_1_mode: HEAT #OFF, AUTO, HEAT, COOL, HEAT, FAN_ONLY, DRY
preset_1_target_temperature_low: "18 °C" #ASHRAE studies recommend 21°C with a band of 2°C which result in 90% occupant acceptability
# preset_1_target_temperature_high: "20 °C"
preset_2_name: AWAY
preset_2_mode: HEAT
preset_2_target_temperature_low: "18 °C"
# preset_2_target_temperature_high: "19 °C"
preset_3_name: BOOST
preset_3_mode: HEAT
preset_3_target_temperature_low: "19 °C"
# preset_3_target_temperature_high: "24 °C"
visual_min_temperature: "10 °C"
visual_max_temperature: "30 °C"
visual_temperature_step: "0.1 °C"
check_interval: "17min"
bemf_trigger_initial_value: "0.105"
tanh_steepness: "0.70"
## do not change :
bemf_sensor_adc: BEMF_7_8_sensor_ADC
bemf_linked_with_channel: 8
sn74hc595_IA_pin: 12
sn74hc595_IB_pin: 13
channel_8: !include
file: heating_channel_tanh.yaml
vars:
channel_number: 8
id: bathroom
frendly_name: bathroom
temperature_sensor: bathroom_temperature_sensor
default_preset: HOME
preset_1_name: HOME #ECO, AWAY, BOOST, COMFORT, HOME, SLEEP, ACTIVITY
preset_1_mode: HEAT #OFF, AUTO, HEAT, COOL, HEAT, FAN_ONLY, DRY
preset_1_target_temperature_low: "22 °C" #ASHRAE studies recommend 21°C with a band of 2°C which result in 90% occupant acceptability
# preset_1_target_temperature_high: "24 °C"
preset_2_name: AWAY
preset_2_mode: HEAT
preset_2_target_temperature_low: "20 °C"
# preset_2_target_temperature_high: "19 °C"
preset_3_name: BOOST
preset_3_mode: HEAT
preset_3_target_temperature_low: "24 °C"
# preset_3_target_temperature_high: "25 °C"
visual_min_temperature: "10 °C"
visual_max_temperature: "30 °C"
visual_temperature_step: "0.1 °C"
check_interval: "18min"
bemf_trigger_initial_value: "0.105"
tanh_steepness: "0.70"
## do not change :
bemf_sensor_adc: BEMF_7_8_sensor_ADC
bemf_linked_with_channel: 7
sn74hc595_IA_pin: 14
sn74hc595_IB_pin: 15
board: !include board_esp32.yaml
# board: !include board_esp32-C3.yaml
logger: !include logger.yaml
sn74hc595: !include sn74hc595.yaml
wifi: !include wifi.yaml
time: !include time.yaml
script_calibrate_valves: !include script_calibrate_valves.yaml
switch_others: !include switch_others.yaml
inputs: !include inputs.yaml
sensor_adc: !include sensor_adc.yaml
sensor_temperature: !include sensor_temperature.yaml
sensor_others: !include sensor_others.yaml
# onwire: !include onewire.yaml