Site updated at 2017-09-12 12:48:08 UTC

This commit is contained in:
Travis CI 2017-09-12 12:48:08 +00:00
parent fc32e061ec
commit b599fc022d
28 changed files with 125 additions and 131 deletions

View file

@ -4,7 +4,7 @@
<title><![CDATA[Home Assistant]]></title>
<link href="https://home-assistant.io/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Announcements | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/announcements/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Community | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/community/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Device-Tracking | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/device-tracking/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: ESP8266 | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/esp8266/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: How-To | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/how-to/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: iBeacons | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/ibeacons/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Internet-of-Things | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/internet-of-things/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: IoT-Data | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/iot-data/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Media | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/media/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Merchandise | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/merchandise/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Micropython | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/micropython/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: MQTT | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/mqtt/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Organisation | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/organisation/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: OwnTracks | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/owntracks/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Presence-Detection | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/presence-detection/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Public-Service-Announcement | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/public-service-announcement/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Release-Notes | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/release-notes/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Survey | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/survey/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Talks | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/talks/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Technology | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/technology/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: User-Stories | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/user-stories/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Video | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/video/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Website | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/website/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2017-09-12T08:31:50+00:00</updated>
<updated>2017-09-12T12:41:34+00:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Home Assistant]]></name>

View file

@ -76,7 +76,7 @@
<hr class="divider">
<p>The <code class="highlighter-rouge">xiaomi_philipslight</code> platform allows you to control the state of your Xiaomi Philips LED Ball Lamp and Xiaomi Philips LED Ceiling Lamp.</p>
<p>Currently, the supported features are <code class="highlighter-rouge">on</code>, <code class="highlighter-rouge">off</code>, <code class="highlighter-rouge">set_cct</code> (colortemp) , <code class="highlighter-rouge">set_bright</code> (brightness).</p>
<p>Please follow the instructions on <a href="/components/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>
<p>Please follow the instructions on <a href="/components/vacuum.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>
<p>To add a Xiaomi Philips Light to your installation, add the following to your configuration.yaml file:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entries</span>
<span class="s">light</span><span class="pi">:</span>

View file

@ -76,7 +76,7 @@
<hr class="divider">
<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>
<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>
<p>Please follow the instructions on <a href="/components/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>
<p>Please follow the instructions on <a href="/components/vacuum.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>
<p>To add a vacuum to your installation, add the following to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
<span class="s">vacuum</span><span class="pi">:</span>
@ -196,6 +196,61 @@
</tr>
</tbody>
</table>
<h3><a class="title-link" name="retrieving-the-access-token" href="#retrieving-the-access-token"></a> Retrieving the Access Token</h3>
<p class="note">
This token (32 hexadecimal characters) is required for the Xiaomi Mi Robot Vacuum and Xiaomi Philips Light. The Xiaomi Gateway uses another security method and requires a <code class="highlighter-rouge">key</code> (16 alphanumeric chars) which can be obtained easily via a hidden menu item at the Mi-Home app.
</p>
<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.</p>
<p>Before you begin you need to install <code class="highlighter-rouge">libffi-dev</code> and <code class="highlighter-rouge">libssl-dev</code> by running the command below. This is needed for <code class="highlighter-rouge">python-mirobo</code> to be installed correctly.</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>sudo apt-get install libffi-dev libssl-dev
</code></pre>
</div>
<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>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>sudo su -s /bin/bash homeassistant
<span class="gp">$ </span><span class="nb">source</span> /srv/homeassistant/bin/activate
</code></pre>
</div>
<p>To fetch the token follow these instructions depending on your mobile phone platform.</p>
<h4><a class="title-link" name="windows-and-android" href="#windows-and-android"></a> Windows and Android</h4>
<ol>
<li>Configure the robot with the Mi-Home app.</li>
<li>Enable developer mode and USB debugging on the Android phone and plug it into the computer.</li>
<li>Get and install the <a href="https://developer.android.com/studio/releases/platform-tools.html">ADB tool for Windows</a>.</li>
<li>Create a backup of the application <code class="highlighter-rouge">com.xiaomi.smarthome</code>:
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>adb backup -noapk com.xiaomi.smarthome -f backup.ab
</code></pre>
</div>
</li>
<li>If you have this message: “More than one device or emulator”, use this command to list all devices:
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>adb devices
</code></pre>
</div>
<p>and execute this command:</p>
<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>
</code></pre>
</div>
</li>
<li>On the phone, you must confirm the backup. DO NOT enter any password and press button to make the backup.</li>
<li>Get and install <a href="https://sourceforge.net/projects/adbextractor/">ADB Backup Extractor</a>.</li>
<li>Extract All files from the backup:
<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>
</code></pre>
</div>
</li>
<li>Unzip the “.tar” file.</li>
<li>Open the SQLite database <code class="highlighter-rouge">miio2.db</code> with a tool like SQLite Manager extension for FireFox.</li>
<li>Get the token from “devicerecord” table.</li>
</ol>
<h4><a class="title-link" name="linux-and-android-rooted" href="#linux-and-android-rooted"></a> Linux and Android (rooted!)</h4>
<ol>
<li>Configure the light with the Mi-Home app.</li>
<li>Enable developer mode, USB debugging and root permission only for ADB on the Android phone and plug it into the computer.</li>
<li>Get ADB f.e. <code class="highlighter-rouge">apt-get install android-tools-adb</code></li>
<li><code class="highlighter-rouge">adb devices</code> should list your device</li>
<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>
<li><code class="highlighter-rouge">adb shell</code></li>
<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>
</ol>
</article>
</div>
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">

View file

@ -106,7 +106,6 @@
<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>
</ul>
<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>
<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>
<p>To enable Xiaomi gateway in your installation, add the following to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
<h3><a class="title-link" name="one-gateway" href="#one-gateway"></a> One Gateway</h3>
<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>
@ -187,72 +186,12 @@
<p>That means that Home Assistant is not getting any response from your Xiaomi gateway. Might be a local network problem or your firewall.</p>
<ul>
<li>Make sure you have enabled LAN access: https://community.home-assistant.io/t/beta-xiaomi-gateway-integration/8213/1832</li>
<li>Turn off the firewall on the system where Home Assistant is running</li>
<li>Turn off the firewall on the system where Home Assistant is running.</li>
<li>Try to leave the MAC address <code class="highlighter-rouge">mac:</code> blank.</li>
<li>Try to set <code class="highlighter-rouge">discovery_retry: 10</code></li>
<li>Try to disable and then enable LAN access</li>
<li>Try to set <code class="highlighter-rouge">discovery_retry: 10</code>.</li>
<li>Try to disable and then enable LAN access.</li>
<li>Hard reset the gateway: Press the button of the gateway 30 seconds and start again from scratch.</li>
</ul>
<h3><a class="title-link" name="retrieving-the-access-token" href="#retrieving-the-access-token"></a> Retrieving the Access Token</h3>
<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>
<p>Before you begin you need to install <code class="highlighter-rouge">libffi-dev</code> and <code class="highlighter-rouge">libssl-dev</code> by running the command below. This is needed for <code class="highlighter-rouge">python-mirobo</code> to be installed correctly.</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>sudo apt-get install libffi-dev libssl-dev
</code></pre>
</div>
<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>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>sudo su -s /bin/bash homeassistant
<span class="gp">$ </span><span class="nb">source</span> /srv/homeassistant/bin/activate
</code></pre>
</div>
<p>To fetch the token follow these instructions depending on your mobile phone platform.</p>
<h4><a class="title-link" name="windows-and-android" href="#windows-and-android"></a> Windows and Android</h4>
<ol>
<li>Configure the robot with the Mi-Home app.</li>
<li>Enable developer mode and USB debugging on the Android phone and plug it into the computer.</li>
<li>Get and install the <a href="https://developer.android.com/studio/releases/platform-tools.html">ADB tool for Windows</a>.</li>
<li>Create a backup of the application <code class="highlighter-rouge">com.xiaomi.smarthome</code>:
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>adb backup -noapk com.xiaomi.smarthome -f backup.ab
</code></pre>
</div>
</li>
<li>If you have this message: “More than one device or emulator”, use this command to list all devices:
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>adb devices
</code></pre>
</div>
<p>and execute this command:</p>
<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>
</code></pre>
</div>
</li>
<li>On the phone, you must confirm the backup. DO NOT enter any password and press button to make the backup.</li>
<li>Get and install <a href="https://sourceforge.net/projects/adbextractor/">ADB Backup Extractor</a>.</li>
<li>Extract All files from the backup:
<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>
</code></pre>
</div>
</li>
<li>Unzip the “.tar” file.</li>
<li>Open the SQLite database <code class="highlighter-rouge">miio2.db</code> with a tool like SQLite Manager extension for FireFox.</li>
<li>Get the token from “devicerecord” table.</li>
</ol>
<h4><a class="title-link" name="linux-and-android-rooted" href="#linux-and-android-rooted"></a> Linux and Android (rooted!)</h4>
<ol>
<li>Configure the light with the Mi-Home app.</li>
<li>Enable developer mode, USB debugging and root permission only for ADB on the Android phone and plug it into the computer.</li>
<li>Get ADB f.e. <code class="highlighter-rouge">apt-get install android-tools-adb</code></li>
<li><code class="highlighter-rouge">adb devices</code> should list your device</li>
<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>
<li><code class="highlighter-rouge">adb shell</code></li>
<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>
</ol>
<h4><a class="title-link" name="macos-and-ios" href="#macos-and-ios"></a> macOS and iOS</h4>
<ol>
<li>Setup iOS device with the Mi-Home app.</li>
<li>Create an unencrypted backup of the device using iTunes.</li>
<li>Install <a href="http://www.imactools.com/iphonebackupviewer/">iBackup Viewer</a>.</li>
<li>Extract this file: <strong><code class="highlighter-rouge">/raw data/com.xiami.mihome/1234567_mihome.sqlite</code></strong> to your computer, where <code class="highlighter-rouge">_1234567_</code> is any string of numbers.</li>
<li>Open the SQLite database with a tool like SQLite Manager extension for FireFox or DB Browser. 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>.
(Location of SQLite files directly on iOS devices <strong>/private/var/mobile/Containers/Data/Application/A80CE9E4-AD2E-4649-8C28-801C96B16BD7/Documents/</strong>)</li>
</ol>
</article>
</div>
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">

View file

@ -3306,7 +3306,7 @@
</url>
<url>
<loc>https://home-assistant.io/components/switch.hook/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/cookbook/automation_for_rainy_days/</loc>
@ -3938,99 +3938,99 @@
</url>
<url>
<loc>https://home-assistant.io/docs/autostart/init.d/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/api/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/configuration/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/example_apps/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/installation/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/operation/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/reboot/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/running/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/tutorial/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/updating/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/appdaemon/windows/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/certificates/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/hadashboard/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/hass-configurator/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/ios/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/nginx/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/notebooks/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/scenegen/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/ecosystem/synology/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/tools/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/tools/dev-tools/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/tools/hass/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/docs/tools/scripts/</loc>
<lastmod>2017-09-12T08:31:50+00:00</lastmod>
<lastmod>2017-09-12T12:41:34+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/faq/after-upgrading/</loc>
@ -5030,62 +5030,62 @@
</url>
<url>
<loc>https://home-assistant.io/demo/frontend.html</loc>
<lastmod>2017-09-12T08:30:53+00:00</lastmod>
<lastmod>2017-09-12T12:40:59+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/demo/index.html</loc>
<lastmod>2017-09-12T08:30:53+00:00</lastmod>
<lastmod>2017-09-12T12:40:59+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-event.html</loc>
<lastmod>2017-09-12T08:30:53+00:00</lastmod>
<lastmod>2017-09-12T12:40:59+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-info.html</loc>
<lastmod>2017-09-12T08:30:53+00:00</lastmod>
<lastmod>2017-09-12T12:40:59+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-service.html</loc>
<lastmod>2017-09-12T08:30:53+00:00</lastmod>
<lastmod>2017-09-12T12:40:59+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-state.html</loc>
<lastmod>2017-09-12T08:30:53+00:00</lastmod>
<lastmod>2017-09-12T12:40:59+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-template.html</loc>
<lastmod>2017-09-12T08:30:53+00:00</lastmod>
<lastmod>2017-09-12T12:40:59+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/demo/panels/ha-panel-history.html</loc>
<lastmod>2017-09-12T08:30:53+00:00</lastmod>
<lastmod>2017-09-12T12:40:59+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/demo/panels/ha-panel-iframe.html</loc>
<lastmod>2017-09-12T08:30:53+00:00</lastmod>
<lastmod>2017-09-12T12:40:59+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/demo/panels/ha-panel-logbook.html</loc>
<lastmod>2017-09-12T08:30:53+00:00</lastmod>
<lastmod>2017-09-12T12:40:59+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/demo/panels/ha-panel-map.html</loc>
<lastmod>2017-09-12T08:30:53+00:00</lastmod>
<lastmod>2017-09-12T12:40:59+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/googlef4f3693c209fe788.html</loc>
<lastmod>2017-09-12T08:30:53+00:00</lastmod>
<lastmod>2017-09-12T12:40:59+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html</loc>
<lastmod>2017-09-12T08:30:53+00:00</lastmod>
<lastmod>2017-09-12T12:40:59+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html</loc>
<lastmod>2017-09-12T08:30:53+00:00</lastmod>
<lastmod>2017-09-12T12:41:00+00:00</lastmod>
</url>
<url>
<loc>https://home-assistant.io/static/mdi-demo.html</loc>
<lastmod>2017-09-12T08:30:53+00:00</lastmod>
<lastmod>2017-09-12T12:41:00+00:00</lastmod>
</url>
</urlset>