Xiaomi Purifier Token

Hi!

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.

How can I get it? Or what step do I miss?

Thanks

Hi,
I have the same problem…
Can anyone help?

Hi,

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:

  1. 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:

  1. 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.
  2. Follow the " LINUX AND ANDROID (NOT ROOTED)" steps from:
    https://www.home-assistant.io/components/vacuum.xiaomi_miio/#retrieving-the-access-token
    a. Your phone must have “Debug Mode” enabled in order for the backup to work.

Good Luck! :slight_smile:

Thanks. Sounds like I need to dedicate at least an hour to this. Maybe some day :smiley: