From a7127854a22bf00b273b13ed5c53a719ac7b343b Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 30 Oct 2017 21:14:39 +0000 Subject: [PATCH] Site updated at 2017-10-30 21:14:39 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/vacuum.xiaomi_miio/index.html | 30 ++----- cookbook/track_battery_level/index.html | 15 +++- sitemap.xml | 80 +++++++++---------- 27 files changed, 83 insertions(+), 90 deletions(-) diff --git a/atom.xml b/atom.xml index 225cc82bfb..fb80189e55 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index f84f94afe3..17318179ad 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2017-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 21be4162d0..b68666412b 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2017-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index a56b02fe23..505367c3d1 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-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 3ed4f47cf7..de3b08abfa 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2017-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index a0d133eddd..05f972755f 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-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 2254f4b602..7f5bd84d1b 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2017-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+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 d037b6ec41..5c415b3642 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-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 1800bf96a7..810368a2e1 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-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/media/atom.xml b/blog/categories/media/atom.xml index 254ba5cbba..276c0542ef 100644 --- a/blog/categories/media/atom.xml +++ b/blog/categories/media/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Media | Home Assistant]]> - 2017-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index f0ff634dcd..e64bfc013b 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2017-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index 7edfd13b2b..ba6053873e 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2017-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index e8f58bfcdd..e7252771ff 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2017-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 1e01885322..da3f403c15 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2017-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index fcf31dbc1a..592d6cd405 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2017-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 1c850eafdf..1bc5feef0c 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-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+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 72ef3d53ef..e792e46506 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-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index d66316ea57..27d5d3f7d1 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-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 1b0c816105..796f07c116 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2017-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 8685c3f799..4ff0cbcb6c 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2017-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index be641cc623..525c28f8f0 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2017-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 9f4f4341d0..2593b6ac8c 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-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index af3e3cffd6..2bb58216f3 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2017-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 9597d2ba46..7d362d0206 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2017-10-30T17:26:33+00:00 + 2017-10-30T21:04:31+00:00 https://home-assistant.io/ diff --git a/components/vacuum.xiaomi_miio/index.html b/components/vacuum.xiaomi_miio/index.html index 0c4143d02f..7213a97a96 100644 --- a/components/vacuum.xiaomi_miio/index.html +++ b/components/vacuum.xiaomi_miio/index.html @@ -311,32 +311,12 @@ easily via a hidden menu item at the Mi-Home app.

To fetch the token follow these instructions depending on your mobile phone platform.

  1. Configure the robot with the Mi-Home app.
  2. +
  3. Download and extract the MiToolKit.zip.
  4. Enable developer mode and USB debugging on the Android phone and plug it into the computer.
  5. -
  6. Get and install the ADB tool for Windows.
  7. -
  8. Create a backup of the application com.xiaomi.smarthome: -
    $ adb backup -noapk com.xiaomi.smarthome -f backup.ab
    -
    -
    -
  9. -
  10. 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)
    -
    -
    -
  11. -
  12. On the phone, you must confirm the backup. DO NOT enter any password and press button to make the backup.
  13. -
  14. Get and install ADB Backup Extractor.
  15. -
  16. Extract All files from the backup: -
    $ java.exe -jar ../android-backup-extractor/abe.jar unpack backup.ab backup.tar ""
    -
    -
    -
  17. -
  18. Unzip the “.tar” file.
  19. -
  20. Open the SQLite database miio2.db with a tool like SQLite Manager extension for FireFox.
  21. -
  22. Get the token from “devicerecord” table.
  23. +
  24. Change the MiToolKit language to English if you need to.
  25. +
  26. Click “Extract Token”
  27. +
  28. On the phone, you must confirm the backup. DO NOT enter any password and press the button to make the backup.
  29. +
  30. Once you have confirmed the backup the token extraction will begin, it should appear in the MiToolKit shortly.

Linux and Android (rooted!)

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.

diff --git a/cookbook/track_battery_level/index.html b/cookbook/track_battery_level/index.html index 8c3f64a1d4..7a4e38e298 100644 --- a/cookbook/track_battery_level/index.html +++ b/cookbook/track_battery_level/index.html @@ -75,11 +75,14 @@

iOS Devices

-

If you have a device running iOS (iPhone, iPad, etc), The iCloud is gathering various details about your device including the battery level. To display it in the Frontend use a template sensor.

+

If you have a device running iOS (iPhone, iPad, etc), The iCloud is gathering various details about your device including the battery level. To display it in the Frontend use a template sensor. You can also use the icon template option to create a dynamic icon that changes with the battery level.

sensor:
   - platform: template
     sensors:
       battery_iphone:
+        friendly_name: iPhone Battery
+        # "entity_id:" ensures that this sensor will only update when your device tracker does.
+        entity_id: device_tracker.iphone
         unit_of_measurement: '%'
         value_template: >-
             {%- if states.device_tracker.iphone.attributes.battery %}
@@ -87,6 +90,16 @@
             {% else %}
                 {{ states.sensor.battery_iphone.state }}
             {%- endif %}
+        icon_template: >
+            {% set battery_level = states.sensor.battery_iphone.state|default(0)|int %}
+            {% set battery_round = (battery_level / 10) |int * 10 %}
+            {% if battery_round >= 100 %}
+              mdi:battery
+            {% elif battery_round > 0 %}
+              mdi:battery-{{ battery_round }}
+            {% else %}
+              mdi:battery-alert
+            {% endif %}
 

The else part is used to have the sensor keep it’s last state if the newest iCloud update doesn’t have any battery state in it (which happens sometimes). Otherwise the sensor will be blank.

diff --git a/sitemap.xml b/sitemap.xml index 1cf88d64e9..348313cd57 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -3542,7 +3542,7 @@ https://home-assistant.io/components/switch.hook/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/cookbook/automation_for_rainy_days/ @@ -4210,99 +4210,99 @@ https://home-assistant.io/docs/autostart/init.d/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/api/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/configuration/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/example_apps/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/installation/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/operation/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/reboot/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/running/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/tutorial/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/updating/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/windows/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/certificates/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/hadashboard/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/hass-configurator/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/ios/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/nginx/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/notebooks/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/scenegen/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/ecosystem/synology/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/tools/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/tools/dev-tools/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/tools/hass/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/docs/tools/scripts/ -2017-10-30T17:26:33+00:00 +2017-10-30T21:04:31+00:00 https://home-assistant.io/faq/after-upgrading/ @@ -5384,62 +5384,62 @@ https://home-assistant.io/demo/frontend.html -2017-10-30T17:25:40+00:00 +2017-10-30T21:03:42+00:00 https://home-assistant.io/demo/index.html -2017-10-30T17:25:40+00:00 +2017-10-30T21:03:42+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2017-10-30T17:25:40+00:00 +2017-10-30T21:03:42+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2017-10-30T17:25:40+00:00 +2017-10-30T21:03:42+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2017-10-30T17:25:40+00:00 +2017-10-30T21:03:42+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2017-10-30T17:25:40+00:00 +2017-10-30T21:03:42+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2017-10-30T17:25:40+00:00 +2017-10-30T21:03:42+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2017-10-30T17:25:40+00:00 +2017-10-30T21:03:42+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2017-10-30T17:25:40+00:00 +2017-10-30T21:03:42+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2017-10-30T17:25:40+00:00 +2017-10-30T21:03:42+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2017-10-30T17:25:40+00:00 +2017-10-30T21:03:42+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2017-10-30T17:25:40+00:00 +2017-10-30T21:03:42+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2017-10-30T17:25:41+00:00 +2017-10-30T21:03:42+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2017-10-30T17:25:41+00:00 +2017-10-30T21:03:42+00:00 https://home-assistant.io/static/mdi-demo.html -2017-10-30T17:25:41+00:00 +2017-10-30T21:03:42+00:00