I cannot found the token with the Air Purifier. The MiToolKit cannot extract it, and in miio2.db in the rooted android device the data of token is blank.
I wonder if anyone ever meets this problem
———
Update 2018.2.2
It is an recent Mi Home update that cause the problem.
In order to extract, the only way is to download the version before 5.0.29
I’m sorry to dig up this post but unfortunately i have install the app version 5.0.29 but it no longer show any device or allows me to add then so they have “blocked” it on the server side.
Well as I thought Hass.io doesn’t allow this command, however this has been a work im progress and I finally got out of the docker and was able to execute some commands that got me the token.
Since I asked for help and got it it’s also time to share the solution that got me the token as of 28 Feb 2018 with the latest app (even updated with an version that isn’t on the play store) and latest air purifier fw version:
I downloaded some some tweaked Xiaomi Home apk for Android (from russian server, yeah, yeah, i know how that sounds :)) and it just show token when you go in specific device and into advanced settings. Token : XXXXXXXXXX.
Copy paste… that’s it.