Reading a Westinghouse top loader's own data bus with an ESP32
Three wires on my washer's panel board let Home Assistant see minutes left, wash stage, programme, lid and errors. It only listens.

- Difficulty
- Advanced
- Parts cost
- About A$20: XIAO ESP32-C3 ~A$15, two resistors and a capacitor, wire. Logic analyser ~A$10 if your model differs
- Build time
- An afternoon, if your washer speaks the same bus as mine
- Skills
- Soldering, ESPHome, Multimeter
The problem
My laundry setup worked out the washer’s state from a power-metering plug and a reed switch on the lid. It got “running” and “done” right most of the time, but it was guessing from watts. It couldn’t say how long was left, what stage it was in, or whether the machine had stopped with an error.

Mine is a Westinghouse WWT8084J7WA, made by Electrolux. It has no Wi-Fi and no app, so there’s no ready-made integration. But it does have a small display that shows minutes left, so the front panel must be getting that from somewhere.
Before I probed anything I went looking. Electrolux, AEG, Zanussi and Westinghouse machines use a serial link between the front panel and the main board that Electrolux calls MACS (also DAAS). Someone had already decoded it on a front loader and written an ESPHome component for it. My top loader turned out to speak the same bus, with a few differences, and the whole thing was working the same afternoon.
How it works
The panel and the main board share one data wire and take turns talking on it, at 9600 baud (a slow, simple serial link). The panel says what the user picked: programme, spin speed, Start, Pause. The main board answers with what the machine is doing: state, wash stage, minutes left, lid, errors.
The ESP32 is tapped onto that wire through two resistors, which drop the 5 V signal to about 3 V. It has no transmit pin in its config, so it only listens. Nothing is cut and nothing is sent. The washer can’t tell it’s there, and if the ESP32 dies the washer carries on exactly as before.
This is the opposite of my dishwasher, where the ESP32 sits in the line so it can press Start. A washer full of water is not something I want Home Assistant starting or stopping on its own, so listening is all this one does.
What’s on the bus
This is for my model. Yours may differ.
The line idles at 0 V (it’s inverted compared with most serial links), runs 9600 baud with 8 data
bits, even parity and 1 stop bit, and every message is acknowledged with 98 CC CC.
Every message looks like C9 + to + from + length + the data + a check byte. The check byte is all
the bytes before it XORed together. The main board is address 21, the front panel 2A.
Here’s my first capture, decoded: switching on, turning the dial, and pressing Start.
6.330s PANEL -> MAIN 51 00 7D 00 00 power on
6.403s MAIN -> PANEL 52 00 03 04 20 08 10 40 00 state: finished (last load), lid open
6.455s PANEL -> MAIN 50 03 01 10 02 01 00 00 80 ... programme 12 (Full Load), spin 800
15.452s PANEL -> MAIN 51 00 61 dial turned (to Fast)
15.623s MAIN -> PANEL 56 03 00 00 14 20 minutes
21.882s PANEL -> MAIN 51 00 60 00 00 1B 03 Start
21.929s MAIN -> PANEL 52 00 02 02 00 00 10 40 00 state: running, stage: wash
81.678s MAIN -> PANEL 56 03 00 00 13 19 minutes
Counting from 0 at the first data byte (the message type):
| Type | From | Byte | Meaning |
|---|---|---|---|
52 |
Main board | [2] | State: 1 idle, 2 running, 3 finished, 4 paused, 8 delayed start, 9 error, 11 standby. I’ve seen 1, 2, 3 and 11 on mine; the rest are from the front-loader notes. |
52 |
Main board | [3] | Wash stage (see below) |
52 |
Main board | [5] | Flags. 08 = lid open, on mine, while the panel is on. In standby it reads 08 whatever the lid is doing. |
56 |
Main board | [3]–[4] | Minutes left. FFFF = display off |
57 |
Main board | [2] | Error. 00 = none. On the front loader the E-code is this byte minus 1; mine hasn’t thrown one yet. |
50 |
Panel | [3] | Spin speed ÷ 50 (08 = 400 rpm, 10 = 800 rpm) |
50 |
Panel | [12] | Programme number (table below) |
51 |
Panel | [2] | Command: 7D power on, 61 dial turned, 60 Start |
Wash stages (byte [3] of 52): 0 when idle, then 2, 3 and 4 through a load. On my first
full wash (Full Load) it was 2 for the first 23 minutes, 3 for the next 9, and 4 for the last 15
until it finished. I read them as wash, rinse and spin, which matches the front-loader notes. A top
loader also drains and spins between stages, so take the names loosely.
Programme numbers on mine, matched to the dial:
| No. | Programme | No. | Programme |
|---|---|---|---|
| 1 | Dirty | 7 | Eco Save |
| 2 | Extra Dirty | 8 | Bedding |
| 3 | Spin | 9 | Delicate |
| 4 | Rinse and Spin | 10 | Fast |
| 5 | Machine Clean | 11 | Daily |
| 6 | Stain | 12 | Full Load |
What it can’t see. A few minutes after a load finishes, the washer switches itself off. From then on the bus carries nothing but a heartbeat every 3 seconds: no state, and no lid. So a lid lifted after that is invisible to the bridge. I kept a Zigbee door sensor on the lid for exactly that (see the lessons).
There’s also a heartbeat (5F) from the main board every few seconds, and a wake-up and software-ID
exchange (10, 11) once a minute while the panel is on. Mine reports software UCE0L002, which
matches the sticker on the board.
What you need
- Seeed XIAO ESP32-C3 with its stick-on antenna (about A$15). The console is plastic, but the machine under it is a steel box full of water, so I used the external antenna.
- 4.7 kΩ and 8.2 kΩ resistors for the divider.
- 470 µF 16 V capacitor across the ESP32’s 5 V and GND.
- Thin hookup wire and heatshrink.
- A multimeter.
- Only if your washer isn’t the same model: a logic analyser. Mine is a cheap 24 MHz 8-channel one, about A$10. On another model you’ll want to confirm the bus before you trust a decoder.
Opening the washer and soldering to its panel board will very likely void the warranty. Make that call before you start.
Wiring

The panel board on mine is an Electrolux EUI21C10. The blue-and-white ribbon is the plug to the main board, and its four pins are copied onto a row of solder pads on the edge of the board. That’s the tap. It means nothing gets cut and the plug stays as it came.

The four pads, measured on mine with the washer on:
| Pad | Signal |
|---|---|
| 1 | +12 V (not used) |
| 2 | +5 V |
| 3 | Data |
| 4 | 0 V |
Meter it yourself before you solder: unplugged, check continuity from each pad to the main-board plug, then plugged in (carefully, see the safety box), measure 5 V and 12 V against the 0 V pad. On mine there’s an unpopulated 4-pin footprint nearby, marked J12, that looked like a second bus connector. It isn’t connected to the bus.
To the XIAO (use the labels printed on the board: D2 is GPIO4, D4 is not):
pad 3 Data ──[ 4.7k ]──┬── D2 (GPIO4)
│
[ 8.2k ] 5 V on the bus → about 3.1 V at the pin
│
pad 4 0 V ─────────────┴── GND
pad 2 +5 V ─────────────── 5V 470 µF 16 V across 5V and GND at the XIAO, stripe to GND
The ESP32 runs straight off the panel’s 5 V. It’s held through a whole wash with no resets. If yours ever browns out, the 12 V pad through a small buck regulator is the fallback.
Firmware and config
ESPHome, with the Electrolux MACS component
copied into a components folder next to the YAML. I patched it in two ways:
- One setting (
motor_drum_ratio) gets a default, so it can be left out of the YAML. - My top loader’s state message is laid out differently from the front loader it was written for, so
I added the raw state code, phase code and flags as sensors, and a Lid Open binary
sensor from bit
08of the flags. The front loader’s door-lock, temperature and delay fields are left out, because they don’t line up on mine.
The main part of the patch, in the component’s state handler:
case MACS_MESSAGE_TYPE_STATE:
if (this->state_code_sensor_) this->state_code_sensor_->publish_state(data[2]);
if (this->phase_code_sensor_ && data.size() > 3) this->phase_code_sensor_->publish_state(data[3]);
if (this->state_flags_sensor_ && data.size() > 5) this->state_flags_sensor_->publish_state(data[5]);
// in standby the lid bit always reads 08, so only trust it while the panel is on
if (this->lid_open_binary_sensor_ && data.size() > 5 && data[2] != MACS_APPLIANCE_STATE_STANDBY)
this->lid_open_binary_sensor_->publish_state((data[5] & 0x08) != 0);
The key part of the ESPHome config. The full file is in the downloads.
uart:
id: uart_macs
rx_pin:
number: GPIO4 # XIAO label D2 (NOT D4)
inverted: true # the bus idles at 0 V
mode: INPUT
baud_rate: 9600
parity: EVEN
rx_buffer_size: 512
# no tx_pin: it never sends
electrolux_washing_machine_macs:
uart_id: uart_macs
sensor:
- platform: electrolux_washing_machine_macs
remaining_time:
name: "Minutes Left"
unit_of_measurement: min
selected_program_number:
name: "Program Number"
id: program_no
spin_speed:
name: "Spin Speed"
unit_of_measurement: rpm
state_code:
name: "State Code"
phase_code:
name: "Phase Code"
state_flags:
name: "State Flags"
binary_sensor:
- platform: electrolux_washing_machine_macs
powered_on:
name: "Panel On"
running:
name: "Running"
lid_open:
name: "Lid Open"
text_sensor:
- platform: template # the dial name, from the table above
name: "Program"
update_interval: 2s
lambda: |-
if (std::isnan(id(program_no).state)) return {};
switch ((int) id(program_no).state) {
case 1: return std::string("Dirty");
case 12: return std::string("Full Load");
// ...the rest of the table; the full list is in the download
default: return std::string("Program ") + std::to_string((int) id(program_no).state);
}
- platform: electrolux_washing_machine_macs
active_alarm:
name: "Error Code"
The component also has total hours and a cycle count. On my machine those never came through, so they’re left out.
Home Assistant
This replaces the power-plug version of the washer automation from my
laundry guide. It uses the same input_select.washer_state dropdown
(Idle, Running, Done), the same “emptied” event and the same Zigbee lid sensor,
binary_sensor.washer_door, so the dashboards don’t change. The difference
is that it goes by what the washer itself says, not by watts.
# automations.yaml
- id: laundry_washer
alias: "Laundry: washer running → done → emptied"
mode: queued
triggers:
- trigger: template
value_template: "{{ states('sensor.washer_state_code') | float(0) | int in [2, 4] }}"
id: start
- trigger: template
value_template: "{{ states('sensor.washer_state_code') | float(0) | int == 3 }}"
id: done
- trigger: template
value_template: "{{ states('sensor.washer_state_code') | float(0) | int in [1, 11] }}"
id: abort
# the bridge sees the lid while the panel is on...
- trigger: state
entity_id: binary_sensor.washer_lid_open
from: "off"
to: "on"
id: emptied
# ...and the Zigbee sensor covers it once the washer has switched itself off
- trigger: state
entity_id: binary_sensor.washer_door
from: "off"
to: "on"
id: emptied
- trigger: event
event_type: laundry_emptied
event_data:
machine: washer
id: emptied
- trigger: homeassistant
event: start
id: boot
actions:
- choose:
# Running (2) or paused (4)
- conditions:
- condition: or
conditions:
- condition: trigger
id: start
- condition: and
conditions:
- condition: trigger
id: boot
- condition: template
value_template: "{{ states('sensor.washer_state_code') | float(0) | int in [2, 4] }}"
sequence:
- action: input_select.select_option
target:
entity_id: input_select.washer_state
data:
option: Running
# Finished (3)
- conditions:
- condition: or
conditions:
- condition: trigger
id: done
- condition: and
conditions:
- condition: trigger
id: boot
- condition: state
entity_id: input_select.washer_state
state: Running
- condition: template
value_template: "{{ states('sensor.washer_state_code') | float(0) | int == 3 }}"
sequence:
- action: input_select.select_option
target:
entity_id: input_select.washer_state
data:
option: Done
# Lid lifted (or the Emptied button) after it finished
- conditions:
- condition: trigger
id: emptied
- condition: state
entity_id: input_select.washer_state
state: Done
sequence:
- action: input_select.select_option
target:
entity_id: input_select.washer_state
data:
option: Idle
# Cancelled: back to idle (1) or standby (11) without finishing
- conditions:
- condition: or
conditions:
- condition: trigger
id: abort
- condition: trigger
id: boot
- condition: state
entity_id: input_select.washer_state
state: Running
- condition: template
value_template: "{{ states('sensor.washer_state_code') | float(0) | int in [1, 11] }}"
sequence:
- action: input_select.select_option
target:
entity_id: input_select.washer_state
data:
option: Idle
The boot trigger matters. A template trigger only fires when its answer changes, so if Home
Assistant restarts mid-wash it would never see the start. On start-up it looks at the state code and
catches up.
Lifting the lid only counts as “emptied” while the washer says Done. Lift it mid-wash to throw in a sock and nothing changes in Home Assistant.
Downloads
- washer.yaml: the full ESPHome config.
- washer-component-patch.diff: my changes to
the MACS component. Copy its
componentsfolder next to the YAML, then runpatch -p1 < washer-component-patch.diffinside that folder. - wm_decode.py: decodes a raw logic-analyser capture of the bus (Python with numpy). It prints every message that changes, with its meaning where known.
- capture.sh: records a capture with
sigrok-cliand a cheap fx2lafw analyser at 1 MHz.
Step by step
- Unplug the washer at the wall. Read the safety box again.
- Flash the XIAO over USB now, on the bench, connected to nothing else. Check it joins Wi-Fi and shows up in Home Assistant. From here on, updates go over Wi-Fi.
- Build the divider and solder the capacitor across the XIAO’s 5V and GND.
- Take the back off the control console to get at the panel board. On mine the board sits in a white plastic frame in the console.
- Find the main-board plug and the pads that copy it. Meter them unplugged first.
- Solder three wires: data to the divider, 5 V and 0 V to the XIAO. Leave the 12 V pad alone.
- Insulate every join, and fix the XIAO and its antenna where nothing moves and nothing can short against the board.
- Close up and plug the washer in. Don’t touch the ESP32 with USB again.
- In Home Assistant, turn the washer on at the panel and watch Panel On come on and State Code change, then work through the tests below.
If it ever plays up, pull its three wires off the pads, or just leave them. A dead ESP32 on the bus is invisible, and the washer is exactly as it came.
Testing it

- The bus is real. My first logic-analyser capture decoded at 9600 baud, even parity, inverted, with 524 bytes, 43 messages and 43 acknowledgements, and no parity, stop-bit or checksum errors. If you get lots of errors, the baud rate, parity or polarity is wrong.
- Lid. With the panel on, Lid Open follows the lid within a second. With the washer off it
can’t (see “What it can’t see”), and the firmware holds the last state. I proved the bit by watching the raw flags byte go
08with the lid up and00with it down, next to the Zigbee lid sensor flipping at the same moment. - Programme and spin. Turning the dial changes Program Number and Minutes Left straight away. Full Load (12) came up as 60 minutes at 800 rpm, and Program shows the dial’s name.
- A whole wash. From Start, State Code went from 1 (idle) to 2 (running), Phase Code went 2, 3, 4, and at the end State Code went to 3 (finished) and Home Assistant’s dropdown went from Running to Done in the same second. Minutes Left counted down a minute at a time in the wash, then faster than the clock in the rinse. The programme showed 60 minutes at the start and took 46, so the washer re-estimates as it goes. Error Code stayed empty.
- Power. Watch Uptime and Reset Reason through a whole wash. Uptime should only go up. On mine it ran straight through with no resets.
Lessons learnt
Look before you probe. Before I put a meter on anything, I went reading, and found that Electrolux’s MACS bus was already known, with a working ESPHome component. My machine is a newer top loader than the one it was written for, so I still checked it with a logic analyser, but I knew what I was looking for before I opened the panel.
Same bus, different messages. The front-loader decode lays the state message out differently from
mine. On mine, none of its door bits moved when I lifted the lid. I added the raw
flags byte as a sensor, lifted the lid a few times, and bit 08 was the one that followed it.
I took the lid sensor off too early. Once the bridge could see the lid, I unpaired the Zigbee sensor on it. Then I found the washer switches itself off a few minutes after it finishes, and from then on the bus says nothing about the lid, so coming back to the load later would never count as emptied. Worse, the last message before it goes quiet says the lid is open whatever it’s doing, which would have marked a full load as emptied with nobody near it. The bridge now ignores the lid bit in standby, and the Zigbee sensor went back on the same evening. Test the case where nobody’s around, not just the one where you’re standing at the machine.
The obvious spare connector wasn’t one. The front-loader notes say these boards often have a second bus connector, and mine has an empty 4-pin footprint (J12) near the main plug. The meter said it isn’t connected. The pads on the edge of the board were.
Old log sessions block new ones. The ESP32 only takes a handful of connections at once. Home
Assistant uses one, and every esphome logs window I’d left open held another. Once they were used
up, a new log session connected and silently showed nothing. Close old log windows before you open
another.
Questions and comments
Loading comments…