From e2b5f4a76255d3436ed0333963f053038cfdf70a Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 26 Aug 2017 11:10:56 +0000 Subject: [PATCH] Site updated at 2017-08-26 11:10:56 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 +- components/xiaomi/index.html | 72 +++++++++++++++++-- sitemap.xml | 30 ++++---- 26 files changed, 105 insertions(+), 45 deletions(-) diff --git a/atom.xml b/atom.xml index c925ccd51e..99c1e6d534 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index 6a8c5721ae..c52136d929 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2017-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 37252c6c0f..1e9c133bba 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2017-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 66261f5c79..12f8c620d2 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-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 1fa513bcbb..040a7730da 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2017-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 6831d02251..ae56ec94de 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-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 2bf387239f..040d2fd207 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2017-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+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 bd4eb2e1f8..5fb61a3767 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-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 31ee7cae8d..5f08bf4b5b 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-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/media/atom.xml b/blog/categories/media/atom.xml index 45b6d950f6..0cf534b55b 100644 --- a/blog/categories/media/atom.xml +++ b/blog/categories/media/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Media | Home Assistant]]> - 2017-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index 9d6d3f0806..1509bc1865 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2017-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index b3cea1f444..e91de7b28c 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2017-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index c1fa6750fe..fbe9ed51e4 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2017-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 2d061dfb2a..d4a0866fd4 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2017-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 6571d0a782..67820acf3e 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2017-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 416c514ee2..29a04999e3 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-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+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 aa2dbdce4d..8a617e22f6 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-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 7ebe8069b7..77851a137f 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-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 75f5ac4a55..4cec958c80 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2017-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index e374163893..d45178f61a 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2017-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 0c82b24ec2..870bbd10d1 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2017-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 11a73aae44..6baf04e599 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-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 614bcc7d03..d763e62b1e 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2017-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 6dc731623a..35b329023d 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2017-08-26T10:45:48+00:00 + 2017-08-26T11:01:28+00:00 https://home-assistant.io/ diff --git a/components/xiaomi/index.html b/components/xiaomi/index.html index 1bfc3f7762..ce088fe58d 100644 --- a/components/xiaomi/index.html +++ b/components/xiaomi/index.html @@ -105,8 +105,8 @@
  • Decoupled mode of the Aqara Wall Switches (Single & Double)
  • Additional alarm events of the Gas and Smoke Detector: Analog alarm, battery fault alarm (smoke detector only), sensitivity fault alarm, I2C communication failure
  • -

    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

    -

    To enable Xioami gateway in your installation, add the following to your configuration.yaml file:

    +

    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

    +

    To enable Xiaomi gateway in your installation, add the following to your configuration.yaml file:

    One Gateway

    # You can leave mac empty if you only have one gateway.
     xiaomi:
    @@ -137,7 +137,7 @@
     

    Configuration variables:

    • mac (Optional): The MAC of your gateway. Required if you have more than one.
    • -
    • key (Optional): The key of your gateway. Required if you also want to control lights and switches; sensors and binary sensors will still work.
    • +
    • key (Optional): The key of your gateway. Required if you also want to control lights and switches. Sensors and binary sensors will still work.
    • discovery_retry (Optional): Amount of times Home Assitant should try to reconnect to the Xiaomi Gateway. Default is 3.
    • interface (Optional): Which network interface to use. Defaults to any.
    @@ -147,7 +147,7 @@
  • alarm ringtones [0-8]
  • doorbell ring [10-13]
  • alarm clock [20-29]
  • -
  • custom ringtones (uploaded by mi home app) starting from 10001
  • +
  • custom ringtones (uploaded by the Mi Home app) starting from 10001
  • Automation example

    - alias: Let a dog bark on long press
    @@ -177,6 +177,66 @@
           gw_mac: xxxxxxxxxxxx
     
    +

    Retrieving Access Token

    +

    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.

    +

    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. +
    +

    macOS and iOS

    +
      +
    1. Setup iOS device with the Mi-Home app.
    2. +
    3. Create an unencrypted backup of the device using iTunes.
    4. +
    5. Install iBackup Viewer.
    6. +
    7. Extract this file: /raw data/com.xiami.mihome/1234567_mihome.sqlite to your computer, where _1234567_ is any string of numbers.
    8. +
    9. 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 ZToken and looks like 123a1234567b12345c1d123456789e12.
    10. +

    Troubleshooting

    Connection problem

    2017-08-20 16:51:19 ERROR (SyncWorker_0) [homeassistant.components.xiaomi] No gateway discovered
    @@ -186,8 +246,8 @@
     

    That means that Home Assistant is not getting any response from your Xiaomi gateway. Might be a local network problem or your firewall.

    • Make sure you have enabled LAN access: https://community.home-assistant.io/t/beta-xiaomi-gateway-integration/8213/1832
    • -
    • Turn off the firewall on the HA computer
    • -
    • Try to leave the mac address blank.
    • +
    • Turn off the firewall on the system where Home Assistant is running
    • +
    • Try to leave the MAC address mac: blank.
    • Try to set discovery_retry: 10
    • Try to disable and then enable LAN access
    diff --git a/sitemap.xml b/sitemap.xml index 1f309f40a4..41ff733afd 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -3933,62 +3933,62 @@ https://home-assistant.io/demo/frontend.html -2017-08-26T10:44:15+00:00 +2017-08-26T10:59:53+00:00 https://home-assistant.io/demo/index.html -2017-08-26T10:44:15+00:00 +2017-08-26T10:59:53+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2017-08-26T10:44:15+00:00 +2017-08-26T10:59:53+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2017-08-26T10:44:15+00:00 +2017-08-26T10:59:53+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2017-08-26T10:44:15+00:00 +2017-08-26T10:59:53+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2017-08-26T10:44:15+00:00 +2017-08-26T10:59:53+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2017-08-26T10:44:15+00:00 +2017-08-26T10:59:53+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2017-08-26T10:44:15+00:00 +2017-08-26T10:59:53+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2017-08-26T10:44:15+00:00 +2017-08-26T10:59:53+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2017-08-26T10:44:15+00:00 +2017-08-26T10:59:53+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2017-08-26T10:44:15+00:00 +2017-08-26T10:59:53+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2017-08-26T10:44:15+00:00 +2017-08-26T10:59:53+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2017-08-26T10:44:15+00:00 +2017-08-26T10:59:54+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2017-08-26T10:44:15+00:00 +2017-08-26T10:59:54+00:00 https://home-assistant.io/static/mdi-demo.html -2017-08-26T10:44:15+00:00 +2017-08-26T10:59:54+00:00