I have created a tool that extracts all available tokens:
You are a god-emperor!
I second this. I feel like so many people have spent so long trying to get this stupid token using so many sketchy methods, and this is so simple.
Amazing!
Get “Easy Xiaomi Tokens” App
This is a NodeJS application that simplifies the process of obtaining Xiaomi device tokens. You can use the extracted tokens to control your Xiaomi device by means of alternative apps like Apple Homekit or Home Assistant.
The application works for all types of Xiaomi devices like the Air Purifier, Mi Smart Plug (WiFi), Roborock S6, Philips Wi-Fi bulb E27 White, Da Fang camera or Mi LED Desk Lamp.
NOTE : This application has only been tested on macOS.
More info at https://github.com/jmaferreira/easy_xiaomi_tokens
WOW ! This is amazing ! thank you !!! I struggled so much to get my token. Third this amazing package
That works absolute wonders! I could also get the SIDs of the subdevices for my hub, thanks!!