nqkdev / home-assistant-vacuum-styj02ym

161 stars 134 forks source link

How to get the token ? #18

Open titilambert opened 4 years ago

titilambert commented 4 years ago

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 commented 4 years ago

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:

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

v0d0r commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

and it's working fine.