Skip to content

Commit 4eefa95

Browse files
committed
Site updated at 2017-08-26 11:53:02 UTC
1 parent 3d657e4 commit 4eefa95

File tree

27 files changed

+44
-103
lines changed

27 files changed

+44
-103
lines changed

atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Home Assistant]]></title>
55
<link href="https://home-assistant.io/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/announcements/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Announcements | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/announcements/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/community/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Community | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/community/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/device-tracking/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Device-Tracking | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/device-tracking/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/esp8266/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: ESP8266 | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/esp8266/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/how-to/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: How-To | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/how-to/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/ibeacons/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: iBeacons | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/ibeacons/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/internet-of-things/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Internet-of-Things | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/internet-of-things/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/iot-data/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: IoT-Data | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/iot-data/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/media/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Media | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/media/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/merchandise/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Merchandise | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/merchandise/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/micropython/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Micropython | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/micropython/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/mqtt/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: MQTT | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/mqtt/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/organisation/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Organisation | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/organisation/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/owntracks/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: OwnTracks | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/owntracks/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/presence-detection/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Presence-Detection | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/presence-detection/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/public-service-announcement/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Public-Service-Announcement | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/public-service-announcement/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/release-notes/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Release-Notes | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/release-notes/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/survey/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Survey | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/survey/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/talks/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Talks | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/talks/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/technology/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Technology | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/technology/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/user-stories/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: User-Stories | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/user-stories/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/video/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Video | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/video/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/website/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Website | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/website/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2017-08-26T11:12:26+00:00</updated>
7+
<updated>2017-08-26T11:44:42+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

components/vacuum.xiaomi/index.html

Lines changed: 3 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -76,79 +76,19 @@ <h1 class="title indent">
7676
<hr class="divider">
7777
<p>The <code class="highlighter-rouge">xiaomi</code> vacuum platform allows you to control the state of your <a href="http://www.mi.com/roomrobot/">Xiaomi Mi Robot Vacuum</a>.</p>
7878
<p>Current supported features are <code class="highlighter-rouge">turn_on</code>, <code class="highlighter-rouge">pause</code>, <code class="highlighter-rouge">stop</code>, <code class="highlighter-rouge">return_to_home</code>, <code class="highlighter-rouge">turn_off</code> (stops goes to dock), <code class="highlighter-rouge">locate</code>, <code class="highlighter-rouge">clean_spot</code>, <code class="highlighter-rouge">set_fanspeed</code> and even remote control your robot.</p>
79-
<h2><a class="title-link" name="getting-started" href="#getting-started"></a> Getting started</h2>
80-
<p>Follow the pairing process using your phone and Mi-Home app. From here you will be able to retrieve the token from a SQLite file inside your phone.</p>
81-
<p>Before you begin you need to install <code class="highlighter-rouge">libffi-dev</code> by running the command below. This is needed for <code class="highlighter-rouge">python-mirobi</code> to be installed correctly.</p>
82-
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>sudo apt-get install libffi-dev
83-
</code></pre>
84-
</div>
85-
<p>If your Home Assistant installation is running in a <a href="/docs/installation/virtualenv/#upgrading-home-assistant">Virtualenv</a>, make sure you activate it by running the commands below.</p>
86-
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>sudo su -s /bin/bash homeassistant
87-
<span class="gp">$ </span><span class="nb">source</span> /srv/homeassistant/bin/activate
88-
</code></pre>
89-
</div>
90-
<p>To fetch the token follow these instructions depending on your mobile phone platform.</p>
91-
<h3><a class="title-link" name="windows-and-android" href="#windows-and-android"></a> Windows and Android</h3>
92-
<ol>
93-
<li>Configure the robot with the Mi-Home app.</li>
94-
<li>Enable developer mode and USB debugging on the Android phone and plug it into the computer.</li>
95-
<li>Get ADB tool for Windows: https://developer.android.com/studio/releases/platform-tools.html</li>
96-
<li>Create a backup of the application com.xiaomi.smarthome:
97-
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>adb backup -noapk com.xiaomi.smarthome -f backup.ab
98-
</code></pre>
99-
</div>
100-
</li>
101-
<li>If you have this message: “More than one device or emulator”, use this command to list all devices:
102-
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>adb devices
103-
</code></pre>
104-
</div>
105-
<p>and execute this command:</p>
106-
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>adb -s DEVICEID backup -noapk com.xiaomi.smarthome -f backup.ab <span class="c"># (with DEVICEID the device id from the previous command)</span>
107-
</code></pre>
108-
</div>
109-
</li>
110-
<li>On the phone, you must confirm the backup. DO NOT enter any password and press button to make the backup.</li>
111-
<li>Get ADB Backup Extractor: https://sourceforge.net/projects/adbextractor/</li>
112-
<li>Extract All files from the backup:
113-
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>java.exe -jar ../android-backup-extractor/abe.jar unpack backup.ab backup.tar <span class="s2">""</span>
114-
</code></pre>
115-
</div>
116-
</li>
117-
<li>Unzip the “.tar” file.</li>
118-
<li>Open the SQLite DB <code class="highlighter-rouge">miio2.db</code> with a tool like SQLite Manager extension for FireFox.</li>
119-
<li>Get the token from “devicerecord” table.</li>
120-
</ol>
121-
<h3><a class="title-link" name="linux-and-android-rooted" href="#linux-and-android-rooted"></a> Linux and Android (rooted!)</h3>
122-
<ol>
123-
<li>Configure the light with the Mi-Home app.</li>
124-
<li>Enable developer mode, USB debugging and root permission only for ADB on the Android phone and plug it into the computer.</li>
125-
<li>Get ADB f.e. <code class="highlighter-rouge">apt-get install android-tools-adb</code></li>
126-
<li><code class="highlighter-rouge">adb devices</code> should list your device</li>
127-
<li><code class="highlighter-rouge">adb root</code> (does work for development builds only: ones with <code class="highlighter-rouge">ro.debuggable=1</code>)</li>
128-
<li><code class="highlighter-rouge">adb shell</code></li>
129-
<li><code class="highlighter-rouge">echo "select name,localIP,token from devicerecord;" | sqlite3 /data/data/com.xiaomi.smarthome/databases/miio2.db</code> returns a list of all registered devices including ip address and token.</li>
130-
</ol>
131-
<h3><a class="title-link" name="macos-and-ios" href="#macos-and-ios"></a> macOS and iOS</h3>
132-
<ol>
133-
<li>Setup iOS device with the Mi-Home app.</li>
134-
<li>Create an unencrypted backup of the device using iTunes.</li>
135-
<li>Install iBackup Viewer from here: http://www.imactools.com/iphonebackupviewer/</li>
136-
<li>Extract this file: <strong><code class="highlighter-rouge">/raw data/com.xiami.mihome/1234567_mihome.sqlite</code></strong> to your computer, where <em>1234567</em> is any string of numbers.</li>
137-
<li>Open the sqlite DB with a tool like SQLite Manager extension for FireFox, DB Browser, etc. You will then see the list of all the devices in your account with their token. The token you need is in the column <strong><code class="highlighter-rouge">ZToken</code></strong> and looks like <strong><code class="highlighter-rouge">123a1234567b12345c1d123456789e12</code></strong>.</li>
138-
</ol>
139-
<h2><a class="title-link" name="configuration" href="#configuration"></a> Configuration</h2>
79+
<p>Please follow the instructions on <a href="/xiaomi/#retrieving-the-access-token">Retrieving the Access Token</a> to get the API token to use in the <code class="highlighter-rouge">configuration.yaml</code> file.</p>
14080
<p>To add a vacuum to your installation, add the following to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
14181
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
14282
<span class="s">vacuum</span><span class="pi">:</span>
14383
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">xiaomi</span>
14484
<span class="s">host</span><span class="pi">:</span> <span class="s">192.168.1.2</span>
145-
<span class="s">token</span><span class="pi">:</span> <span class="s">your-token-here</span>
85+
<span class="s">token</span><span class="pi">:</span> <span class="s">YOUR_TOKEN</span>
14686
</code></pre>
14787
</div>
14888
<p>Configuration variables:</p>
14989
<ul>
15090
<li><strong>host</strong> (<em>Required</em>): The IP of your robot.</li>
151-
<li><strong>token</strong> (<em>Required</em>): The token of your robot. Go to Getting started section to read more about how to get it.</li>
91+
<li><strong>token</strong> (<em>Required</em>): The API token of your robot.</li>
15292
<li><strong>name</strong> (<em>Optional</em>): The name of your robot.</li>
15393
</ul>
15494
<h3><a class="title-link" name="platform-services" href="#platform-services"></a> Platform services</h3>

components/xiaomi/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ <h1 class="title indent">
106106
<li>Additional alarm events of the Gas and Smoke Detector: Analog alarm, battery fault alarm (smoke detector only), sensitivity fault alarm, I2C communication failure</li>
107107
</ul>
108108
<p>Follow the setup process using your phone and Mi-Home app. From here you will be able to retrieve the key from within the app following <a href="https://community.home-assistant.io/t/beta-xiaomi-gateway-integration/8213/1832">this tutorial</a></p>
109+
<p>Please check the instructions in this <a href="/xiaomi/#retrieving-the-access-token">section</a> to get the API token to use with your platforms.</p>
109110
<p>To enable Xiaomi gateway in your installation, add the following to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
110111
<h3><a class="title-link" name="one-gateway" href="#one-gateway"></a> One Gateway</h3>
111112
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># You can leave mac empty if you only have one gateway.</span>
@@ -177,7 +178,7 @@ <h2><a class="title-link" name="services" href="#services"></a> Services</h2>
177178
<span class="s">gw_mac</span><span class="pi">:</span> <span class="s">xxxxxxxxxxxx</span>
178179
</code></pre>
179180
</div>
180-
<h3><a class="title-link" name="retrieving-access-token" href="#retrieving-access-token"></a> Retrieving Access Token</h3>
181+
<h3><a class="title-link" name="retrieving-the-access-token" href="#retrieving-the-access-token"></a> Retrieving the Access Token</h3>
181182
<p>Follow the pairing process using your phone and Mi-Home app. You will be able to retrieve the token from a SQLite file inside your phone. This token is needed for using various <code class="highlighter-rouge">xiaomi</code> platforms.</p>
182183
<p>Before you begin you need to install <code class="highlighter-rouge">libffi-dev</code> by running the command below. This is needed for <code class="highlighter-rouge">python-mirobi</code> to be installed correctly.</p>
183184
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>sudo apt-get install libffi-dev

0 commit comments

Comments
 (0)