core: Roborock not finding device, errors in log

The problem

I started the integration, authenticated with roborock apis, but no devices are shown in the integration. I can see it in the app.

What version of Home Assistant Core has the issue?

core-2023.7.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

config_entry-roborock-5c895a301175e9454280a57d421c11e8.json.txt home-assistant_roborock_2023-07-27T19-09-39.196Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
8:58:05 PM – (ERROR) /usr/local/lib/python3.11/site-packages/roborock/api.py

Error doing job: Task exception was never retrieved
6:33:59 PM – (ERROR) components/roborock/sensor.py - message first occurred at 6:33:32 PM and shows up 2 times

Error doing job: Task exception was never retrieved
6:33:59 PM – (ERROR) components/roborock/select.py - message first occurred at 6:33:32 PM and shows up 2 times

Error doing job: Task exception was never retrieved
6:33:59 PM – (ERROR) components/roborock/vacuum.py - message first occurred at 6:33:32 PM and shows up 2 times

Error setting up entry tommy.lynge@gmail.com for roborock
12:45:21 PM – (ERROR) components/roborock/__init__.py

Timeout fetching Roborock S5 Max data
9:01:36 AM – (ERROR) Xiaomi Miio - message first occurred at 3:01:35 AM and shows up 3 times

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 51 (15 by maintainers)

Most upvoted comments

I’m still having the same issue and I’m on 2023.8.3… Same as the other users - same LAN as HA, never used Mi Home, Roborock app just works.

I was previously using the custom integration before switching to the new native integration (I still miss the map). It was working fine until recently when it dropped off…

In the meantime it still hasn’t come back despite reloading + deleting/reinstalling the integration. It just times out…

Log:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 388, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/roborock/__init__.py", line 45, in async_setup_entry
    network_results = await asyncio.gather(
                      ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 489, in get_networking
    return await self.send_command(RoborockCommand.GET_NETWORK_INFO, return_type=NetworkInfo)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 389, in send_command
    response = await self._send_command(method, params)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/roborock/cloud_api.py", line 207, in _send_command
    return await self.send_message(roborock_message)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/roborock/cloud_api.py", line 185, in send_message
    (response, err) = await async_response
                      ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 321, in _wait_response
    raise RoborockTimeout(f"id={request_id} Timeout after {QUEUE_TIMEOUT} seconds") from None
roborock.exceptions.RoborockTimeout: id=12176 Timeout after 4 seconds

Pretty sure it’s the same problem…

Thanks!

😃

It works, it found my vacuum and sends commands. Thanks.

Thanks that sent me in the right direction. I didn’t do a full version bump on the core integration, I was one version behind in my bump of the underlying api package. The core integration should be fixed in 2023.8.3 now.

This hsould hopefully be fixed in 2023.8.2 once it comes out

I had the same problem, i found the solution. Just deleted it from the xiaomi mi home app and then refresh the integration. then everything shows up.