Roomba vacuum integration gets stuck

I have a roomba connected to my home assistant. For a few months it was working with no issues. I had an automation running for the vacuum to clean the house once a day when no one was at home. One day the vacuum integration crashed as soon as the robot was done cleaning and returning to its dock. The integration doesn’t update the current state anymore and the roomba cannot be controlled in any way through home assistant. However, when I restart home assistant, the robot shows up again as idle and I can control it again. The automation runs fine again, but as soon as the robot is moving to the dock again it crashes and not controllable anymore.
Anyone had the same experience and has a solution for this?


edit: I found this log at the exact moment the roomba was done cleaning

Logger: root
Source: /usr/src/homeassistant/homeassistant/bootstrap.py:318
First occurred: 7:31:18 (1 occurrences)
Last logged: 7:31:18

Uncaught thread exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 3452, in _thread_main
    self.loop_forever(retry_first_connection=True)
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1779, in loop_forever
    rc = self.loop(timeout, max_packets)
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1181, in loop
    rc = self.loop_read(max_packets)
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1574, in loop_read
    return self._loop_rc_handle(rc)
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 2227, in _loop_rc_handle
    self._do_on_disconnect(rc, properties)
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 3360, in _do_on_disconnect
    self.on_disconnect(self, self._userdata, rc)
TypeError: _internal_on_disconnect() missing 1 required positional argument: 'rc'

If memory serves, you cannot use any other integration, including the mobile Roomba app, when trying to talk to the Roomba. I suspect it has to do with auth keys. You might verify that your phones and tablets don’t have the app open.

I think you can still use the app, but you may have to close it for the HA integration to work again.

Either that or your Roomba may have developed an issue. I haven’t had any issues thus far with mine.

1 Like

I will try this, thanks!

Didn’t work unfortunately. Any other ideas here?

I kept updating my Home Assistant and since last week my Roomba integration is working properly again. Probably this update fixed it for me.
I’m currently running Home Assistant OS 5.12 and core-2021.2.3.