diff --git a/atom.xml b/atom.xml index dbac647c79..c925ccd51e 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-08-26T10:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index 2334c3e3d1..6a8c5721ae 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index f2f4c4b883..37252c6c0f 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index d6387940cd..66261f5c79 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 0f86130cec..1fa513bcbb 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 188cf5f6d3..6831d02251 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 0594d41d27..2bf387239f 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:02:04+00:00 + 2017-08-26T10:45:48+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 f6bf531b97..bd4eb2e1f8 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index eb1c1fafc2..31ee7cae8d 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/media/atom.xml b/blog/categories/media/atom.xml index ebfc38cc60..45b6d950f6 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index b5e52a8715..9d6d3f0806 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index 078f44b71e..b3cea1f444 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index d2ea3c038d..c1fa6750fe 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 11cf33063c..2d061dfb2a 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index b47f06e953..6571d0a782 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 802ae550fc..416c514ee2 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:02:04+00:00 + 2017-08-26T10:45:48+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 b7e4d7da04..aa2dbdce4d 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 7ea9a25f12..7ebe8069b7 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 4a06fcba87..75f5ac4a55 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 8b1c248c05..e374163893 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 1a95848abb..0c82b24ec2 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index dc97f8efe3..11a73aae44 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 272cdb9578..614bcc7d03 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index b1159421f1..6dc731623a 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:02:04+00:00 + 2017-08-26T10:45:48+00:00 https://home-assistant.io/ diff --git a/components/vacuum.xiaomi/index.html b/components/vacuum.xiaomi/index.html index f5343eb418..ce03cd6cb1 100644 --- a/components/vacuum.xiaomi/index.html +++ b/components/vacuum.xiaomi/index.html @@ -79,47 +79,56 @@

Getting started

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.

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

+

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

+

Windows and Android

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

macOS and iOS

+

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. Create an unencrypted backup of the device using iTunes.
  3. @@ -128,19 +137,19 @@ If your Home Assistant installation is running in a ZToken
    and looks like 123a1234567b12345c1d123456789e12.

Configuration

+

To add a vacuum to your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
 vacuum:
-- platform: xiaomi
-  name: 'name of the robot'
-  host: 192.168.1.2
-  token: your-token-here
+  - platform: xiaomi
+    host: 192.168.1.2
+    token: your-token-here
 

Configuration variables:

    -
  • name (Optional): The name of your robot
  • -
  • host (Required): The IP of your robot
  • -
  • token (Required): The token of your robot. Go to Getting started section to read more about how to get it
  • +
  • host (Required): The IP of your robot.
  • +
  • token (Required): The token of your robot. Go to Getting started section to read more about how to get it.
  • +
  • name (Optional): The name of your robot.

Platform services

In addition to all vacuum component services (turn_on, turn_off, start_pause, stop, return_to_home, locate, set_fanspeed and send_command), the xiaomi platform introduces specific services to access the remote control mode of the botvac.

@@ -256,6 +265,9 @@ If your Home Assistant installation is running in a : Local Polling +
Introduced in release: 0.51
diff --git a/components/xiaomi/index.html b/components/xiaomi/index.html index fe28a16918..1bfc3f7762 100644 --- a/components/xiaomi/index.html +++ b/components/xiaomi/index.html @@ -107,7 +107,7 @@

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:

-

One Gateway

+

One Gateway

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

Multiple Gateways

+

Multiple Gateways

# 12 characters mac can be obtained from the gateway.
 xiaomi:
   gateways:
@@ -125,8 +125,8 @@
       key: xxxxxxxxxxxxxxxx
 
-

Search for gateways on specific interface

-
# 12 characters mac can be obtained from the gateway.
+

Search for gateways on specific interface

+
# 12 characters MAC can be obtained from the gateway.
 xiaomi:
   interface: '192.168.0.1'
   gateways:
@@ -179,8 +179,8 @@
 

Troubleshooting

Connection problem

-
2017-08-20 16:51:19 ERROR (SyncWorker_0) [homeassistant.components.xiaomi] No gateway discovered
-2017-08-20 16:51:20 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi: Component failed to initialize.
+
2017-08-20 16:51:19 ERROR (SyncWorker_0) [homeassistant.components.xiaomi] No gateway discovered
+2017-08-20 16:51:20 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi: Component failed to initialize.
 

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

diff --git a/developers/asyncio_working_with_async/index.html b/developers/asyncio_working_with_async/index.html index 9d214ba151..186cc2fdd0 100644 --- a/developers/asyncio_working_with_async/index.html +++ b/developers/asyncio_working_with_async/index.html @@ -107,7 +107,7 @@ # Setup your platform inside of the event loop
-

The only difference with the original parameters is that the add_entities function has been replaced by the async friendly callback async_add_entities.

+

The only difference with the original parameters is that the add_entities function has been replaced by the async friendly callback async_add_entities.

Implementing an async entity

You can make your entity async friendly by converting your update method to be async. This requires the dependency of your entities to also be async friendly!

class MyEntity(Entity):
diff --git a/sitemap.xml b/sitemap.xml
index 88f7b75504..1f309f40a4 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -3933,62 +3933,62 @@
 
 
 https://home-assistant.io/demo/frontend.html
-2017-08-26T10:00:36+00:00
+2017-08-26T10:44:15+00:00
 
 
 https://home-assistant.io/demo/index.html
-2017-08-26T10:00:36+00:00
+2017-08-26T10:44:15+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-dev-event.html
-2017-08-26T10:00:36+00:00
+2017-08-26T10:44:15+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-dev-info.html
-2017-08-26T10:00:36+00:00
+2017-08-26T10:44:15+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-dev-service.html
-2017-08-26T10:00:36+00:00
+2017-08-26T10:44:15+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-dev-state.html
-2017-08-26T10:00:36+00:00
+2017-08-26T10:44:15+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-dev-template.html
-2017-08-26T10:00:36+00:00
+2017-08-26T10:44:15+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-history.html
-2017-08-26T10:00:36+00:00
+2017-08-26T10:44:15+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-iframe.html
-2017-08-26T10:00:36+00:00
+2017-08-26T10:44:15+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-logbook.html
-2017-08-26T10:00:36+00:00
+2017-08-26T10:44:15+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-map.html
-2017-08-26T10:00:36+00:00
+2017-08-26T10:44:15+00:00
 
 
 https://home-assistant.io/googlef4f3693c209fe788.html
-2017-08-26T10:00:36+00:00
+2017-08-26T10:44:15+00:00
 
 
 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-2017-08-26T10:00:37+00:00
+2017-08-26T10:44:15+00:00
 
 
 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-2017-08-26T10:00:37+00:00
+2017-08-26T10:44:15+00:00
 
 
 https://home-assistant.io/static/mdi-demo.html
-2017-08-26T10:00:37+00:00
+2017-08-26T10:44:15+00:00