From 0bf424eecd5d1a695093c29539528f97b2561fe6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 29 Jan 2016 11:19:00 +0100 Subject: [PATCH] Add details about else --- source/_cookbook/track_battery_level.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/_cookbook/track_battery_level.markdown b/source/_cookbook/track_battery_level.markdown index 54ff4279368..e60d54c5980 100644 --- a/source/_cookbook/track_battery_level.markdown +++ b/source/_cookbook/track_battery_level.markdown @@ -26,6 +26,8 @@ The [iCloud](/components/device_tracker.icloud/) is gathering various details ab {%- endif %}{% endraw %} ``` +The `else` part is used to have the sensor keep it's last state if the newest [iCloud](/components/device_tracker.icloud/) update doesn't have any battery state in it (which happens sometimes). Otherwise the sensor will be blank. + While running the [Owntracks](/components/device_tracker.owntracks/) device tracker you can retrieve the battery level with a MQTT sensor. ```yaml