Skip to content

Commit c9e8d5c

Browse files
authored
Update buderus-km271_en.yaml
Updated the english for-friends-YAML
1 parent 9d74d11 commit c9e8d5c

File tree

1 file changed

+119
-16
lines changed

1 file changed

+119
-16
lines changed

buderus-km271_en.yaml

Lines changed: 119 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,94 @@
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.
19
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+
512
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
839
api:
9-
encryption:
10-
key: ___redacted___
40+
41+
ota:
42+
platform: esphome
43+
# password: "xxx"
1144

1245
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
1592

1693
binary_sensor:
1794
- platform: gpio
@@ -24,6 +101,14 @@ binary_sensor:
24101
input: true
25102
pullup: true
26103

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+
27112
- platform: km271_wifi
28113
# Betriebswerte 1 HC1
29114
heating_circuit_1_switch_off_optimization:
@@ -176,25 +261,44 @@ binary_sensor:
176261

177262

178263

264+
179265
output:
180266
- platform: gpio
181267
id: led3
182268
#name: LED3_Yellow
183-
pin:
269+
pin:
184270
number: 23
185271
mode: OUTPUT
186272
inverted: true
187273
- platform: gpio
188274
id: led4
189275
#name: LED4_Red
190-
pin:
276+
pin:
191277
number: 25
192278
mode: OUTPUT
193279
inverted: true
194280

195281
button:
196282
- platform: restart
197283
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);
198302

199303

200304
number:
@@ -340,7 +444,6 @@ sensor:
340444
boiler_runtime_2:
341445
name: "Burner Runtime 2"
342446

343-
344447
- platform: wifi_signal
345448
name: "KM217 WiFi Signal Sensor"
346449
update_interval: 60s
@@ -353,18 +456,18 @@ sensor:
353456
update_interval: 5s
354457
attenuation: 6dB
355458
filters:
356-
- multiply: 3.3125
459+
- multiply: 28.1826
357460
- throttle_average: 60s
358-
461+
359462
switch:
360463
- platform: gpio
361464
name: LED2_Green
362-
pin:
465+
pin:
363466
number: 22
364467
mode: OUTPUT
365468
inverted: true
366469

367470
text_sensor:
368471
- platform: km271_wifi
369472
firmware_version:
370-
name: "Firmware Version Control"
473+
name: "Firmware Version Control"

0 commit comments

Comments
 (0)