14-05-2021

Download Mi Cloud Desktop app for Windows, Mac- Access your Mi photos, contacts, messages on PC Mi Cloud is a great feature included on each and every Xiaomi Android phones and tablets. It lets users to sync your data across multiple mi devices and there will be secure data storage on cloud. Jun 21, 2019  The app Mi or Xiaomi home is an Android application, there is no availability of Mi home PC version or Mi home.EXE file for Windows. So, directly you cannot get this Xiaomi home app on PC, but, following this guide, you can very easily download and install a Mi/Xiaomi home for Windows 10, 7, 8.1, 8 operating systems. Jan 11, 2019 Xiaomi’s smart home is controlled by an app on iOS and Android called “Mi Home”. Like with HomeKit or Alexa, products compatible with Mi Home are relatively straightforward to set up.

Use any of these methods to obtain the device token for the supported miio devices.

Method 1 - Obtain device token for miio devices that hide their token after setup

Use one of these methods to obtain the device token for devices that hide their tokens after setup in the Mi Home App (like the Mi Robot Vacuum Cleaner with firmware 3.3.9_003077 or higher). This is usually the case for most Mi Home devices. The latest versions of the Mi Home smartphone app dont hold the token anymore so before you begin with any of these methods you will need to install an older version of the smartphone app. Version 5.0.19 works for sure with the 1st gen Vacuum Robot, for the 2nd gen (S50) you should try version 3.3.9_5.0.30. Android users can find older version of the app here.

Android users

Rooted Android Phones

  • Setup your Android device with the Mi Home app version 5.0.19 or lower
  • Install aSQLiteManager on your phone
  • Use a file browser with granted root privilege and browse to /data/data/com.xiaomi.smarthome/databases/
  • Copy miio2.db to an accessable location
  • Open your copy of miio2.db with aSQLiteManager and execute the query 'select token from devicerecord where localIP is '192.168.0.1' where you replace the IP address with the IP address of the device you want to get the token from. It will show you the 32 character device token for your Mi Home device.

Non-Rooted Android Phones

Extract token from log file

This method will only work when you install the Mi Home app version v5.4.54. You can find it here. It looks like Xiaomi made a mistake in this app version where the log file written to internal memory exposes the device tokens of your Xiaomi miio devices.

  • Setup your Android device with the Mi Home app version 5.4.54
  • Log in with you Xiaomi account
  • Use a file explorer to navigate to /sdcard/SmartHome/logs/Plug_Devicemanager/
  • Look for a log file named yyyy-mm-dd.txt and open it with a file editor
  • Search for a string similar to this with you device name and token
  • Copy the token from this string and you are done.
Extract token from a backup on Android phones that allow non-encrypted backups
  • Setup your Android device with the Mi Home app
  • Enable developer mode and USB debugging on your phone and connect it to your computer
  • Get the ADB tool
    • for Windows: https://developer.android.com/studio/releases/platform-tools.html
    • for Mac: brew install adb
  • Create a backup of the Mi Home app:
    • for Windows: .adb backup -noapk com.xiaomi.smarthome -f mi-home-backup.ab
    • for Mac: adb backup -noapk com.xiaomi.smarthome -f mi-home-backup.ab
  • On your phone you must confirm the backup. Do not enter any password and press button to make the backup
  • (Windows Only) Get ADB Backup Extractor and install it: https://sourceforge.net/projects/adbextractor/
  • Extract all files from the backup on your computer:
    • for Windows: java.exe -jar ../android-backup-extractor/abe.jar unpack mi-home-backup.ab backup.tar
    • for Mac & Unix: ( printf 'x1fx8bx08x00x00x00x00x00' ; tail -c +25 mi-home-backup.ab) | tar xfvz -
  • Unzip the '.tar' file
  • Open /com.xiaomi.smarthome/db/miio2.db with a SQLite browser (for instance http://sqlitebrowser.org/)
  • Execute the query 'select token from devicerecord where localIP is '192.168.0.1' where you replace the IP address with the IP address of the Mi Home device you want to get the token from. It will show you the 32 character device token for your Mi Home device.
Extract token from a backup on Android phones that do not allow non-encrypted backups
  • Use the steps from above but install Java and use backup extractor to extract the encrypted backup.

iOS users

Non-Jailbroken iOS users

  • Setup your iOS device with the Mi Home app
  • Create an unencrypted backup of your iOS device on your computer using iTunes. In case you are unable to disable encryption you probably have a profile preventing this that enforces certain security policies (like work related accounts). Delete these profiles or use another iOS device to continu.
  • Install iBackup Viewer from here (another tool that was suggested can be found here).
  • Navigate to your BACKUPS and find the name of your iOS device in the list. Open this backup by clicking the triangle in front of it and then click on raw data.
  • Sort the view by name and find the folder com.xiaomi.mihome and highlight it (it's somewhere at the end). After highlighting it click on the cockwheel above the results and select 'Save selected files' from here and choose a location to save the files.
  • Navigate to the com.xiaomi.mihome folder which you just saved somewhere and inside this folder navigate to the /Documents/ subfolder. In this folder there is a file named _mihome.sqlite where your userid is specific for your account.
  • Open this file with a SQLite browser (for instance http://sqlitebrowser.org/)
  • Execute the query 'select ZTOKEN from ZDEVICE where ZLOCALIP is '192.168.0.1' where you replace the IP address with the IP address of the Mi Home device you want to get the token from. It will show you the 32 character device token for your Mi Home device.
  • The latest Mi Home app store the tokens encrypted into a 96 character key and require an extra step to decode this into the actual token. Visit this website and enter the details as shown below:** Input type: text
    • Input text (hex): your 96 character key
    • Selectbox Plaintext / Hex: Hex
    • Function: AES
    • Mode: ECB
    • Key (hex): 00000000000000000000000000000000
    • Selectbox Plaintext / Hex: Hex
  • Hit the decrypt button. Your token are the first two lines of the right block of code. These two lines should contain a token of 32 characters and should be the correct token for your device.
  • If this tutorial did not work for you, here is another that might work.
Xiaomi

Jailbroken iOS users

Xiaomi Home App For Mac
  • Setup your iOS device with the Mi Home app
  • Use something like Forklift sFTP to connect to your iOS device and copy this file to your computer: /var/mobile/Containers/Data/Application/[UUID]/Documents/USERID_mihome.sqlite (where UUID is a specific number for your device)
    • username: root
    • IP address: your phones IP address
    • password: alpine (unless you changed it something else)
  • Open this file with a SQLite browser (for instance http://sqlitebrowser.org/)
  • Execute the query 'select ZTOKEN from ZDEVICE where ZLOCALIP is '192.168.0.1' where you replace the IP address with the IP address of the Mi Home device you want to get the token from. It will show you the 32 character device token for your Mi Home device.
  • The latest Mi Home app store the tokens encrypted into a 96 character key and require an extra step to decode this into the actual token. Visit this website and enter the details as shown below:
    • Input type: text
    • Input text (hex): your 96 character key
    • Selectbox Plaintext / Hex: Hex
    • Function: AES
    • Mode: ECB
    • Key (hex): 00000000000000000000000000000000
    • Selectbox Plaintext / Hex: Hex
  • Hit the decrypt button. Your token are the first two lines of the right block of code. These two lines should contain a token of 32 characters and should be the correct token for your device.

Method 2 - Obtain Xiaomi Gateway device token

This method is specifically for the Xiaomi Gateway.

  • Open Mi Home App in your Android device.
  • Select your xiaomi device.
  • Then click on the 3 dots at the top right of the screen.
  • Then click on 'About'.
  • Tap on the version number at the bottom of the screen repeatedly.
  • You should see now 2 extra options listed.
  • Tap on the second option: 'Hub info'.
  • There you can find the device token.

Method 3 - Nodejs Command Line Tool from the miIO Device library

Xiaomi Home App For Mac For Macbook

The author of the miIO Device Library which is used by this Homey app has also created a nodejs command line tool for retrieving device tokens. Please follow the steps in these instructions to retrieve the token for the supported miio devices. Be aware that some devices hide their token after the device has been setup in the Mi Home app. Retrieving tokens for these devices will not work with this method but require method 3.

Method 4a - Packet Sender Tool

During setup of Mi Home devices the device tokens an be retrieved by sending a ping command to the device. This method uses a tool called Packet Sender which you will need to download. Choose the portable version which does not require installation.

  • Download the portable version of Packet Sender.
  • Reset the device following the instructions from the device manual, this usually means holding one or two buttons for 10 seconds. This will reset all device settings including the Wi-Fi settings.
  • After reset the device will create a it's own Wi-Fi network. This network will have a name related to the device and is used for configuring the device but will also allow us to retrieve the token. Connect to this Wi-Fi network with your computer which has Packet Sender running.
  • Open Packet Sender and enter the following details.
    • HEX: 21310020ffffffffffffffffffffffffffffffffffffffffffffffffffffffff
    • IP: 192.168.8.1
    • Port: 54321
    • Protocol dropdown: UDP
  • Click send and the device will respond with an answer which contains the unique device token. In the last 16 bytes (32 characters) of the devices response is the device token. Copy and save it somewhere.
  • Disconnect your computer from the devices network, you can now use the Mi Home app to setup the device and connect it to your Wi-Fi network.

Method 4b - netcat and Wireshark / tcpdump

Free App For Mac

Like above you can also use this shell command to send the magic package:

While running this you have to listen with Wireshark or tcpdump for UDP packages sent as anser by the robot.Extract the last 16 bytes of the answer and convert them to a (32 characters) hexadecimal string using xxd -p.

Method 5 - telnet with root access

discovered by #slavikme

In some devices, like 'Mi Home Security Camera 360' (and maybe others), you are able to access the filesystem of the device using telnet.

  • Reset the device following the instructions from the device manual, this usually means holding one or two buttons for 10 seconds. This will reset all device settings including the Wi-Fi settings. Or you can just delete the device from Mi Home app, that will reset the device for you.
  • After reset the device will create it's own Wi-Fi network. This network will have a name related to the device and is used for configuring the device but will also allow us to retrieve the token. Connect to this Wi-Fi network with your computer which has a telnet command installed.
  • Find out Wi-Fi's gateway address (This article can help). Let's say that it is 192.168.14.1.
  • Create a telnet connection to this addres:
  • It will ask you to enter a login. Just write root:
  • Now you have a root shell access to device's filesystem.
  • Get the hex token using the following command:The output should be something like this:
  • If you are not getting 32 characters hexadecimal string, then just run the command /usr/sbin/nvram get miio_token and convert it using xxd -p or this tool (don't forget to remove the space delimiter) to hexadecimal representation.
    Command output example:

My Home is the official Xiaomi application that will allow us to manage all our Xiaomi products in the most comfortable way possible. Thus, we can configure or program our lamp, vacuum cleaner, smartwatch, alarm clock, fan, surveillance camera, and so on. After all, Xiaomi offers a huge variety of products.

In order to use My Home correctly, we will need to have a user account. Fortunately, from the app itself we can create an account in a few seconds using our Facebook profile. Once we have our user account, we will have just a push of a button to detect all the Xiaomi devices that we have nearby. After this, we will only have to configure them individually.

My Home is an essential application for any user who uses regularly any of the many gadgets in Xiaomi that exist.
More from Us: Dream League Soccer For PC (Windows & MAC).
Here we will show you today How can you Download and Install Lifestyle App MiHome on PC running any OS including Windows and MAC variants, however, if you are interested in other apps, visit our site about Android Apps on PC and locate your favorite ones, without further ado, let us continue.

MiHome on PC (Windows / MAC)

Xiaomi Home App Download

  • Download and install BlueStacks or Remix OS Player.
  • Open the installed BlueStacks or Remix OS Player and open the Google Play Store in it.
  • Now search for “MiHome” using the Play Store.
  • Install the game and open the app drawer or all apps in the emulator.
  • Click MiHome icon to open it, follow the on-screen instructions to play it.
  • You can also download MiHome APK and installs via APK in the BlueStacks Android emulator.
  • You can also use Andy OS to install MiHome for PC.

That’s All for the guide on MiHome For PC (Windows & MAC), follow our Blog on social media for more Creative and juicy Apps and Games. For Android and iOS please follow the links below to Download the Apps on respective OS.

You may also be interested in: Apple lets you see some technical characteristics of the HomePod.

Xiaomi Home App For Mac

MiHome for Android:

Download Mi Home Apk / Setup File from Here: Mi Home APK

Developer: Xiaomi Inc.
4.3/5(7 votes )

A Professional Business Analyst, Tech Author and Writer since 2013. Always talking about Tech and innovation in both Software and Hardware worlds. Majorly Expert in Windows and Android, Software, Mobile Apps and Video Marketing. You can Reach on me on Social Media.