home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.02k stars 31.05k forks source link

Cannot add iRobot j7 #128478

Closed KlaraJa closed 1 week ago

KlaraJa commented 1 month ago

The problem

I cannot add my iRobot Roomba j7. The integration is telling me the password is incorrect, but it is exactly the string both romba980 and dorita980 provide me. And I always double check if the App is closed on my phone.

It worked before in April, but I had to factory reset my robot and now it won't work.

What version of Home Assistant Core has the issue?

core-2024.10.2

What was the last working version of Home Assistant Core?

core-2024.4.X

What type of installation are you running?

Home Assistant OS

Integration causing the issue

iiRobot Roomba and Braava

Link to integration documentation on our website

https://www.home-assistant.io/integrations/roomba/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: roombapy.remote_client
Source: /usr/local/lib/python3.12/site-packages/roombapy/remote_client.py:95
First occurred: 17:58:26 (12 occurrences)
Last logged: 21:18:56

Can't connect to 192.168.178.151
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/roombapy/remote_client.py", line 93, in connect
    self._open_mqtt_connection()
  File "/usr/local/lib/python3.12/site-packages/roombapy/remote_client.py", line 121, in _open_mqtt_connection
    self.mqtt_client.reconnect()
  File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1044, in reconnect
    sock = self._create_socket_connection()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
    return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/socket.py", line 853, in create_connection
    raise exceptions[0]
  File "/usr/local/lib/python3.12/socket.py", line 838, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

-------------------

Logger: roombapy.remote_client
Source: /usr/local/lib/python3.12/site-packages/roombapy/remote_client.py:100
First occurred: 17:58:26 (4 occurrences)
Last logged: 21:18:56

Unable to connect to 192.168.178.151

-------------------

Logger: roombapy.roomba
Source: /usr/local/lib/python3.12/site-packages/roombapy/roomba.py:195
First occurred: 17:58:26 (4 occurrences)
Last logged: 21:18:56

Unexpectedly disconnected from Roomba 192.168.178.151, code The connection was lost

-------------------

Logger: roombapy.roomba
Source: /usr/local/lib/python3.12/site-packages/roombapy/roomba.py:168
First occurred: 17:58:26 (4 occurrences)
Last logged: 21:18:56

Periodic connection lost due to Unable to connect to Roomba at 192.168.178.151

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @pschmitt, @cyr-ius, @shenxn, @xitee1, @orhideous, mind taking a look at this issue as it has been labeled with an integration (roomba) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `roomba` 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 roomba` 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)


roomba documentation roomba source (message by IssueLinks)

jonzarecki commented 1 month ago

I seem to have a similar issue, here are my logs (Roomba 960)

2024-10-24 00:03:17.959 DEBUG (SyncWorker_19) [roombapy.remote_client] Setting TLS certificate
2024-10-24 00:03:17.962 DEBUG (SyncWorker_19) [roombapy.roomba] PERIODIC connection
2024-10-24 00:03:17.969 DEBUG (MainThread) [homeassistant.components.roomba] Initialize connection to vacuum
2024-10-24 00:03:17.970 INFO (roombapy) [roombapy.remote_client] Connecting to 192.168.68.111, attempt 1 of 3
2024-10-24 00:03:21.358 DEBUG (Thread-40 (_thread_main)) [roombapy.remote_client] Connected to Roomba 192.168.68.111, response code = 0
2024-10-24 00:03:21.358 INFO (Thread-40 (_thread_main)) [roombapy.roomba] Connecting to Roomba 192.168.68.111
2024-10-24 00:03:21.362 DEBUG (Thread-40 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8ccd60>
2024-10-24 00:03:21.375 DEBUG (Thread-40 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cfa00>
2024-10-24 00:03:21.375 DEBUG (Thread-40 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8ccd60>
2024-10-24 00:03:21.375 DEBUG (Thread-40 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8ccd60>
2024-10-24 00:03:21.375 DEBUG (Thread-40 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8ccd60>
2024-10-24 00:03:21.427 DEBUG (Thread-40 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cfca0>
2024-10-24 00:03:21.488 DEBUG (Thread-40 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc190>
2024-10-24 00:03:21.488 DEBUG (Thread-40 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8ccc80>
2024-10-24 00:03:21.491 DEBUG (Thread-40 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc190>
2024-10-24 00:03:21.555 DEBUG (Thread-40 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc190>
2024-10-24 00:03:21.558 DEBUG (Thread-40 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc190>
2024-10-24 00:03:21.818 DEBUG (Thread-40 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc190>
2024-10-24 00:03:21.947 DEBUG (Thread-40 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc190>
2024-10-24 00:03:22.040 INFO (roombapy) [roombapy.remote_client] Connecting to 192.168.68.111, attempt 1 of 3
2024-10-24 00:03:22.348 ERROR (roombapy) [roombapy.remote_client] Can't connect to 192.168.68.111
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/roombapy/remote_client.py", line 93, in connect
self._open_mqtt_connection()
File "/usr/local/lib/python3.12/site-packages/roombapy/remote_client.py", line 121, in _open_mqtt_connection
self.mqtt_client.reconnect()
File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1044, in reconnect
sock = self._create_socket_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/socket.py", line 853, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.12/socket.py", line 838, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
2024-10-24 00:03:22.355 INFO (roombapy) [roombapy.remote_client] Connecting to 192.168.68.111, attempt 2 of 3
2024-10-24 00:03:22.359 ERROR (roombapy) [roombapy.remote_client] Can't connect to 192.168.68.111
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/roombapy/remote_client.py", line 93, in connect
self._open_mqtt_connection()
File "/usr/local/lib/python3.12/site-packages/roombapy/remote_client.py", line 121, in _open_mqtt_connection
self.mqtt_client.reconnect()
File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1044, in reconnect
sock = self._create_socket_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/socket.py", line 853, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.12/socket.py", line 838, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
2024-10-24 00:03:22.360 INFO (roombapy) [roombapy.remote_client] Connecting to 192.168.68.111, attempt 3 of 3
2024-10-24 00:03:25.717 DEBUG (Thread-41 (_thread_main)) [roombapy.remote_client] Connected to Roomba 192.168.68.111, response code = 0
2024-10-24 00:03:25.717 INFO (Thread-41 (_thread_main)) [roombapy.roomba] Connecting to Roomba 192.168.68.111
2024-10-24 00:03:25.720 DEBUG (Thread-41 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d39ee30>
2024-10-24 00:03:25.730 DEBUG (Thread-41 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc3c0>
2024-10-24 00:03:25.730 DEBUG (Thread-41 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d39ee30>
2024-10-24 00:03:25.730 DEBUG (Thread-41 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d39ee30>
2024-10-24 00:03:25.733 DEBUG (Thread-41 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d39ee30>
2024-10-24 00:03:25.778 DEBUG (Thread-41 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d39ee30>
2024-10-24 00:03:25.778 DEBUG (Thread-41 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d39ee30>
2024-10-24 00:03:25.803 DEBUG (Thread-41 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8ce490>
2024-10-24 00:03:25.820 DEBUG (Thread-41 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d39ee30>
2024-10-24 00:03:25.891 DEBUG (Thread-41 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d39ee30>
2024-10-24 00:03:25.924 DEBUG (Thread-41 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d39ee30>
2024-10-24 00:03:26.158 DEBUG (Thread-41 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d39ee30>
2024-10-24 00:03:26.270 DEBUG (Thread-41 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d39ee30>
2024-10-24 00:03:26.435 INFO (roombapy) [roombapy.remote_client] Connecting to 192.168.68.111, attempt 1 of 3
2024-10-24 00:03:26.526 ERROR (roombapy) [roombapy.remote_client] Can't connect to 192.168.68.111
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/roombapy/remote_client.py", line 93, in connect
self._open_mqtt_connection()
File "/usr/local/lib/python3.12/site-packages/roombapy/remote_client.py", line 121, in _open_mqtt_connection
self.mqtt_client.reconnect()
File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1044, in reconnect
sock = self._create_socket_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/socket.py", line 853, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.12/socket.py", line 838, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
2024-10-24 00:03:26.527 INFO (roombapy) [roombapy.remote_client] Connecting to 192.168.68.111, attempt 2 of 3
2024-10-24 00:03:27.970 DEBUG (MainThread) [homeassistant.components.roomba] Disconnect vacuum
2024-10-24 00:03:27.970 DEBUG (MainThread) [homeassistant.components.roomba] Timeout expired:
2024-10-24 00:03:29.787 DEBUG (Thread-42 (_thread_main)) [roombapy.remote_client] Connected to Roomba 192.168.68.111, response code = 0
2024-10-24 00:03:29.787 INFO (Thread-42 (_thread_main)) [roombapy.roomba] Connecting to Roomba 192.168.68.111
2024-10-24 00:03:29.793 DEBUG (Thread-42 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc4a0>
2024-10-24 00:03:29.804 DEBUG (Thread-42 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc120>
2024-10-24 00:03:29.805 DEBUG (Thread-42 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc4a0>
2024-10-24 00:03:29.807 DEBUG (Thread-42 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc4a0>
2024-10-24 00:03:29.813 DEBUG (Thread-42 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc4a0>
2024-10-24 00:03:29.856 DEBUG (Thread-42 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc4a0>
2024-10-24 00:03:29.857 DEBUG (Thread-42 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc4a0>
2024-10-24 00:03:29.872 DEBUG (Thread-42 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc120>
2024-10-24 00:03:29.918 DEBUG (Thread-42 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc4a0>
2024-10-24 00:03:29.958 DEBUG (Thread-42 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc4a0>
2024-10-24 00:03:30.000 DEBUG (Thread-42 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc4a0>
2024-10-24 00:03:30.234 DEBUG (Thread-42 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc4a0>
2024-10-24 00:03:30.350 DEBUG (Thread-42 (_thread_main)) [roombapy.roomba] Received message from 192.168.68.111: <paho.mqtt.client.MQTTMessage object at 0x7f304d8cc4a0>
2024-10-24 00:03:30.537 DEBUG (Thread-42 (_thread_main)) [roombapy.remote_client] Disconnected from Roomba 192.168.68.111, reason code = 0
2024-10-24 00:03:30.537 INFO (Thread-42 (_thread_main)) [roombapy.roomba] Disconnected from Roomba 192.168.68.111
KlaraJa commented 1 week ago

I don't know why, but I just tried it out of curiosity again. And it just worked.

As there are other Issues with similar problems, I will close this.