Migration Failed
The problem
After upgrading, I received the following issue. I also tried using a new user and confirmed it works with app and still receiving the below error:
Logger: homeassistant.components.lamarzocco Source: components/lamarzocco/init.py:195 integration: La Marzocco (documentation, issues) First occurred: 7:04:38 AM (1 occurrence) Last logged: 7:04:38 AM
Migration failed with error Invalid username or password
What version of Home Assistant Core has the issue?
core-2025.5.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
lamarzocco
Link to integration documentation on our website
No response
Diagnostics information
Logger: homeassistant.components.lamarzocco Source: components/lamarzocco/init.py:195 integration: La Marzocco (documentation, issues) First occurred: 7:04:38 AM (1 occurrence) Last logged: 7:04:38 AM
Migration failed with error Invalid username or password
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
Hey there @zweckj, mind taking a look at this issue as it has been labeled with an integration (lamarzocco) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of lamarzocco can trigger bot actions by commenting:
@home-assistant closeCloses the issue.@home-assistant rename Awesome new titleRenames the issue.@home-assistant reopenReopen the issue.@home-assistant unassign lamarzoccoRemoves the current integration label and assignees on the issue, add the integration domain after the command.@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue.@home-assistant remove-label needs-more-informationRemove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
lamarzocco documentation lamarzocco source (message by IssueLinks)
Are you on the new app/firmware? If yes delete the integration and set it up again
I got the same issue on core-2025.5.0 and core-2025.5.1, roll back to 2024. I
Keine Geräte oder Entitäten Einrichtungsfehler, wird erneut versucht: Field "widgets" of type list[Widget] in ThingDashboardConfig has invalid value [{'code': 'CMMachineStatus', 'index': 1, 'output': {'status': 'StandBy', 'availableModes': ['BrewingMode', 'StandBy'], 'mode': 'StandBy', 'nextStatus': None, 'brewingStartTime': None, 'lastCoffee': None, 'lastFlush': None, 'widget_type': 'CMMachineStatus'}, 'tutorialUrl': None}, {'code': 'CMCoffeeBoiler', 'index': 1, 'output': {'status': 'StandBy', 'enabled': True, 'enabledSupported': False, 'targetTemperature'
Keine Geräte oder Entitäten Einrichtungsfehler, wird erneut versucht: Field "widgets" of type list[Widget] in ThingDashboardConfig has invalid value [{'code': 'CMMachineStatus', 'index': 1, 'output': {'status': 'StandBy', 'availableModes': ['BrewingMode', 'StandBy'], 'mode': 'StandBy', 'nextStatus': None, 'brewingStartTime': None, 'lastCoffee': None, 'lastFlush': None, 'widget_type': 'CMMachineStatus'}, 'tutorialUrl': None}, {'code': 'CMCoffeeBoiler', 'index': 1, 'output': {'status': 'StandBy', 'enabled': True, 'enabledSupported': False, 'targetTemperature'
Mini R? I'll need that entire output of Field "widgets" of type list[Widget] in ThingDashboardConfig has invalid value please
I'm having the same issue with a Mini R. Firmware was updated and I re-installed the integration. Traceback:
Logger: homeassistant.components.lamarzocco.coordinator
Source: helpers/update_coordinator.py:380
integration: La Marzocco (documentation, issues)
First occurred: May 9, 2025 at 6:46:05 PM (2346 occurrences)
Last logged: 12:04:17 AM
Unexpected error fetching lamarzocco data
Traceback (most recent call last):
File "<string>", line 22, in __mashumaro_from_dict__
File "<string>", line 21, in __unpack_Widget_output__3b0444904d614d90be10e70cf25b5ec2
mashumaro.exceptions.SuitableVariantNotFoundError: pylamarzocco.models._general.BaseWidgetOutput has no subtype with attribute 'widget_type' equal to 'CMRinseFlush'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 97, in __mashumaro_from_dict__
File "<string>", line 24, in __mashumaro_from_dict__
mashumaro.exceptions.InvalidFieldValue: Field "output" of type BaseWidgetOutput in Widget has invalid value {'enabled': True, 'enabledSupported': True, 'timeSeconds': 4.0, 'timeSecondsMin': 2, 'timeSecondsMax': 8, 'timeSecondsStep': 1, 'widget_type': 'CMRinseFlush'}
During handling of the above exception, another exception occurred:
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 68, in _async_update_data
await self._internal_async_update_data()
File "/usr/src/homeassistant/homeassistant/components/lamarzocco/coordinator.py", line 93, in _internal_async_update_data
await self.device.get_dashboard()
File "/usr/local/lib/python3.13/site-packages/pylamarzocco/devices/_thing.py", line 37, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pylamarzocco/devices/_thing.py", line 106, in get_dashboard
self.dashboard = await self._cloud_client.get_thing_dashboard(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self.serial_number
^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/pylamarzocco/clients/_cloud.py", line 196, in get_thing_dashboard
return ThingDashboardConfig.from_dict(result)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "<string>", line 99, in __mashumaro_from_dict__
mashumaro.exceptions.InvalidFieldValue: Field "widgets" of type list[Widget] in ThingDashboardConfig has invalid value [{'code': 'CMMachineStatus', 'index': 1, 'output': {'status': 'PoweredOn', 'availableModes': ['BrewingMode', 'StandBy'], 'mode': 'BrewingMode', 'nextStatus': None, 'brewingStartTime': None, 'lastCoffee': None, 'lastFlush': None, 'widget_type': 'CMMachineStatus'}, 'tutorialUrl': None}, {'code': 'CMCoffeeBoiler', 'index': 1, 'output': {'status': 'Ready', 'enabled': True, 'enabledSupported': False, 'targetTemperature': 94.0, 'targetTemperatureMin': 80, 'targetTemperatureMax': 100, 'targetTemperatureStep': 0.1, 'readyStartTime': None, 'widget_type': 'CMCoffeeBoiler'}, 'tutorialUrl': None}, {'code': 'CMSteamBoilerLevel', 'index': 1, 'output': {'status': 'Ready', 'enabled': True, 'enabledSupported': True, 'targetLevel': 'Level3', 'targetLevelSupported': True, 'readyStartTime': None, 'widget_type': 'CMSteamBoilerLevel'}, 'tutorialUrl': None}, {'code': 'CMPreBrewing', 'index': 1, 'output': {'availableModes': ['PreBrewing', 'Disabled'], 'mode': 'Disabled', 'times': {'PreBrewing': [{'doseIndex': 'ByGroup', 'seconds': {'Out': 2.0, 'In': 2.0}, 'secondsMin': {'Out': 1, 'In': 1}, 'secondsMax': {'Out': 9, 'In': 9}, 'secondsStep': {'Out': 0.1, 'In': 0.1}}]}, 'doseIndexSupported': False, 'widget_type': 'CMPreBrewing'}, 'tutorialUrl': 'https://www.lamarzocco.com/it/en/app/support/brewing-features/#gs3-av-linea-micra-linea-mini-home'}, {'code': 'CMRinseFlush', 'index': 1, 'output': {'enabled': True, 'enabledSupported': True, 'timeSeconds': 4.0, 'timeSecondsMin': 2, 'timeSecondsMax': 8, 'timeSecondsStep': 1, 'widget_type': 'CMRinseFlush'}, 'tutorialUrl': None}, {'code': 'CMBackFlush', 'index': 1, 'output': {'lastCleaningStartTime': 1744496719086, 'status': 'Off', 'widget_type': 'CMBackFlush'}, 'tutorialUrl': 'http://lamarzocco.com/it/en/app/support/cleaning-and-backflush/#linea-mini-2023'}]
I'm having the same issue with a Mini R. Firmware was updated and I re-installed the integration. Traceback:
Yes, had no Mini R beta testers. Should be fixed in 2025.5.2 next Friday.
Woow, thank you Josef! I just send you an email with the error log, please ignore but please read the email for the beans :)
PS if you need Mini R beta Testers in the future, I would be happy to volunteer
Can someone confirm if this is now working correctly?
Unfortunately, it doesn’t work for me, I can’t get the device integrated even though the user data password is correct. It is also not a social media account. I also have the device newly integrated the app in HA does not work.
Protokoll
Logger: homeassistant.components.lamarzocco.config_flow Quelle: components/lamarzocco/config_flow.py:101 Integration: La Marzocco (Dokumentation, Probleme) Erstmals aufgetreten: 17. Mai 2025 um 18:33:31 (26 Vorkommnisse) Zuletzt protokolliert: 08:56:45
Error connecting to server: Request to endpoint https://cms.lamarzocco.io/oauth/v2/token failed with status code 400response: {"error":"invalid_grant","error_description":"Invalid username and password combination"}
Unfortunately, it doesn’t work for me, I can’t get the device integrated even though the user data password is correct.
Not really related to this issue, but you are definitely not using the latest core version. You either still have the custom integration installed or are running a HA prior to 2025.5
for me the update to Core 2025.5.2 works, love the new sensors. Great job thank you!