10000 Roborock integration causes repeated InvalidStateError and increasing lag after ~24 h uptime · Issue #145998 · home-assistant/core · GitHub
[go: up one dir, main page]

Skip to content
Roborock integration causes repeated InvalidStateError and increasing lag after ~24 h uptime #145998
@dustnppunkt

Description

@dustnppunkt

The problem

After running Home Assistant for roughly 24 hours, the entire system becomes extremely sluggish. Actions that normally respond instantly—such as pressing a button to start Sonos playback—take several seconds to execute. Restarting Home Assistant temporarily fixes the latency for about a day, but the same issue returns after another 24 hours.

In the logs, the Roborock integration consistently throws the following errors and warnings, which appear every few seconds:

2025-06-01 15:17:33.100 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback RoborockFuture._set_result() (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.13/site-packages/roborock/roborock_future.py", line 19, in _set_result
self.fut.set_result(item)
^^^^^^^^^^^^^^^^^^^^^^^^^
asyncio.exceptions.InvalidStateError: invalid state

2025-06-01 15:18:32.962 WARNING (MainThread) [roborock.version_1_apis.roborock_local_client_v1] [Dobby] Attempting to create a future with an existing id 2 (3). New id is 37988. Code may not function properly.

These entries keep repeating and seem to overload the event loop, probably causing Home Assistant to slow down over time. After a restart, these log entries disappear for a certain time but after roughly 24 hours (maybe less but after 24 hr it becomes noticeable) start appearing again.

What version of Home Assistant Core has the issue?

core-2025.5.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-973d03edfdccd73b27c52952fa14faea.json

Example YAML snippet

Anything in the logs that might be useful for us?

> 2025-06-01 15:17:33.100 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback RoborockFuture._set_result() (None)
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.13/site-packages/roborock/roborock_future.py", line 19, in _set_result
>     self.fut.set_result(item)
>     ^^^^^^^^^^^^^^^^^^^^^^^^^
> asyncio.exceptions.InvalidStateError: invalid state

> 2025-06-01 15:18:32.962 WARNING (MainThread) [roborock.version_1_apis.roborock_local_client_v1] [Dobby] Attempting to create a future with an existing id 2 (3). New id is 37988. Code may not function properly.

Additional information

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0