You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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
81
<p>Before you begin you need to install <codeclass="highlighter-rouge">libffi-dev</code> by running the command below. This is needed for <codeclass="highlighter-rouge">python-mirobi</code> to be installed correctly.</p>
If your Home Assistant installation is running in a <ahref="/docs/installation/virtualenv/#upgrading-home-assistant">Virtualenv</a>, make sure you activate it by running the commands below.</p>
85
+
<p>If your Home Assistant installation is running in a <ahref="/docs/installation/virtualenv/#upgrading-home-assistant">Virtualenv</a>, make sure you activate it by running the commands below.</p>
87
86
<divclass="language-bash highlighter-rouge"><preclass="highlight"><code><spanclass="gp">$ </span>sudo su -s /bin/bash homeassistant
<divclass="language-bash highlighter-rouge"><preclass="highlight"><code>.<spanclass="se">\a</span>db -s DEVICEID backup -noapk com.xiaomi.smarthome -f backup.ab <spanclass="c"># (with DEVICEID the device id from the previous command)</span>
106
+
<divclass="language-bash highlighter-rouge"><preclass="highlight"><code><spanclass="gp">$ </span>adb -s DEVICEID backup -noapk com.xiaomi.smarthome -f backup.ab <spanclass="c"># (with DEVICEID the device id from the previous command)</span>
108
107
</code></pre>
109
108
</div>
110
109
</li>
111
110
<li>On the phone, you must confirm the backup. DO NOT enter any password and press button to make the backup.</li>
<li><codeclass="highlighter-rouge">adb devices</code> should list your device</li>
127
+
<li><codeclass="highlighter-rouge">adb root</code> (does work for development builds only: ones with <codeclass="highlighter-rouge">ro.debuggable=1</code>)</li>
<li><codeclass="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><aclass="title-link" name="macos-and-ios" href="#macos-and-ios"></a> macOS and iOS</h3>
123
132
<ol>
124
133
<li>Setup iOS device with the Mi-Home app.</li>
125
134
<li>Create an unencrypted backup of the device using iTunes.</li>
@@ -128,19 +137,19 @@ <h3>macOS and iOS</h3>
128
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><codeclass="highlighter-rouge">ZToken</code></strong> and looks like <strong><codeclass="highlighter-rouge">123a1234567b12345c1d123456789e12</code></strong>.</li>
<p>In addition to all <ahref="/components/vacuum#component-services"><codeclass="highlighter-rouge">vacuum</code> component services</a> (<codeclass="highlighter-rouge">turn_on</code>, <codeclass="highlighter-rouge">turn_off</code>, <codeclass="highlighter-rouge">start_pause</code>, <codeclass="highlighter-rouge">stop</code>, <codeclass="highlighter-rouge">return_to_home</code>, <codeclass="highlighter-rouge">locate</code>, <codeclass="highlighter-rouge">set_fanspeed</code> and <codeclass="highlighter-rouge">send_command</code>), the <codeclass="highlighter-rouge">xiaomi</code> platform introduces specific services to access the remote control mode of the botvac.</p>
@@ -256,6 +265,9 @@ <h4><a class="title-link" name="service-vacuumxiaomi_remote_control_move_step" h
256
265
<divclass='brand-logo-container section'>
257
266
<imgsrc='/images/supported_brands/xiaomi.png' />
258
267
</div>
268
+
<divclass='section'>
269
+
IoT class<sup><ahref='/blog/2016/02/12/classifying-the-internet-of-things/#classifiers'><iclass="icon-info-sign"></i></a></sup>: Local Polling
0 commit comments