Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UID Missing? #127

Open
h00pak opened this issue Mar 20, 2024 · 6 comments
Open

UID Missing? #127

h00pak opened this issue Mar 20, 2024 · 6 comments

Comments

@h00pak
Copy link

h00pak commented Mar 20, 2024

Trying to use the cloud based command, but getting problem with a UID?

mac:roomba rby$ [email protected] Passw0rd!!
2024-03-19 20:50:15 INFO [Roomba.Password] Using Password version 2.1
2024-03-19 20:50:15 INFO [Roomba.Password] reading/writing info from config file ./config.ini
2024-03-19 20:50:15 INFO [Roomba.Password] waiting on port: 5678 for data
2024-03-19 20:50:15 INFO [Roomba.Password] Robot at IP: 192.168.1.51 Data: {
"ver": "3",
"hostname": "Roomba-3165050861141710",
"robotname": "Roomby Foyer",
"ip": "192.168.1.51",
"mac": "80:C5:F2:CE:82:0C",
"sw": "3.5.62",
"sku": "R690020",
"nc": 0,
"proto": "mqtt",
"cap": {
"ota": 1,
"eco": 1,
"svcConf": 1
}
}
2024-03-19 20:50:15 INFO [Roomba.Password] Robot at IP: 192.168.1.86 Data: {
"ver": "3",
"hostname": "Roomba-3167C91801016540",
"robotname": "Roomby Gym",
"ip": "192.168.1.86",
"mac": "80:C5:F2:C4:8B:58",
"sw": "3.5.62",
"sku": "R690020",
"nc": 0,
"proto": "mqtt",
"cap": {
"ota": 1,
"eco": 1,
"svcConf": 1
}
}
2024-03-19 20:50:15 INFO [Roomba.Password] Robot at IP: 192.168.1.89 Data: {
"ver": "3",
"hostname": "Roomba-3176C30460837590",
"robotname": "Roomby Lounge",
"ip": "192.168.1.89",
"mac": "D0:C5:D3:DC:A1:9A",
"sw": "3.5.62",
"sku": "R690020",
"nc": 0,
"proto": "mqtt",
"cap": {
"ota": 1,
"eco": 1,
"svcConf": 1
}
}
2024-03-19 20:50:25 INFO [Roomba.Password] Getting Roomba information from iRobot aws cloud...
2024-03-19 20:50:26 DEBUG [urllib3.connectionpool] Starting new HTTPS connection (1): disc-prod.iot.irobotapi.com:443
2024-03-19 20:50:26 DEBUG [urllib3.connectionpool] https://disc-prod.iot.irobotapi.com:443 "GET /v1/discover/endpoints?country_code=US HTTP/1.1" 200 1789
2024-03-19 20:50:26 DEBUG [urllib3.connectionpool] Starting new HTTPS connection (1): accounts.us1.gigya.com:443
2024-03-19 20:50:26 DEBUG [urllib3.connectionpool] https://accounts.us1.gigya.com:443 "POST /accounts.login HTTP/1.1" 200 211
Traceback (most recent call last):
File "./password.py", line 294, in
main()
File "./password.py", line 291, in main
get_passwd.get_password()
File "./password.py", line 119, in get_password
iRobot.login()
File "/Users/robby/.homebridge/Roomba980-Python/roomba/getcloudpassword.py", line 107, in login
uid = response['UID']
KeyError: 'UID'

@NickWaterton
Copy link
Owner

I guess it’s not logging in to your Roomba account.

did you enter your Roomba account login and password correctly? You may need to put “ around your password if it has special characters in it.

@h00pak
Copy link
Author

h00pak commented Mar 21, 2024

Thanks for the reply. I tried adding the quotation marks (at first I thought I would just go change my irobot password but they're requiring special characters now). I got pretty much the same thing:
Brian:roomba robby$ ./password.py [email protected] "2345FGGG!!"
2024-03-20 20:52:27 INFO [Roomba.Password] Using Password version 2.1
2024-03-20 20:52:27 INFO [Roomba.Password] reading/writing info from config file ./config.ini
2024-03-20 20:52:27 INFO [Roomba.Password] waiting on port: 5678 for data
2024-03-20 20:52:27 INFO [Roomba.Password] Robot at IP: 192.168.1.XX Data: {
"ver": "3",
"hostname": "Roomba-3176C30460837590",
"robotname": "Roomby Lounge",
"ip": "192.168.1.XX",
"mac": "D0:C5:D3:DC:A1:9A",
"sw": "3.5.62",
"sku": "R690020",
"nc": 0,
"proto": "mqtt",
"cap": {
"ota": 1,
"eco": 1,
"svcConf": 1
}
}
2024-03-20 20:52:27 INFO [Roomba.Password] Robot at IP: 192.168.1.XX Data: {
"ver": "3",
"hostname": "Roomba-3167C91801016540",
"robotname": "Roomby Gym",
"ip": "192.168.1.86",
"mac": "80:C5:F2:C4:8B:58",
"sw": "3.5.62",
"sku": "R690020",
"nc": 0,
"proto": "mqtt",
"cap": {
"ota": 1,
"eco": 1,
"svcConf": 1
}
}
2024-03-20 20:52:27 INFO [Roomba.Password] Robot at IP: 192.168.1.XX Data: {
"ver": "3",
"hostname": "Roomba-3165050861141710",
"robotname": "Roomby Foyer",
"ip": "192.168.1.XX",
"mac": "80:C5:F2:CE:82:0C",
"sw": "3.5.62",
"sku": "R690020",
"nc": 0,
"proto": "mqtt",
"cap": {
"ota": 1,
"eco": 1,
"svcConf": 1
}
}
2024-03-20 20:52:37 INFO [Roomba.Password] Getting Roomba information from iRobot aws cloud...
2024-03-20 20:52:37 DEBUG [urllib3.connectionpool] Starting new HTTPS connection (1): disc-prod.iot.irobotapi.com:443
2024-03-20 20:52:38 DEBUG [urllib3.connectionpool] https://disc-prod.iot.irobotapi.com:443 "GET /v1/discover/endpoints?country_code=US HTTP/1.1" 200 1789
2024-03-20 20:52:38 DEBUG [urllib3.connectionpool] Starting new HTTPS connection (1): accounts.us1.gigya.com:443
2024-03-20 20:52:38 DEBUG [urllib3.connectionpool] https://accounts.us1.gigya.com:443 "POST /accounts.login HTTP/1.1" 200 212
Traceback (most recent call last):
File "./password.py", line 294, in
main()
File "./password.py", line 291, in main
get_passwd.get_password()
File "./password.py", line 119, in get_password
iRobot.login()
File "/Users/robby/.homebridge/Roomba980-Python/roomba/getcloudpassword.py", line 107, in login
uid = response['UID']
KeyError: 'UID'

@NickWaterton
Copy link
Owner

I’m not sure what to tell you. It works, because I just tried it, with no problems.

The reason you get the error is that aws is returning an error message, which does not have the ID field in it. The usual cause is incorrect login or password.

If you want to see the error message, you can edit getcloudpassword.py and add after line 106:

print(“response: {}”.format(response))

Which will print the error message you get back. Usually it says “invalid loginID or password”.

If you want to see what you are sending, add at line 97:

Print(“data: {}”.format(data))

Which should show what you are sending for login and password. Likely still something to do with the special characters in your password.

Linux does not like special characters in strings…

@h00pak
Copy link
Author

h00pak commented Mar 21, 2024 via email

@NickWaterton
Copy link
Owner

Yes.

@benjaminlaske
Copy link

Can confirm. Ran into the same issue with two (2) special characters at the end of the password. Removed both and it ran fine.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants