此集成通过调用 La Marzocco 云 API 与 La Marzocco 咖啡机交互。

如果您的 Home Assistant 主机支持 DHCP 发现,您的咖啡机会被自动发现。否则,只要咖啡机处于 Home Assistant 主机的蓝牙范围内,且 Bluetooth 集成已完整加载,也同样可以被发现。

前提条件

  • 要在 Home Assistant 中配置您的咖啡机,必须先使用官方 La Marzocco 应用将其添加到您的账户中。
  • 仅支持使用用户名和密码登录。如果您当前使用的是社交账号登录,则需要创建新的 La Marzocco 账户,并将咖啡机转移到该账户下,才能使用此集成。
配置

此集成可通过 UI 配置。前往 设置 > 设备与服务 添加。

Username:
  description: "您用于登录 La Marzocco 应用的用户名。"
Password:
  description: "您用于登录 La Marzocco 应用的密码。"

选项

要为 La Marzocco 设置选项,请按以下步骤操作:

  1. In Home Assistant, go to Settings > Devices & services.

  2. If multiple instances of La Marzocco are configured, choose the instance you want to configure.

  3. On the card, select the cogwheel .

    • If the card does not have a cogwheel, the integration does not support options for this device.

    Screenshot showing the cogwheel icon on an integration card in the Settings > Devices & services page

  4. Edit the options, then select Submit to save the changes.

Use Bluetooth:
  description: Allows you to manually disable Bluetooth communication with the machine (if available). This can be used to avoid longer timeouts, e.g., when your machine is only sometimes in range.
Offline mode:
  description: Allows you to enable the offline mode manually. Requires use of Bluetooth. Also see [Data updates](#data-updates).

数据更新

默认情况下,此集成会从云端接收设备总体状态的推送更新。如果无法做到,它会每 15 秒向云端查询一次机器的一般信息更新,每 15 分钟查询一次新的统计数据,每 30 分钟查询一次更新后的日程安排,每 8 小时查询一次固件更新。

如果你的主机可以访问蓝牙适配器,且咖啡机在范围内,集成还可以通过蓝牙请求更新。如果网络不可用,或者你启用了 离线模式 选项,这个蓝牙模式会自动启动。 在 离线模式 下,大多数实体会变为不可用。只有下表(可用平台与实体)中标有 的实体仍然可用。在 离线模式 下,Home Assistant 会每 60 秒向你的咖啡机请求一次更新。

可用平台与实体

= La Marzocco Cloud = Bluetooth

按钮

Button nameDescriptionAvailable for machinesControllable through
Start backflushStarts the backflush process on your machine. You got 15 seconds to turn the paddle after activation.all

数值

Number nameDescriptionAvailable for machinesControllable throughRemarks
Coffee target temperatureTemperature the coffee boiler is set toall -
Steam target temperatureTemperature the steam boiler is set toGS3 AV, GS3 MP -
Smart standby timeTime until the machine will automatically stand by (if enabled)all-
Preinfusion timeDuration of preinfusionLinea Micra, Linea Mini, Linea Mini Ronly available when machine is in mode Preinfusion
Prebrew time onDuration which prebrew will be onLinea Micra, Linea Mini, Linea Mini Ronly available when machine is in mode Prebrew
Prebrew time offDuration which prebrew will waitLinea Micra, Linea Mini, Linea Mini Ronly available when machine is in mode Prebrew
Brew by weight Dose 1Weight when the machine will stop while being in Dose 1 for Brew by weightLinea Mini, Linea Mini Ronly available when machine is paired with a scale
Brew by weight Dose 2Weight when the machine will stop while being in Dose 2 for Brew by weightLinea Mini, Linea Mini Ronly available when machine is paired with a scale

开关

Switch nameDescriptionAvailable for machinesControllable through
MainAllows to turn machines on-/offall
Steam boilerAllows to enable/disable the steam boilerall
Smart standby enabledWhether smart standby is on (machine will automatically stand by after given time)all

二进制传感器

Binary sensor nameDescriptionAvailable for machinesRetrievable fromRemarks
Water tank emptyIndicates whether the water tank needs a refill.all-
Brewing activeIs on if you are in the process of making coffee.all-
Backflush enabledIs on if you started the backflushing process.all-
WebSocket connectedTrack your connection to the cloud WebSocket for real time updates.allDisabled by default.

传感器

Sensor nameDescriptionAvailable for machinesRetrievable fromRemarks
Coffee boiler ready timeIndicates when the coffee boiler will be ready for brewing.all-
Steam boiler ready timeIndicates when the steam boiler will be ready for brewing.all-
Brew start timeIf a brew is running, tells the exact start time of that brew.all-
Total coffees madeHow many coffees have been made in total.all-
Total flushes doneHow often the machine has been flushed.all-
Last cleaning timeIndicates when the machine was last cleaned with a Backflush.all-

更新

Update nameDescriptionAvailable for machinesRetrievable from
Gateway firmwareFirmware status of the gatewayall
Machine firmwareFirmware status of the machineall

选择项

Select nameDescriptionOptionsAvailable for machinesControllable through
Prebrew/-infusion modeWhether to use prebrew, preinfusion, or neitherDisabled, Prebrew, PreinfusionLinea Micra, Linea Mini, GS3 AV
Steam levelThe level your steam boiler should run at1,2,3Linea Micra, Linea Mini R
Smart standby modeThe smart standby mode, that decides from which events the timer to standby will run.Last brewing, Power onall
Brew by weight dose modeSelect the brew by weight mode of your machineContinuous, Dose 1, Dose 2Linea Mini, Linea Mini R

日历

此集成为咖啡机的自动开关机计划提供了一个日历实体。它只用于显示计划,不能直接通过日历修改计划。 该计划会以循环事件形式显示:如果你将机器设置为每周一 8:00 开机、9:00 关机,那么日历中会为所有周一显示对应事件。在某一天关闭自动开关机功能时,该天不会在日历中显示事件。另外,如果你全局禁用了自动开关机功能(例如通过 “Auto on/off” 开关),日历中也不会显示任何事件。

支持的设备

目前仅支持 “Home” 系列设备:

  • Linea Mini
  • Linea Mini R
  • Linea Micra
  • GS3 AV
  • GS3 MP

可能的使用场景

  • 通过语音控制咖啡机,无需打开应用即可快速调整锅炉温度。
  • 在开始萃取时控制智能咖啡秤(去皮/启动计时器)。
  • 在咖啡机萃取期间打开机器旁的灯光。

自动化

你可以从以下自动化示例开始。

机器开启时打开蒸汽锅炉

我经常早上喝奶咖、下午喝意式浓缩,但总会忘记重新打开蒸汽锅炉,因此这个自动化可确保机器开机时蒸汽锅炉也会一并开启。

YAML 配置示例
alias: Turn steamboiler on when machine is turned on
description: Ensure the steamboiler is on, when the machine gets turned on
triggers:
  - trigger: state
    entity_id:
      - switch.mr000000
    from: "off"
    to: "on"
conditions:
  - condition: state
    entity_id: switch.mr000000_steam_boiler
    state: "off"
actions:
  - action: switch.turn_on
    target:
      entity_id: switch.mr000000_steam_boiler
    data: {}
mode: single

已知限制

  • 仅支持 La Marzocco 原生应用账户,不支持社交账号登录(Google、Apple 和 WeChat)。
  • 目前只能查看在 La Marzocco Home 应用中配置的计划,无法在 Home Assistant 中直接编辑这些计划。当然,你仍然可以在 Home Assistant 中创建原生自动化来实现相同功能。

故障排除

问题:无法连接到咖啡机

请先检查 La Marzocco Home 应用中是否可以连接到你的咖啡机。如果也无法连接,请移除该咖啡机并重新添加(按照 La Marzocco 应用中的说明操作)。

删除集成

此集成遵循标准的集成删除流程,无需额外步骤。

从 Home Assistant 中移除集成实例

  1. 前往 设置 > 设备与服务 并选择该集成卡片。
  2. 在设备列表中,选择你要删除的集成实例。
  3. 在该条目旁选择三点 菜单,然后选择 删除