From d07106c9541682af4643d943c88700427de84365 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 3 Dec 2016 18:53:54 +0100 Subject: [PATCH] Make titles linkable --- source/_cookbook/track_battery_level.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/_cookbook/track_battery_level.markdown b/source/_cookbook/track_battery_level.markdown index f7722a639dd..1305e0bdf36 100644 --- a/source/_cookbook/track_battery_level.markdown +++ b/source/_cookbook/track_battery_level.markdown @@ -10,11 +10,12 @@ footer: true ha_category: Automation Examples --- -iOS Devices +### {% linkable_title iOS Devices %} If you have a device running iOS (iPhone, iPad, etc), The [iCloud](/components/device_tracker.icloud/) is gathering various details about your device including the battery level. To display it in the Frontend use a [template sensor](/components/sensor.template/). ```yaml +sensor: - platform: template sensors: battery_iphone: @@ -29,7 +30,7 @@ If you have a device running iOS (iPhone, iPad, etc), The [iCloud](/components/d 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. -Android and iOS Devices +### {% linkable_title Android and iOS Devices %} While running the [Owntracks](/components/device_tracker.owntracks/) device tracker you can retrieve the battery level with a MQTT sensor.