In the docs it says that with latest versions of Mi Home app it’s possible to find Token in the logs.
I check logs out, I even tried removing adding Mi Purifier to the app, and I still can’t see anything related to token in the logs. it’s just “ble” bluetooth related logs.
I also tried miio app, and it finds Purifier but shows no token.
I was able to obtain my Token few hours after I posted my comment, so I decided to share my experience.
My setup:
Huawai Phone (not rooted)
Xiaomi Air Purifier 2S (latest firmware)
Linux Ubuntu 18.04 PC
Here are the steps:
Install the latest version of the MiHome app on my phone.
a. select region server and login in your account.
b. add your Purifier following the official documentation.
While looking for a solution I read somewhere that the latest version of the app does not store the token locally on the phone, so:
Uninstall latest version of the App and install the old 5.0.19.
a. you can get it from this article - https://mensfeld.pl/2018/11/extracting-the-device-token-from-xiaomi-air-purifier-2s-eu-for-domoticz-usage/
b. when starting the app select the same region as in step 1.
c. your device should appear in the app when you login in your account.
d. TURN ON/OFF your Air Purifier at least once from the old app and the app should download the data from the Xiaomi servers.