PiotrMachowski / Xiaomi-cloud-tokens-extractor

This tool/script retrieves tokens for all devices connected to Xiaomi cloud and encryption keys for BLE devices.
MIT License
3.23k stars 333 forks source link

Can't extract token #42

Closed Fannangir closed 2 years ago

Fannangir commented 3 years ago

Hi, Following entering a username and password, I receive a message which says: Logging in... Two factor authentication required, please use following url and restart extractor: And then comes the link. And then says: Invalid login or password. Unable to log in.

Press ENTER to finish

I enter the link, verification process ends up with an ok message in the browser.

I run the extractor again, and can see the same loop, again asks to enter the url. I have tried again, browser says again ok, but still, same messages from the extractor.

What I could be missing?

Thanks.

malinduta commented 3 years ago

Same here

eduardstula commented 2 years ago

I have the same problem

Basti189 commented 2 years ago

Same here for Germany

No devices found for server "cn". Unable to get devices. No devices found for server "us". No devices found for server "ru". No devices found for server "tw". No devices found for server "sg". No devices found for server "in". No devices found for server "i2".

Press ENTER to finish

piposhub commented 2 years ago

Unable to retrieve token from any server. Same as above. Mi home app works without issues. Also home assistant miio integration has issues.

GileanEU commented 2 years ago

Same here, it logs in but returns "Unable to get devices" on a server where my devices are.

peterhoe commented 2 years ago

Unable to retrieve token from any server. Same as above. Mi home app works without issues. Also home assistant miio integration has issues.

Looks like Xiaomi are having some problems with their server / cloud infrastructure

https://www.reddit.com/r/Xiaomi/comments/rsrwtk/eu_servers_31122022_not_working/

canedje commented 2 years ago

same here image

It happened after latest firmware update of the roborock

tonka3000 commented 2 years ago

I have the same problem since yesterday. I already extracted the token and use it for 2 weeks. Now the token seems to be invalid and extracting a new one does not work with the error no device found.

qweluke commented 2 years ago

I'm having the same error :/

achisto commented 2 years ago

Same error here. It also doesn't work with this other solution so it seems, like Xiaomi changed something on their side.

konradcolle commented 2 years ago

I have just checked now, the token extractor works again! I can see my devices on the list.

GileanEU commented 2 years ago

Confirmed, works for me as well! :)

bartocc commented 2 years ago

I just tried, but it still fails on my side

➜ python3 token_extractor.py      
Username (email or user ID):
foo
Password:
bar
Server (one of: cn, de, us, ru, tw, sg, in, i2) Leave empty to check all available:

Logging in...
Invalid login or password.
Unable to log in.

Press ENTER to finish
PiotrMachowski commented 2 years ago

@bartocc do you use Xiaomi Home credentials or e.g. ones from Roborock app?

bartocc commented 2 years ago

@bartocc do you use Xiaomi Home credentials or e.g. ones from Roborock app?

Roborock app

PiotrMachowski commented 2 years ago

@bartocc Roborock app doesn't use Xiaomi account

bartocc commented 2 years ago

@bartocc Roborock app doesn't use Xiaomi account

Ok, I did not realize two different accounts existed…

I guess I need to setup the Xiaomi home app, add to roborock inside this app and then get the token, right?

PiotrMachowski commented 2 years ago

Exactly. Just keep in mind that you will probably have to reset your vacuum and it won't work with Roborock app after that

Thijske1995 commented 1 year ago

I cannot enter the password. With all other data I can enter my data, but I cannot enter the password. Does this look familiar to you?

PiotrMachowski commented 1 year ago

Password is entered, it's just invisible (for privacy reasons)

Thijske1995 commented 1 year ago

Thanks!