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

How to get the token ? #18

Open
titilambert opened this issue Jul 7, 2020 · 4 comments
Open

How to get the token ? #18

titilambert opened this issue Jul 7, 2020 · 4 comments

Comments

@titilambert
Copy link

Hello, I tried to follow the instructions there (https://www.home-assistant.io/integrations/vacuum.xiaomi_miio/) without success (the version 5.4.49 and 5.4.54 don't seem to support styj02ym)... is there any other way to get the token ?
Thanks !

@oweijers
Copy link

oweijers commented Jul 8, 2020

I had the same thing and managed to work around it with a modded version (vevs) of the mii-home app.

!Virustotal had a hit on this file so it seems to have some form of crap in it. I would suggest not installing this on your regular phone!

all on your own risk, but this is the safest method i could come up with:

  • Install an android emulator or use a burner phone, clean factory reset android, no google account
  • change your mii-account password to something unique
  • download the modded app from here
  • install apk, login, and retrieve the token the way it is supposed to be retrieved
  • change mii-account password to something unique
  • continue using the 'normal' unmodded app.

edit: i forgot to mention why you need to use an emulator (or burner phone).

@v0d0r
Copy link

v0d0r commented Aug 21, 2020

I ended up not resetting my vacuum as some howtos suggest. I left it on the wifi as it was already connected via my phone. I then installed the older version of the mi home app version v5.4.45 in bluestacks. Got the token and it worked first time.

@duglah
Copy link

duglah commented Oct 16, 2020

https://www.apkmirror.com/apk/xiaomi-inc/mihome/mihome-5-4-45-release/mi-home-5-4-45-android-apk-download/download/ worked for me on Android. You find the token in der folder SmartHome. Important is to choose mainland china!

@dolohow
Copy link

dolohow commented Apr 8, 2021

It's written here:
https://www.home-assistant.io/integrations/xiaomi_miio/

and it's working fine.

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

5 participants