Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roborock Setup Failed #117529

Open
sillvva opened this issue May 16, 2024 · 6 comments
Open

Roborock Setup Failed #117529

sillvva opened this issue May 16, 2024 · 6 comments

Comments

@sillvva
Copy link

sillvva commented May 16, 2024

The problem

My Roborock integration started failing to connect. I tried reloading the integration, which usually fixes it, but no luck.

When I try to uninstall and re-setup the Roborock integration, I'm getting Failed Setup. The app on my phone is loading and I can see my vacuum, but the integration is giving errors.

When setting up, I entered my email address and the code that was sent to it.

What version of Home Assistant Core has the issue?

core-2024.5.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Roborock

Anything in the logs that might be useful for us?

When I setup the Roborock integration, I'm getting Failed Setup. The app on my phone is loading and I can see my vacuum, but the integration is giving the following errors in my logs:

[details="Error setting up entry 'email' for roborock"]
Logger: homeassistant.config_entries
Source: config_entries.py:575
First occurred: May 14, 2024 at 2:54:12 AM (1 occurrences)
Last logged: May 14, 2024 at 2:54:12 AM

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 575, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/roborock/__init__.py", line 38, in async_setup_entry
    home_data = await api_client.get_home_data(user_data)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/roborock/web_api.py", line 201, in get_home_data
    home_id = await self._get_home_id(user_data)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/roborock/web_api.py", line 181, in _get_home_id
    home_id_response = await home_id_request.request(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/roborock/web_api.py", line 304, in request
    return await resp.json()
           ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1176, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://usiot.roborock.com/api/v1/getHomeDetail')
[/details]

[details="Failed to connect (Unknown error.)"]
Logger: roborock.cloud_api
Source: /usr/local/lib/python3.12/site-packages/roborock/cloud_api.py:66
First occurred: May 13, 2024 at 6:29:40 AM (79145 occurrences)
Last logged: 7:56:30 PM
[/details]

[details="A network protocol error occurred when communicating with the broker."]
Logger: roborock.cloud_api
Source: /usr/local/lib/python3.12/site-packages/roborock/api.py:87
First occurred: May 13, 2024 at 6:29:40 AM (79145 occurrences)
Last logged: 7:56:30 PM
[/details]

[details="Not setting up Roborock S8 Pro Ultra because we could not get the network information of the device. Please confirm it is online and the Roborock servers can communicate with it"]
Logger: homeassistant.components.roborock
Source: components/roborock/__init__.py:120
integration: Roborock ([documentation](https://www.home-assistant.io/integrations/roborock), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+roborock%22))
First occurred: May 13, 2024 at 6:29:40 AM (898 occurrences)
Last logged: 7:59:07 PM
[/details]

Additional information

No response

@home-assistant
Copy link

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)

@sillvva
Copy link
Author

sillvva commented May 16, 2024

I was able to get it working again after downgrading HA Core to 2024.4.4

ha core update --version 2024.4.4

@clau-bucur
Copy link
Contributor

Having the same issue, running 2024.5.4.

@sillvva
Copy link
Author

sillvva commented May 21, 2024

@Lash-L @humbertogontijo any ideas? I already tried uninstalling and reinstalling the integration. The only thing that worked for me was downgrading HA Core to 2024.4.4, but I don't want to stay out-of-date. Will there be a fix?

@eos-mfassonge
Copy link

I have the same problem since 2 days - my HA is 2024.5.5

@labtecs
Copy link

labtecs commented May 29, 2024

I am also affected by this error

Core 2024.5.5
Supervisor 2024.05.1
Operating System12.3
Frontend 20240501.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants