1
+ # This is the configuration, I've put on the board.
2
+ # If you apply voltage to it, the green LED D! serves as status led2
3
+ # usually blinking with around 1 Hz. If you press button USER 1, it will
4
+ # toggle green led D2.
5
+ # To upload a new firmware, search for the "Fallback Hotspot" WiFi and
6
+ # log in with password "Z8zfajgxVvNw". It could take up to a minute for
7
+ # the fallack AP to be enabled when not able to connect to the "test"
8
+ # wifi network. So, if status is blinking, give it a minute to show up.
1
9
substitutions :
2
- name : km271-for-friends-21c160
3
- packages :
4
- the78mole.km271-wifi : github://the78mole/esphome_components/components/km271_wifi/km271-for-friends.yaml@main
10
+ name : " km271-for-friends"
11
+
5
12
esphome :
6
- name : ${name}
7
- name_add_mac_suffix : false
13
+ name : " ${name}"
14
+ # Automatically add the mac address to the name
15
+ # so you can use a single firmware for all devices
16
+ name_add_mac_suffix : true
17
+
18
+ platformio_options :
19
+ upload_speed : 921600
20
+ # board_build.f_flash: 80000000L
21
+ # board_build.partitions: "default_8MB.csv
22
+ # upload_flash_size: "8MB"
23
+
24
+ # This will allow for (future) project identification,
25
+ # configuration and updates.
26
+ project :
27
+ name : the78mole.km271-wifi
28
+ version : " 1.0"
29
+
30
+ esp32 :
31
+ board : esp32dev
32
+ framework :
33
+ type : arduino
34
+
35
+ # Enable logging
36
+ logger :
37
+
38
+ # Enable Home Assistant API
8
39
api :
9
- encryption :
10
- key : ___redacted___
40
+
41
+ ota :
42
+ platform : esphome
43
+ # password: "xxx"
11
44
12
45
wifi :
13
- ssid : !secret wifi_ssid
14
- password : !secret wifi_password
46
+ # ssid: "test"
47
+ # password: "testtest"
48
+
49
+ # Enable fallback hotspot (captive portal) in case wifi connection fails
50
+ ap :
51
+ ssid : " Fallback Hotspot"
52
+ password : " Z8zfajgxVvNw"
53
+
54
+ dashboard_import :
55
+ package_import_url : github://the78mole/esphome_components/components/km271_wifi/km271-for-friends.yaml@main
56
+
57
+ captive_portal :
58
+ # keep_user_credentials: true
59
+
60
+ uart :
61
+ id : uart_bus
62
+ tx_pin : GPIO2
63
+ rx_pin : GPIO4
64
+ baud_rate : 2400
65
+
66
+ external_components :
67
+ # - source:
68
+ # type: local
69
+ # path: my_components/components
70
+ # components: [ km271_wifi ]
71
+ - source : github://the78mole/esphome_components@main
72
+ components : [ km271_wifi ]
73
+
74
+ esp32_improv :
75
+ authorizer : improvble
76
+ authorized_duration : 120s
77
+ status_indicator : led3
78
+ identify_duration : 60s
79
+
80
+ improv_serial :
81
+
82
+
83
+ status_led :
84
+ id : ledgn1
85
+ pin :
86
+ number : GPIO21
87
+ inverted : true
88
+
89
+ km271_wifi :
90
+ - id : budoil
91
+ uart_id : uart_bus
15
92
16
93
binary_sensor :
17
94
- platform : gpio
@@ -24,6 +101,14 @@ binary_sensor:
24
101
input : true
25
102
pullup : true
26
103
104
+ # Above is all the "give-away hardware suggestion stuff"
105
+ # It is the place for cleanup of to reduce flash footprint, like:
106
+ # improv, captive portal, dashboard_import,...)
107
+ # #################################################################
108
+
109
+ # #################################################################
110
+ # Below is the real examle stuff
111
+
27
112
- platform : km271_wifi
28
113
# Betriebswerte 1 HC1
29
114
heating_circuit_1_switch_off_optimization :
@@ -176,25 +261,44 @@ binary_sensor:
176
261
177
262
178
263
264
+
179
265
output :
180
266
- platform : gpio
181
267
id : led3
182
268
# name: LED3_Yellow
183
- pin :
269
+ pin :
184
270
number : 23
185
271
mode : OUTPUT
186
272
inverted : true
187
273
- platform : gpio
188
274
id : led4
189
275
# name: LED4_Red
190
- pin :
276
+ pin :
191
277
number : 25
192
278
mode : OUTPUT
193
279
inverted : true
194
280
195
281
button :
196
282
- platform : restart
197
283
name : " KM271-WiFi Restart"
284
+ - platform : template
285
+ name : " KM271 WW-Bereitung Aus"
286
+ on_press :
287
+ - lambda :
288
+ uint8_t command[] = {0x0C, 0x0E, 0x00, 0x65, 0x65, 0x65, 0x65, 0x65};
289
+ budoil->writer.enqueueTelegram(command, 8);
290
+ - platform : template
291
+ name : " KM271 WW-Bereitung Ein"
292
+ on_press :
293
+ - lambda :
294
+ uint8_t command[] = {0x0C, 0x0E, 0x01, 0x65, 0x65, 0x65, 0x65, 0x65};
295
+ budoil->writer.enqueueTelegram(command, 8);
296
+ - platform : template
297
+ name : " KM271 WW-Bereitung Auto"
298
+ on_press :
299
+ - lambda :
300
+ uint8_t command[] = {0x0C, 0x0E, 0x02, 0x65, 0x65, 0x65, 0x65, 0x65};
301
+ budoil->writer.enqueueTelegram(command, 8);
198
302
199
303
200
304
number :
@@ -340,7 +444,6 @@ sensor:
340
444
boiler_runtime_2 :
341
445
name : " Burner Runtime 2"
342
446
343
-
344
447
- platform : wifi_signal
345
448
name : " KM217 WiFi Signal Sensor"
346
449
update_interval : 60s
@@ -353,18 +456,18 @@ sensor:
353
456
update_interval : 5s
354
457
attenuation : 6dB
355
458
filters :
356
- - multiply : 3.3125
459
+ - multiply : 28.1826
357
460
- throttle_average : 60s
358
-
461
+
359
462
switch :
360
463
- platform : gpio
361
464
name : LED2_Green
362
- pin :
465
+ pin :
363
466
number : 22
364
467
mode : OUTPUT
365
468
inverted : true
366
469
367
470
text_sensor :
368
471
- platform : km271_wifi
369
472
firmware_version :
370
- name : " Firmware Version Control"
473
+ name : " Firmware Version Control"
0 commit comments