From b599fc022d0ca7bd6b9412fbaebfb7f06728199f Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 12 Sep 2017 12:48:08 +0000 Subject: [PATCH] Site updated at 2017-09-12 12:48:08 UTC --- atom.xml | 2 +- blog/categories/announcements/atom.xml | 2 +- blog/categories/community/atom.xml | 2 +- blog/categories/device-tracking/atom.xml | 2 +- blog/categories/esp8266/atom.xml | 2 +- blog/categories/how-to/atom.xml | 2 +- blog/categories/ibeacons/atom.xml | 2 +- blog/categories/internet-of-things/atom.xml | 2 +- blog/categories/iot-data/atom.xml | 2 +- blog/categories/media/atom.xml | 2 +- blog/categories/merchandise/atom.xml | 2 +- blog/categories/micropython/atom.xml | 2 +- blog/categories/mqtt/atom.xml | 2 +- blog/categories/organisation/atom.xml | 2 +- blog/categories/owntracks/atom.xml | 2 +- blog/categories/presence-detection/atom.xml | 2 +- .../public-service-announcement/atom.xml | 2 +- blog/categories/release-notes/atom.xml | 2 +- blog/categories/survey/atom.xml | 2 +- blog/categories/talks/atom.xml | 2 +- blog/categories/technology/atom.xml | 2 +- blog/categories/user-stories/atom.xml | 2 +- blog/categories/video/atom.xml | 2 +- blog/categories/website/atom.xml | 2 +- .../light.xiaomi_philipslight/index.html | 2 +- components/vacuum.xiaomi/index.html | 57 ++++++++++++- components/xiaomi/index.html | 69 +--------------- sitemap.xml | 80 +++++++++---------- 28 files changed, 125 insertions(+), 131 deletions(-) diff --git a/atom.xml b/atom.xml index 6bba41d9bb..ae0b817e90 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index b7080a9be7..acc4da0edc 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 127053925d..45832592de 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index b7e1cf65fb..792f44ba32 100644 --- a/blog/categories/device-tracking/atom.xml +++ b/blog/categories/device-tracking/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Device-Tracking | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 310f335828..e6eb1dd7fe 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 1709c2a91e..cf854ccaf3 100644 --- a/blog/categories/how-to/atom.xml +++ b/blog/categories/how-to/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: How-To | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index d3bed77632..4e10930af2 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/internet-of-things/atom.xml b/blog/categories/internet-of-things/atom.xml index 2235b036b9..4239c5f7be 100644 --- a/blog/categories/internet-of-things/atom.xml +++ b/blog/categories/internet-of-things/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Internet-of-Things | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 645eb0b4da..99e9903d2e 100644 --- a/blog/categories/iot-data/atom.xml +++ b/blog/categories/iot-data/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: IoT-Data | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/media/atom.xml b/blog/categories/media/atom.xml index e01e63945d..5f2354951d 100644 --- a/blog/categories/media/atom.xml +++ b/blog/categories/media/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Media | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index 0388a57805..7742041530 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index 0166a19fda..8a7254c480 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index b6f591e5ab..327e270826 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index b0a6bbd296..5783713881 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index d0790431ad..ba37aa15ac 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 55830a2c4d..429ca03acd 100644 --- a/blog/categories/presence-detection/atom.xml +++ b/blog/categories/presence-detection/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Presence-Detection | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/public-service-announcement/atom.xml b/blog/categories/public-service-announcement/atom.xml index 21304027bf..9f101525a0 100644 --- a/blog/categories/public-service-announcement/atom.xml +++ b/blog/categories/public-service-announcement/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Public-Service-Announcement | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index d361a55f07..67780701f9 100644 --- a/blog/categories/release-notes/atom.xml +++ b/blog/categories/release-notes/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Release-Notes | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 69f63f2227..ef5566d978 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 43f4da6126..5d343d9e0e 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 029f9ac565..b63cb985c4 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index a3fb6962d2..7be508adea 100644 --- a/blog/categories/user-stories/atom.xml +++ b/blog/categories/user-stories/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: User-Stories | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index ca2a256dcc..ccdbac25f7 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 5021aeef37..c7a9d1595b 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2017-09-12T08:31:50+00:00 + 2017-09-12T12:41:34+00:00 https://home-assistant.io/ diff --git a/components/light.xiaomi_philipslight/index.html b/components/light.xiaomi_philipslight/index.html index 83ec858d31..868eaeb3c4 100644 --- a/components/light.xiaomi_philipslight/index.html +++ b/components/light.xiaomi_philipslight/index.html @@ -76,7 +76,7 @@

The xiaomi_philipslight platform allows you to control the state of your Xiaomi Philips LED Ball Lamp and Xiaomi Philips LED Ceiling Lamp.

Currently, the supported features are on, off, set_cct (colortemp) , set_bright (brightness).

-

Please follow the instructions on Retrieving the Access Token to get the API token to use in the configuration.yaml file.

+

Please follow the instructions on Retrieving the Access Token to get the API token to use in the configuration.yaml file.

To add a Xiaomi Philips Light to your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entries
 light:
diff --git a/components/vacuum.xiaomi/index.html b/components/vacuum.xiaomi/index.html
index bfe3962e1b..100d5ac222 100644
--- a/components/vacuum.xiaomi/index.html
+++ b/components/vacuum.xiaomi/index.html
@@ -76,7 +76,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.

-

Please follow the instructions on Retrieving the Access Token to get the API token to use in the configuration.yaml file.

+

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:
@@ -196,6 +196,61 @@
     
   
 
+

Retrieving the Access Token

+

+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 key (16 alphanumeric chars) which can be obtained easily via a hidden menu item at the Mi-Home app. +

+

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.

+

Before you begin you need to install libffi-dev and libssl-dev by running the command below. This is needed for python-mirobo to be installed correctly.

+
$ sudo apt-get install libffi-dev libssl-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.

+

Windows and Android

+
    +
  1. Configure the robot with the Mi-Home app.
  2. +
  3. Enable developer mode and USB debugging on the Android phone and plug it into the computer.
  4. +
  5. Get and install the ADB tool for Windows.
  6. +
  7. Create a backup of the application com.xiaomi.smarthome: +
    $ adb backup -noapk com.xiaomi.smarthome -f backup.ab
    +
    +
    +
  8. +
  9. If you have this message: “More than one device or emulator”, use this command to list all devices: +
    $ 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)
    +
    +
    +
  10. +
  11. On the phone, you must confirm the backup. DO NOT enter any password and press button to make the backup.
  12. +
  13. Get and install ADB Backup Extractor.
  14. +
  15. Extract All files from the backup: +
    $ java.exe -jar ../android-backup-extractor/abe.jar unpack backup.ab backup.tar ""
    +
    +
    +
  16. +
  17. Unzip the “.tar” file.
  18. +
  19. Open the SQLite database miio2.db with a tool like SQLite Manager extension for FireFox.
  20. +
  21. Get the token from “devicerecord” table.
  22. +
+

Linux and Android (rooted!)

+
    +
  1. Configure the light with the Mi-Home app.
  2. +
  3. Enable developer mode, USB debugging and root permission only for ADB on the Android phone and plug it into the computer.
  4. +
  5. Get ADB f.e. apt-get install android-tools-adb
  6. +
  7. adb devices should list your device
  8. +
  9. adb root (does work for development builds only: ones with ro.debuggable=1)
  10. +
  11. adb shell
  12. +
  13. 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.
  14. +