nqkdev/home-assistant-vacuum-styj02ym

How to get the token ?

Opened this issue · 4 comments

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 !

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 commented

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.

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!

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

and it's working fine.