My irobot keeps loosing connection to hassio after a some time, usually about 20 - 60 minutes.
The log keeps spamming this:
2020-12-06 13:05:29 ERROR (Thread-386) [root] 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 1197, in loop
rc = self.loop_write(max_packets)
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1598, in loop_write
rc = self._packet_write()
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 2374, in _packet_write
self._do_on_disconnect(0)
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'
2020-12-06 13:05:41 ERROR (Thread-387) [root] 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 1197, in loop
rc = self.loop_write(max_packets)
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1598, in loop_write
rc = self._packet_write()
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 2374, in _packet_write
self._do_on_disconnect(0)
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'
2020-12-06 13:05:53 ERROR (Thread-388) [root] 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 1197, in loop
rc = self.loop_write(max_packets)
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1598, in loop_write
rc = self._packet_write()
File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 2374, in _packet_write
self._do_on_disconnect(0)
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'
2020-12-06 13:06:03 ERROR (Thread-389) [root] 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'
2020-12-06 13:06:06 ERROR (Thread-9) [roomba.roomba] Error: [Errno 111] Connection refused
2020-12-06 13:06:06 ERROR (Thread-9) [roomba.roomba] Error: [Errno 111] Connection refused
2020-12-06 13:06:06 ERROR (Thread-9) [roomba.roomba] Error: [Errno 111] Connection refused
2020-12-06 13:06:06 ERROR (Thread-9) [roomba.roomba] Unable to connect to 192.168.1.73
2020-12-06 13:06:06 ERROR (Thread-9) [root] 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/roomba/roomba.py", line 178, in periodic_connection
if self._connect():
File "/usr/local/lib/python3.8/site-packages/roomba/roomba.py", line 164, in _connect
raise RoombaConnectionError("Unable to connect to Roomba at {}".format(self.address))
roomba.roomba.RoombaConnectionError: Unable to connect to Roomba at 192.168.1.73
I have set up a ping monitor to the vacuum IP, it is stable and doesn’t loose connection at all.
If i restart hassio I can start the vacuum through hassio but it looses connectivity again after some time.
If I go into the integration and check or uncheck the “continuous” mode the connection gets established again for a short period.
Could this be related to the latest python update in the core?