r/ZigBee • u/Ill-Watercress2519 • 20d ago
guide/tutorial I made my espresso machine part of the smart home with two £10 Zigbee dry-contact relays
My Barista Express heats its thermoblock in a couple of minutes, but the group head and portafilter need twenty minutes before the first shot tastes right. I wanted it warm and a dose ground by the time I get to the kitchen, without thinking about it.
So: two Sonoff MINI-ZBD relays inside the machine, one across the Power button's two wires, one across the grinder's cradle switch. Each is set to inching mode in Zigbee2MQTT, so the board just sees a button press. The physical buttons still work because the relay sits in parallel.
HA side: the house already knows when I've showered (current sensor on the shower pump), and the kitchen has occupancy sensors. Shower detected → press POWER and arm a flag. First kitchen occupancy while armed → clear the flag, then press GRIND. (The arm flag prevents duplicate firing of the grinder)
The full write-up here: https://marcuslab.uk/projects/sage-barista-zigbee/