diff --git a/atom.xml b/atom.xml index 26edc0cca0..71ce2cedd8 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
The xiaomi
vacuum platform allows you to control the state of your Xiaomi Mi Robot Vacuum.
Current supported features are turn_on
, pause
, stop
, return_to_home
, turn_off
(stops goes to dock), locate
, clean_spot
, set_fanspeed
and even remote control your robot.
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.
-Before you begin you need to install libffi-dev
by running the command below. This is needed for python-mirobi
to be installed correctly.
$ sudo apt-get install libffi-dev
-
-If your Home Assistant installation is running in a Virtualenv, make sure you activate it by running the commands below.
-$ sudo su -s /bin/bash homeassistant
-$ source /srv/homeassistant/bin/activate
-
-To fetch the token follow these instructions depending on your mobile phone platform.
-$ adb backup -noapk com.xiaomi.smarthome -f backup.ab
-
- $ adb devices
-
- and execute this command:
-$ adb -s DEVICEID backup -noapk com.xiaomi.smarthome -f backup.ab # (with DEVICEID the device id from the previous command)
-
- $ java.exe -jar ../android-backup-extractor/abe.jar unpack backup.ab backup.tar ""
-
- miio2.db
with a tool like SQLite Manager extension for FireFox.apt-get install android-tools-adb
adb devices
should list your deviceadb root
(does work for development builds only: ones with ro.debuggable=1
)adb shell
echo "select name,localIP,token from devicerecord;" | sqlite3 /data/data/com.xiaomi.smarthome/databases/miio2.db
returns a list of all registered devices including ip address and token./raw data/com.xiami.mihome/1234567_mihome.sqlite
to your computer, where 1234567 is any string of numbers.ZToken
and looks like 123a1234567b12345c1d123456789e12
.Please follow the instructions on Retrieving the Access Token to get the API token to use in the configuration.yaml
file.
To add a vacuum to your installation, add the following to your configuration.yaml
file:
# Example configuration.yaml entry
vacuum:
- platform: xiaomi
host: 192.168.1.2
- token: your-token-here
+ token: YOUR_TOKEN
Configuration variables:
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 this tutorial
+Please check the instructions in this section to get the API token to use with your platforms.
To enable Xiaomi gateway in your installation, add the following to your configuration.yaml
file:
# You can leave mac empty if you only have one gateway.
@@ -177,7 +178,7 @@
gw_mac: xxxxxxxxxxxx
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 xiaomi
platforms.
Before you begin you need to install libffi-dev
by running the command below. This is needed for python-mirobi
to be installed correctly.
$ sudo apt-get install libffi-dev
diff --git a/sitemap.xml b/sitemap.xml
index 08cb6524ab..c7c8451be6 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -3933,62 +3933,62 @@
https://home-assistant.io/demo/frontend.html
-2017-08-26T11:10:56+00:00
+2017-08-26T11:43:19+00:00
https://home-assistant.io/demo/index.html
-2017-08-26T11:10:56+00:00
+2017-08-26T11:43:19+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-event.html
-2017-08-26T11:10:56+00:00
+2017-08-26T11:43:19+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-info.html
-2017-08-26T11:10:56+00:00
+2017-08-26T11:43:19+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-service.html
-2017-08-26T11:10:56+00:00
+2017-08-26T11:43:19+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-state.html
-2017-08-26T11:10:56+00:00
+2017-08-26T11:43:19+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-template.html
-2017-08-26T11:10:56+00:00
+2017-08-26T11:43:19+00:00
https://home-assistant.io/demo/panels/ha-panel-history.html
-2017-08-26T11:10:56+00:00
+2017-08-26T11:43:19+00:00
https://home-assistant.io/demo/panels/ha-panel-iframe.html
-2017-08-26T11:10:56+00:00
+2017-08-26T11:43:19+00:00
https://home-assistant.io/demo/panels/ha-panel-logbook.html
-2017-08-26T11:10:56+00:00
+2017-08-26T11:43:19+00:00
https://home-assistant.io/demo/panels/ha-panel-map.html
-2017-08-26T11:10:56+00:00
+2017-08-26T11:43:19+00:00
https://home-assistant.io/googlef4f3693c209fe788.html
-2017-08-26T11:10:56+00:00
+2017-08-26T11:43:19+00:00
https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-2017-08-26T11:10:56+00:00
+2017-08-26T11:43:20+00:00
https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-2017-08-26T11:10:56+00:00
+2017-08-26T11:43:20+00:00
https://home-assistant.io/static/mdi-demo.html
-2017-08-26T11:10:56+00:00
+2017-08-26T11:43:20+00:00