From 62e4bc849294c782d8afe5c622cf316f6bbe410f Mon Sep 17 00:00:00 2001 From: Aalian Khan <39784853+AalianKhan@users.noreply.github.com> Date: Mon, 14 Jun 2021 20:22:14 -0400 Subject: [PATCH] Putting the easiest method at the top (#18175) * Putting the easiest method at the top by far the easiest method to retrieve the access token is to use the get mi home devices app so to avoid people getting confused and use the harder method I have moved the easier method at the top. Personally, I think if there was an accordion to hide the alternative ways to retrieve the token it will make the page much cleaner as there are lots of methods but the user only needs 1 way to retrieve the token. * Update source/_integrations/xiaomi_miio.markdown Co-authored-by: Franck Nijhof --- source/_integrations/xiaomi_miio.markdown | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/_integrations/xiaomi_miio.markdown b/source/_integrations/xiaomi_miio.markdown index ec0f92c02ae..78f5ddaaa5c 100644 --- a/source/_integrations/xiaomi_miio.markdown +++ b/source/_integrations/xiaomi_miio.markdown @@ -46,7 +46,11 @@ For many of these devices you need an access token, the first section will descr ## Retrieving the Access Token -### Xiaomi Cloud Tokens Extractor +### Using Get Mi Home Devices Token App + +If you are on a Windows or macOS device, you can use the [Get MiHome devices token](https://github.com/Maxmudjon/Get_MiHome_devices_token/releases) App to retrieve the token. Click the link, download the file that corresponds to your OS, enter your login details and it will retrieve the access token. + +### Using Xiaomi Cloud Tokens Extractor One of Home Assistant users wrote a tokens extractor tool, which is currently the easiest way to retrieve tokens for all devices assigned to Xiaomi account. [In the repository](https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor) there's executable for convenient use on Windows or Python script to be run on any platform. If you do not wish to run executable, then you can run it using the source code: @@ -66,7 +70,7 @@ One of Home Assistant users wrote a tokens extractor tool, which is currently th 3. Provide e-mail address or username for Xiaomi's account, password and country of the account (most used: CN - China Mainland, DE - Germany etc.) 4. Script will print out all devices connected to the account with their IP address and tokens for use in Home Assistant. -### Xiaomi Home app (Xiaomi Aqara Gateway, Android & iOS) +### Using Xiaomi Home app in developer mode (Xiaomi Aqara Gateway, Android & iOS) 1. Install the Xiaomi Home app. 2. Sign In/make an account. @@ -81,10 +85,6 @@ iOS: Most options are still in Chinese, you need the fourth item from the top. Note: If you have multiple devices needing a token, e.g., Xiaomi Mi Robot Vacuum and a Xiaomi IR Remote, the above method may not work. The Xiaomi Home app will display a token, though it isn't the correct one. The alternative method using "Mi Home v5.4.49" will provide the correct token. -### Windows or macOS - -If using an Windows or macOS device to retrieve the Access Token use the [Get MiHome devices token](https://github.com/Maxmudjon/Get_MiHome_devices_token) App. - ### Alternative methods