core
core copied to clipboard
Roborock integration not working for a while
The problem
The problem first started with the Roborock integration not working properly, it went on & off constantly but then it was always offline and when i removed it and re-added it it didnt work at all.
What version of Home Assistant Core has the issue?
core-2023.12.3
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
Roborock
Link to integration documentation on our website
https://www.home-assistant.io/integrations/roborock/
Diagnostics information
Home assistantt log: home-assistant_2023-12-27T00-48-19.932Z.log
Cannot provide integration log as i cannot add a config entry for it.
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.roborock.config_flow
Source: components/roborock/config_flow.py:93
Integration: Roborock (documentation, issues)
First occurred: 18:44:25 (1 occurrences)
Last logged: 18:44:25
wrong value type for field "rriot" - should be "roborock.containers.RRiot | None" instead of value "{'u': '25aNkAgNNEBzATBYTpaQPp', 's': 'igfb4B', 'h': 'snSXpiOQDO', 'k': 'Ifw7NGqd', 'r': {'r': 'EU', 'a': 'https://api-eu.roborock.com', 'm': 'ssl://mqtt-eu-4.roborock.com:8883', 'l': 'https://wood-eu.roborock.com'}}" of type "dict"
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/roborock/config_flow.py", line 93, in async_step_code
login_data = await self._client.code_login(code)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 695, in code_login
return UserData.from_dict(user_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/containers.py", line 93, in from_dict
return from_dict(cls, decamelize_obj(data, ignore_keys), config=Config(cast=[Enum]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dacite/core.py", line 68, in from_dict
raise WrongTypeError(field_path=field.name, field_type=field.type, value=value)
dacite.exceptions.WrongTypeError: wrong value type for field "rriot" - should be "roborock.containers.RRiot | None" instead of value "{'u': '25aNkAgNNEBzATBYTpaQPp', 's': 'igfb4B', 'h': 'snSXpiOQDO', 'k': 'Ifw7NGqd', 'r': {'r': 'EU', 'a': 'https://api-eu.roborock.com', 'm': 'ssl://mqtt-eu-4.roborock.com:8883', 'l': 'https://wood-eu.roborock.com'}}" of type "dict"
### Additional information
I already googled and found that this issue https://github.com/home-assistant/core/issues/101289 is related to it, i did have the govee integration installed with HACS, but i removed it, restarted HA and tried again but it didnt work. I also did the pip uninstall / install for dacite in [this comment](https://github.com/home-assistant/core/issues/101289#issuecomment-1766892874) and it didnt work.
### Related issues
#101289
Hey there @humbertogontijo, @lash-l, mind taking a look at this issue as it has been labeled with an integration (roborock
) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of roborock
can trigger bot actions by commenting:
-
@home-assistant close
Closes the issue. -
@home-assistant rename Awesome new title
Renames the issue. -
@home-assistant reopen
Reopen the issue. -
@home-assistant unassign roborock
Removes the current integration label and assignees on the issue, add the integration domain after the command. -
@home-assistant add-label needs-more-information
Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. -
@home-assistant remove-label needs-more-information
Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
roborock documentation roborock source (message by IssueLinks)
Integration is now working! thanks everyone that worked on this!