Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The new way to get device token #1088

Closed
TheSnowfield opened this issue Jun 27, 2021 · 1 comment
Closed

The new way to get device token #1088

TheSnowfield opened this issue Jun 27, 2021 · 1 comment

Comments

@TheSnowfield
Copy link

TheSnowfield commented Jun 27, 2021

Tested on Mi Home 6.0.214

Steps

  1. This method needs a rooted android device.
  2. Login into Mi Home and load all the devices.
  3. Navigate to /data/data/com.xiaomi.smarthome/files/device/cache use any file manager.
  4. You will see a device_list_xxxxxxxxx file.

Find the token

Here is what the content looks like.

 1622439426    � PXDP.210508.001.XM129     2 com.xiaomi.smarthome.core.entity.device.MiioDevice  	 403810959 � xiaomi.aircondition.mt8 < Mi Smart Ultra Electricity Saving Air Conditioner (1.5HP/Inv  � XX:XX:XX:XX:XX:XX �   �   ᅭ�  dd2f4e1aa1ec2512b4f1f04fc8c51214  

We can easily figure out the token is dd2f4e1aa1ec2512b4f1f04fc8c51214.

Test it

$ miiocli device --ip X.X.X.X --token dd2f4e1aa1ec2512b4f1f04fc8c51214 info
Model: xiaomi.aircondition.mt8
Hardware version: esp32
Firmware version: 2.2.0
@rezmus
Copy link

rezmus commented Jun 28, 2021

https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants