core: La Marzocco v5.0.9 gateway update causes exceptions for multiple machine models

The problem

I just updated to the new gateway firmware v5.0.9 on my GS/3 AV and I’m getting the following exception over and over in my HA log:

2025-03-18 09:18:07.236 ERROR (MainThread) [homeassistant.components.lamarzocco.coordinator] Unexpected error fetching lamarzocco data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 380, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/lamarzocco/coordinator.py", line 72, in _async_update_data
    await self._internal_async_update_data()
  File "/usr/src/homeassistant/homeassistant/components/lamarzocco/coordinator.py", line 126, in _internal_async_update_data
    await self.device.get_config()
  File "/usr/local/lib/python3.13/site-packages/pylamarzocco/devices/base.py", line 130, in get_config
    self.parse_config(raw_config)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/pylamarzocco/devices/machine.py", line 136, in parse_config
    parse_preinfusion_settings(raw_config)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/pylamarzocco/helpers.py", line 94, in parse_preinfusion_settings
    parsed[PhysicalKey(i)] = LaMarzoccoPrebrewConfiguration(
           ~~~~~~~~~~~^^^
  File "/usr/local/lib/python3.13/enum.py", line 726, in __call__
    return cls.__new__(cls, value)
           ~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/enum.py", line 1199, in __new__
    raise ve_exc
ValueError: 5 is not a valid PhysicalKey

My machine has four “dose” buttons + continuous/flush + tea and the preinfusion settings in the app only apply to the first 4, so I’m not sure what it’s doing with “5” now (no longer zero-based?). This gateway goes along with a new, more modern-looking mobile app (at least for iOS).

What version of Home Assistant Core has the issue?

core-2025.3.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

La Marzocco

Link to integration documentation on our website

https://www.home-assistant.io/integrations/lamarzocco/

Diagnostics information

home-assistant_lamarzocco_2025-03-18T16-23-43.056Z.log

Example YAML snippet


Anything in the logs that might be useful for us?

See stack trace above.

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 4
  • Comments: 39 (12 by maintainers)

Most upvoted comments

Good news and bad news:

  • I have a PR ready that should bring the integration into a working state again and hope it will be shipped in the 2025.3.4 patch release this Friday (no promises)
  • However, the shot timer and brew active sensors will be missing from this release (for any updated machines) as La Marzocco decided to remove the local interface we were using. I can’t tell yet, if they will make a return in the future

I’m cautiously optimistic the shot timer will return at some, but it will take time, they added a complete new API

I have reached out to La Marzocco for clarification, will let you know if something comes out of the enquiry.

They will just tell you it’s not supported/they don’t have interest in supporting 3rd party systems. Your story can’t be „you’re breaking 3rd party integrations“, but rather „you are requiring internet for my very expensive device to work“, which is the part which worries me personally.

Please don’t comment „not working for me too“, that’s not adding value, we know it’s broken

Well that’s a downer. Will the switch to the new cloud API come any time soon or more like at some point? Thank you guys for all the work 😃

I can’t tell yet, depends on how much time I’ll have.

It does not prompt for an IP address, as some others have mentioned in similar issues. I’m using the same login credentials that work perfectly in the La Marzocco official app.

The integration is still using the old discovery, which is not yet optimized for machines without local access and won’t work. Dismiss the discovery and set it up manually.

The other thing is that I’m not sure that accounts created in the new app will currently work with the integration.

hi sorry but i am a bit confused reading the thread. do we lose shot timer and brewing active entities from here on? i need them for my automation . thank you

yes, at least until we switch to the new cloud APIs (and even then it won’t be as precise as before)

Okay, the new reality is grimmer than I thought. Thanks for clarifying.

I have a linea mini updated with the new firmware and everything works except the following entities are listed as unavailable;

brewing_active prebrew_off_time prebrew_on_time preinfusion_time shot_timer

Can you pull the config json from the local endpoint?

I’m trying to remember how to do that 😃. I think I was using port 8081 before and the machine is now refusing connections on that port.