core icon indicating copy to clipboard operation
core copied to clipboard

Roomba Intergration - Unable to connect to Roomba

Open poelleke opened this issue 1 year ago • 48 comments

The problem

I am trying to add the Roomba integration. I had to find the password myself for this. but when I enter this I get the message that it cannot connect.

What version of Home Assistant Core has the issue?

core-2023.6.1

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

iRobot Roomba and Braava

Link to integration documentation on our website

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

Diagnostics information

2023-06-11 09:06:24.799 INFO (roombapy) [roombapy.remote_client] Connecting to 192.168.1.16, attempt 1 of 3 2023-06-11 09:06:25.585 INFO (Thread-1763 (_thread_main)) [roombapy.roomba] Connecting to Roomba 192.168.1.16 2023-06-11 09:06:25.585 ERROR (Thread-1763 (_thread_main)) [roombapy.roomba] Roomba 192.168.1.16 connection error, code Bad username or password 2023-06-11 09:06:25.586 WARNING (Thread-1763 (_thread_main)) [roombapy.roomba] Unexpectedly disconnected from Roomba 192.168.1.16, code Not authorised 2023-06-11 09:06:26.070 INFO (roombapy) [roombapy.remote_client] Connecting to 192.168.1.16, attempt 1 of 3 2023-06-11 09:06:27.368 INFO (Thread-1764 (_thread_main)) [roombapy.roomba] Connecting to Roomba 192.168.1.16 2023-06-11 09:06:27.368 ERROR (Thread-1764 (_thread_main)) [roombapy.roomba] Roomba 192.168.1.16 connection error, code Bad username or password 2023-06-11 09:06:27.369 WARNING (Thread-1764 (_thread_main)) [roombapy.roomba] Unexpectedly disconnected from Roomba 192.168.1.16, code Not authorised 2023-06-11 09:06:27.908 INFO (roombapy) [roombapy.remote_client] Connecting to 192.168.1.16, attempt 1 of 3 2023-06-11 09:06:29.173 INFO (Thread-1765 (_thread_main)) [roombapy.roomba] Connecting to Roomba 192.168.1.16 2023-06-11 09:06:29.173 ERROR (Thread-1765 (_thread_main)) [roombapy.roomba] Roomba 192.168.1.16 connection error, code Bad username or password 2023-06-11 09:06:29.174 WARNING (Thread-1765 (_thread_main)) [roombapy.roomba] Unexpectedly disconnected from Roomba 192.168.1.16, code Not authorised 2023-06-11 09:06:29.662 INFO (roombapy) [roombapy.remote_client] Connecting to 192.168.1.16, attempt 1 of 3 2023-06-11 09:06:31.581 INFO (roombapy) [roombapy.remote_client] Connecting to 192.168.1.16, attempt 1 of 3 2023-06-11 09:06:31.738 ERROR (roombapy) [roombapy.remote_client] Can't connect to 192.168.1.16, error: [Errno 111] Connection refused 2023-06-11 09:06:31.738 INFO (roombapy) [roombapy.remote_client] Connecting to 192.168.1.16, attempt 2 of 3 2023-06-11 09:06:31.741 ERROR (roombapy) [roombapy.remote_client] Can't connect to 192.168.1.16, error: [Errno 111] Connection refused 2023-06-11 09:06:31.741 INFO (roombapy) [roombapy.remote_client] Connecting to 192.168.1.16, attempt 3 of 3 2023-06-11 09:06:31.750 ERROR (roombapy) [roombapy.remote_client] Can't connect to 192.168.1.16, error: [Errno 111] Connection refused 2023-06-11 09:06:31.750 ERROR (roombapy) [roombapy.remote_client] Unable to connect to 192.168.1.16 2023-06-11 09:06:31.751 WARNING (roombapy) [roombapy.roomba] Unexpectedly disconnected from Roomba 192.168.1.16, code Unable to connect to Roomba at 192.168.1.16

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

poelleke avatar Jun 11 '23 07:06 poelleke

Hey there @pschmitt, @cyr-ius, @shenxn, 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.

(message by CodeOwnersMention)


roomba documentation roomba source (message by IssueLinks)

home-assistant[bot] avatar Jun 11 '23 07:06 home-assistant[bot]

@poelleke I had to move to Homekit integrations. Seems in this case they're better maintained.

TheAlphaLaw avatar Jun 23 '23 17:06 TheAlphaLaw

@poelleke I had to move to Homekit integrations. Seems in this case they're better maintained.

I don't use homekit. I don't have any apple products either.

poelleke avatar Jun 25 '23 08:06 poelleke

@poelleke I had to move to Homekit integrations. Seems in this case they're better maintained.

I don't use homekit. I don't have any apple products either.

@poelleke I had to move to Homekit integrations. Seems in this case they're better maintained.

I don't use homekit. I don't have any apple products either.

I don't own any Apple products, but there are many things that integrate into Homekit via Homebridge and then into Home Assistant that don't have native support. https://homebridge.io/

TheAlphaLaw avatar Jun 25 '23 13:06 TheAlphaLaw

The project is dead. The devs seemed to have gone silent.

Hellmanx avatar Jul 01 '23 00:07 Hellmanx

What type of Roomba do you have?

joostlek avatar Jul 01 '23 00:07 joostlek

What type of Roomba do you have?

I Have an i3+. Worked before.

I personally have deleted the roombaa configuration and tried adding it again. It seems that the integration cannot send the cloud password to what ever it needs to send it to. Keeps failing.

Hellmanx avatar Jul 01 '23 00:07 Hellmanx

What type of Roomba do you have?

i have a Roomba Combo J7+

poelleke avatar Jul 01 '23 14:07 poelleke

How come you had to get your password manually? I remember I only had to press 2 buttons on the Roomba and it worked.

To verify some stuff, do you have any funky networking setup? Are you able to ping the Roomba from your HA setup?

joostlek avatar Jul 01 '23 15:07 joostlek

How come you had to get your password manually? I remember I only had to press 2 buttons on the Roomba and it worked.

To verify some stuff, do you have any funky networking setup? Are you able to ping the Roomba from your HA setup?

Never worked for me. HA can automatically detect the roombaa. HA just won't get the password automatically. I can get the password manually, but HA will say "Failed to connect" when I put in the password

Hellmanx avatar Jul 01 '23 15:07 Hellmanx

What firmware version are you running?

joostlek avatar Jul 01 '23 15:07 joostlek

What firmware version are you running?

Looks like 2.4.7

Hellmanx avatar Jul 01 '23 16:07 Hellmanx

In https://github.com/pschmitt/roombapy/issues/97 I can see that there are multiple people having issues with the J7+. They have a workaround with capturing the password via their phone.

joostlek avatar Jul 01 '23 16:07 joostlek

In pschmitt/roombapy#97 I can see that there are multiple people having issues with the J7+. They have a workaround with capturing the password via their phone.

The roomba is on frimware 22.52.6 And i have already get the password from a workaround. But the problem is when i try to connect the intergration with the roomba it gives me a time out on the connection

poelleke avatar Jul 01 '23 17:07 poelleke

It seems that the J7+ communicates different than previous versions (I mean they went from firmware 2.4.x to 22.x.x). The roombapy lib is made from a fork, and that fork is inspired by another repo, and I found an issue in that repo for the J7+ (https://github.com/koalazak/dorita980/issues/157), and they seem to link back to the HA forums (https://community.home-assistant.io/t/roomba-j7-integration-help/339705). Maybe this will help?

joostlek avatar Jul 01 '23 19:07 joostlek

Just popping in to say i'm seeing this still with an S9+ on 2023.8.3. Discovery finds it and suggests adding it, that fails. Pulling the BLID and Password work via Dorita980's methods, but still get an error message stating that it can't connect in HA.

Jshanks avatar Aug 22 '23 13:08 Jshanks

I have the same issues with a Roomba i3+. Integration used to work perfectly, but recently it disconnected and I can't seem to get it working again.

While setting up the integration it finds the Roomba perfectly fine, but then cannot retrieve the password automatically. I can retrieve the password manually using dorita980, but after entering it the integration states that it can't connect to the Roomba.

jschonenberg avatar Aug 26 '23 08:08 jschonenberg

Getting the same issue with the J7+, documentation says it should work, but it does not. Retrieve the password using Dorita980 (the HA implementation also doesn't work, its just blank). However, entering the retrieved password says fails to connect

seanmccabe avatar Aug 27 '23 04:08 seanmccabe

Screenshot_20230831_232758_Home Assistant

Same issue with my i3+... Mine connects and integrates by just pressing the home button (not the spot button). After connection, HA communicates just fine and controls the Roomba.

The next day, the integration fails and cannot reconnect. Entities are all unavailable. I have no idea why this keeps happening.

Traxtar928 avatar Sep 01 '23 04:09 Traxtar928

Experiencing the same issue with a Roomba s9+ on Product Software 22.29.6

Noticed today that the integration couldn't connect (not sure for how long) so I tried to reconnect but was unable. Then tried to remove the integration and then re-add it. It had previously detected the password automatically when I had originally setup the integration last year if I remember correctly, I needed to now run the dorita980 method to retrieve the password. When trying to connect using the manually retrieved password, I get a "Failed to connect" error.

halfskye avatar Sep 01 '23 21:09 halfskye

Are you pressing the home AND spot button, or just the home button? If pressing both, try just the home button and see if it pulls the password. That worked for me, but did not resolve the integration failing after a day.

Traxtar928 avatar Sep 01 '23 22:09 Traxtar928

I'm having a similar issue with an i4 replacement. I was able to connect an i4 to HA with no problem. That roomba worked fine for about a month, then had charging issues. I got a replacement from iRobot. The new one isn't connecting. Funny thing is I can still connect my original one very easily. It actually is auto discovered. The new one, nope. I have to manually get the password information and input it during the connection process. When I do, I get "Connection failed". I have rebooted, factory reset and more several times.

I am working the issue with iRobot as well, but obviously they don't have to support third party products.

I have determined that there must be something different between the two. They are both i4 rombas. I spoke with iRobot, they confirmed that not only are they the same version, but were made only a few months apart. There is a difference though, the newer one was made at a different plant. Also, my older one seems to have a software version that the new one is not yet able to be upgraded to. (iRobot is looking into that on their side).

My question for our forum or HA people is the following…. Even though I removed the old robot, and the integration, are there residual files in HA that may have information about the old robot that allows it to pair and could be preventing my new one from pairing. I was hoping to find a way of completely cleansing my HA instance from any of the integration files, and reinstalling everything from absolute scratch to see if that is the problem.

If it isn’t, I am hoping iRobot will be able to share some information that I can share here that can hopefully explain why one robot pairs, and one does not.

Any feedback would be greatly appreciated.

lambros414 avatar Sep 10 '23 19:09 lambros414

[Traxtar928],

thank you for your advice. I was FINALLY able to reconnect my roomba. just didn't press the home and spot buttons. I went to enter the password, I did, and even before I was going to hit the clean button, it connected. Seems like when the home and spot button are pushed, it won't communicate with the roomba (despite the instructions on the integration being different).

Thank you! all of my automations are working again!, at least for now.

lambros414 avatar Sep 11 '23 22:09 lambros414

Are you pressing the home AND spot button, or just the home button? If pressing both, try just the home button and see if it pulls the password. That worked for me, but did not resolve the integration failing after a day.

Can confirm that this worked with my i3 as well. Been struggling for a week trying to add the integration on a new HA instance. Thanks!

BIRDIE13 avatar Oct 03 '23 19:10 BIRDIE13

I got this working for my j7+.

Instructions says hold the button for 20 seconds. DON'T. Press it once and it will work.

Holding causes the unit to reset.

The instructions for this should be updated. In the case of the j7 it has only one button.

seanmccabe avatar Oct 04 '23 00:10 seanmccabe

I got this working for my j7+.

Instructions says hold the button for 20 seconds. DON'T. Press it once and it will work.

Holding causes the unit to reset.

The instructions for this should be updated. In the case of the j7 it has only one button.

I'm trying this and it's not working… When I press the button once, it starts vacuuming. I get [Errno 111] Connection refused too. I got a J9+ (I assume would work the same as the J7) but I suppose it's not possible to add it?

aarnaegg avatar Nov 10 '23 01:11 aarnaegg

I got this working for my j7+.

Instructions says hold the button for 20 seconds. DON'T. Press it once and it will work.

Holding causes the unit to reset.

The instructions for this should be updated. In the case of the j7 it has only one button.

I'm trying this and it's not working… When I press the button once, it starts vacuuming. I get [Errno 111] Connection refused too. I got a J9+ (I assume would work the same as the J7) but I suppose it's not possible to add it?

I'm not sure, I had heard the security was updated for that model, but could be wrong.

Are you pressing the button whilst it's on the dock and HA is looking for it.

seanmccabe avatar Nov 11 '23 03:11 seanmccabe

Are you pressing the button whilst it's on the dock and HA is looking for it.

I am. It plays the tone/beep, but I always get failed to connect after entering my password.

aarnaegg avatar Nov 11 '23 04:11 aarnaegg

Are you pressing the button whilst it's on the dock and HA is looking for it.

I am. It plays the tone/beep, but I always get failed to connect after entering my password.

Your password as in Roomba password, or the retrieved one?

seanmccabe avatar Nov 11 '23 05:11 seanmccabe

Your password as in Roomba password, or the retrieved one?

The password retrieved from dorita980

aarnaegg avatar Nov 11 '23 05:11 aarnaegg