This is an integration for recent La Marzocco espresso machines that use WiFi to connect to the cloud and can be controlled via the La Marzocco mobile app. This capability was rolled out in late 2019, and La Marzocco supposedly offers a retrofit kit to add it to earlier models. This repo started as fork for https://github.com/rccoleman/lamarzocco, but with the release of La Marzocco's Gateway V3 in 2023 became the new default.
Based on the investigation from Plonx on the Home Assistant forum here, this integration presents a comprehensive machine status through several entities and allows the user to change the machine configuration from Home Assistant.
This integration can communicate to the machine through Bluetooth, in which case some of the commands (e.g. turning on/off) are not sent through the cloud. If your server doesn't have a bluetooth interface, or is not close enough to your machine ESPHome's Bluetooth Proxies are a very good solution.
This integration opens a WebSocket connection to your machine to stream information. In case you are encountering any issues, for example with the official app connecting, you can disable the WebSocket connections in the integration's settings.
A companion Lovelace card that uses this integration to retrieve data and control the machine can be found here.
This integration currently only supports a single espresso machine. It's possible to support multiple machines, but I only have one and I suspect that'll be the case for most folks. If anyone has a fleet of espresso machines and is willing to provide data and feedback, We're happy to entertain adding support for more than one machine.
This integration is compatible with HACS, which means that you can easily download and manage updates for it.
Click the button below to add it to your HACS installation
or add the repo to HACS manually:
- Launch the HACS panel from the left sidebar
- Click "Integrations`
- Click the three dots in the top right corner
- Click "Add custom repository"
- Add the link to this repo (
https://github.com/zweckj/lamarzocco
) - Click "Explore & Download Repositories"
- Install "La Marzocco"
If you don't have HACS installed or would prefer to install manually.
- Create a
config/custom_comoponents
directory if it doesn't already exist - Clone this repo and move
lamarzocco
intoconfig/custom_components
. Your directory tree should look likeconfig/custom_components/lamarzocco/...files...
Click the following button to set up this integration in Home Assistant.
Alternatively, you may add the integration manually.
- Navigate to Settings->Devices & Services
- Hit the "+ Add Integration" button in the lower-right
- Search for "La Marzocco" and select it
- You'll be presented with a dialog box like this:
- Fill in the info
- Hit "Submit"
Once you configured the integration, you should see this in Configuration->Integrations:
In Dev->States, you should see several new entities, with your machine model dictating which ones:
water_heater.<machine_name>_coffee
water_heater.<machine_name>_steam
sensor.<machine_name>_total_drinks
binary_sensor.<machine_name>_water_reservoir
switch.<machine_name>_main
switch.<machine_name>_auto_on_off
switch.<machine_name>_prebrew
switch.<machine_name>_preinfusion
button.<machine_name>_start_backflush
switch.<machine_name>_steam_boiler_enable
Thw switches control their respective functions globally, i.e., enable/disable auto on/off for the whole machine, enable/disable prebrewing for all front-panel keys.
The water_heater
and switch
entities support the standard services for those domains, described here and here, respectively.
The following domain-specific services are also available (model-dependent):
Enable or disable auto on/off for a specific day of the week.
Service data attribute | Optional | Description |
---|---|---|
day_of_week |
no | The day of the week to enable (sun, mon, tue, wed, thu, fri, sat) |
enable |
no | Boolean value indicating whether to enable or disable auto on/off, e.g. "on" or "off" |
Set the auto on and off times for each day of the week.
Service data attribute | Optional | Description |
---|---|---|
day_of_week |
no | The day of the week to enable (sun, mon, tue, wed, thu, fri, sat) |
hour_on |
no | The hour to turn the machine on (0..23) |
minute_on |
yes | The minute to turn the machine on (0..59) |
hour_off |
no | The hour to turn the machine off (0..23) |
minute_off |
yes | The minute to turn the machine off (0..59) |
Sets the dose for a specific key.
Service data attribute | Optional | Description |
---|---|---|
key |
no | The key to program (1-5) |
pulses |
no | The dose in pulses (roughly ~0.5ml per pulse), e.g. 120 |
Sets the dose for hot water.
Service data attribute | Optional | Description |
---|---|---|
seconds |
no | The number of seconds to stream hot water, e.g. 8 |
Set the prebrewing "on" and "off" times for a specific key.
Service data attribute | Optional | Description |
---|---|---|
key |
no | The key to program (1-4) |
seconds_on |
no | The time in seconds for the pump to run during prebrewing (0-5.9s) |
seconds_off |
no | The time in seconds for the pump to stop during prebrewing (0-5.9s) |
Set the preinfusion time for a specific key.
Service data attribute | Optional | Description |
---|---|---|
key |
no | The key to program (1-4) |
seconds |
no | The time in seconds for preinfusion (0-24.9s) |
NOTE: The machine won't allow more than one device to connect at once, so you may need to wait to allow the mobile app to connect while the integration is running. The integration only maintains the connection while it's sending or receiving information and polls every 30s, so you should still be able to use the mobile app.
If you have any questions or find any issues, either file them here or post to the thread on the Home Assistant forum here.