-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbsh-dbus-was28443.yaml
278 lines (263 loc) · 7.32 KB
/
bsh-dbus-was28443.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
#
# bsh-dbus-was28443.yaml -- Interface B/S/H/ washing machine WAS28443 (Bosch Logixx 8 VarioPerfect)
#
# This file has been contributed by
# (C) 2024 Stefan Hirt
# https://github.com/stefanhirt
#
# (C) 2024 Hajo Noerenberg
#
# Usage: Connect D-Bus DATA pin to pin D1 (GPIO5)
#
# http://www.noerenberg.de/
# https://github.com/hn/bsh-home-appliances
#
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3.0 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/gpl-3.0.txt>.
#
esphome:
name: bsh-dbus-was28443
friendly_name: BSH washing machine WAS28443
external_components:
- source: github://hn/bsh-home-appliances@master
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret api_encryption_key
ota:
- platform: esphome
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Dirty workaround because the machine's power supply unit cannot provide enough current:
output_power: 10.5dB
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "D-Bus-Was28443 Fallback Hotspot"
password: !secret wifi_ap_password
captive_portal:
uart:
id: dbus_uart
rx_pin: GPIO14
baud_rate: 9600
bshdbus:
uart_id: dbus_uart
binary_sensor:
- platform: bshdbus
dest: 0x14
command: 0x1007
binary_sensors:
- id: bsh_wm_feat_waterplus
name: Spülen Plus
icon: mdi:water-plus
lambda: return (x[0] >> 4) & 0x01;
- id: bsh_wm_feat_speedplus
#needs improvement, if Eco Perfect is enabled it should return false
name: Speed Perfect
icon: mdi:clock-fast
lambda: return (x[0] >> 6) & 0x01;
filters:
- lambda: |
if (x == false) return true;
else return false;
- id: bsh_wm_feat_stains
name: Eco Perfect
icon: mdi:leaf
lambda: return (x[0] >> 5) & 0x01;
- id: bsh_wm_feat_prewash
name: Vorwäsche
icon: mdi:rotate-orbit
lambda: return (x[0] >> 7) & 0x01;
- id: bsh_wm_feat_anticrease
name: Bügelleicht
icon: mdi:iron
lambda: return (x[1] >> 7) & 0x01;
- platform: bshdbus
dest: 0x15
command: 0x1100
binary_sensors:
- id: bsh_wm_start_button
name: Startknopf
icon: mdi:button-pointer
lambda: return 1;
on_press:
- delay: 1s
- lambda: id(bsh_wm_start_button).publish_state(NAN);
- platform: bshdbus
dest: 0x26
command: 0x1701
binary_sensors:
- id: bsh_wm_program_started
name: Waschprogramm gestarted
entity_category: diagnostic
icon: mdi:ray-start-arrow
lambda: return 1;
on_press:
- delay: 1s
- lambda: id(bsh_wm_program_started).publish_state(NAN);
sensor:
- platform: bshdbus
dest: 0x14
command: 0x1006
sensors:
- id: bsh_wm_rpm
name: Umdrehungen
device_class: speed
state_class: measurement
unit_of_measurement: rpm
accuracy_decimals: 0
lambda: return x[0];
filters:
- multiply: 10
- lambda: |
if (x > 1300) return 1400;
else return x;
- platform: bshdbus
dest: 0x17
command: 0x4010
sensors:
- id: bsh_wm_unbalance_x
name: Unwucht X
entity_category: diagnostic
icon: mdi:axis-x-rotate-clockwise
accuracy_decimals: 0
lambda: return (int16_t) ((x[1] << 8) | x[2]);
filters:
- throttle: 30s
- timeout: 90s
- id: bsh_wm_unbalance_z
name: Unwucht Z
entity_category: diagnostic
icon: mdi:axis-z-rotate-clockwise
accuracy_decimals: 0
lambda: return (int16_t) ((x[3] << 8) | x[4]);
filters:
- throttle: 30s
- timeout: 90s
- id: bsh_wm_unbalance_y
name: Unwucht Y
entity_category: diagnostic
icon: mdi:axis-y-rotate-clockwise
accuracy_decimals: 0
lambda: return (int16_t) ((x[5] << 8) | x[6]);
filters:
- throttle: 30s
- timeout: 90s
- platform: bshdbus
dest: 0x2a
command: 0x1600
sensors:
- id: bsh_wm_remain
name: Restzeit
device_class: duration
state_class: measurement
unit_of_measurement: min
accuracy_decimals: 0
lambda: return x[0];
text_sensor:
- platform: bshdbus
dest: 0x14
command: 0x1005
text_sensors:
- id: bsh_wm_program
name: Waschprogramm
icon: mdi:numeric
lambda: return std::to_string(x[2]);
filters:
- map:
- 0 -> Aus
- 1 -> Koch/Bunt
- 2 -> Koch/Bunt + Vorwäsche
- 3 -> Pflegeleicht
- 4 -> Pflegeleicht + Vorwäsche
- 5 -> Schnell/Mix
- 6 -> Fein/Seide
- 7 -> Wolle
- 8 -> Spülen
- 9 -> Schleudern
- 10 -> Abpumpen
- 11 -> Sanft Schleudern
- 12 -> Extra Kurz 15'
- 13 -> Sensitive
- 14 -> Sportswear
- 15 -> Pflegeleicht Plus
- platform: bshdbus
dest: 0x26
command: 0x1200
text_sensors:
- id: bsh_wm_door
name: Tür
icon: mdi:door
lambda: return std::to_string(x[0]);
filters:
- map:
- 0 -> Zu und nicht verriegelt
- 1 -> Zu und verriegelt
- 2 -> Offen
- platform: bshdbus
dest: 0x14
command: 0x1004
text_sensors:
- id: bsh_wm_temperature
name: Temperatur
icon: mdi:thermometer
lambda: return std::to_string(x[0]);
filters:
- map:
- 0 -> kalt
- 1 -> 20°C
- 2 -> 30°C
- 3 -> 40°C
- 4 -> 60°C
- 7 -> 90°C
- platform: bshdbus
dest: 0x26
command: 0x1020
text_sensors:
- id: bsh_wm_washmodule
name: Waschprogramm Modul
entity_category: diagnostic
icon: mdi:map-marker-path
lambda: return std::to_string(x[0]);
filters:
- map:
- 3 -> Waschmittel einspülen (3)
- 4 -> Wassereinlauf (4)
- 5 -> Aufheizen (5)
- 6 -> Walken (6)
- 9 -> Abpumpen / Schleudern (9)
- 13 -> Spülen (13)
- 15 -> Abpumpen / Schleudern (15)
- 16 -> Spülen (16)
- 20 -> Abpumpen / Schleudern (20)
- 23 -> Spülen (23)
- 26 -> Endschleudern (26)
- 28 -> Auflockern (28)
- platform: bshdbus
dest: 0x26
command: 0x1101
text_sensors:
- id: bsh_wm_state
name: Status
icon: mdi:state-machine
lambda: return std::to_string(x[0]);
filters:
- map:
- 0 -> Angehalten/Bereit
- 1 -> Fertig
- 2 -> Läuft