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)
Good news and bad news:
2025.3.4patch release this Friday (no promises)I’m cautiously optimistic the shot timer will return at some, but it will take time, they added a complete new API
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
I can’t tell yet, depends on how much time I’ll have.
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.
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
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.