From 70496ab13b056f3fcbfc87af613a2e6033372087 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Thu, 20 Apr 2017 22:22:18 -0400 Subject: [PATCH] Fixing Kat's phone batt --- sensors/devices.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensors/devices.yaml b/sensors/devices.yaml index 0b8c1d7..97b4331 100644 --- a/sensors/devices.yaml +++ b/sensors/devices.yaml @@ -86,4 +86,4 @@ {% else %} {{ states.sensor.kat_iphone_batt.state }} {%- endif %} - icon_template: '{%- if is_state("sensor.kat_iphone_batt", "unknown") %}mdi:battery-unknown{%- elif is_state_attr("device_tracker.katherinesiphone", "battery_status", "Charging") %}mdi:battery-charging{%- elif states.device_tracker.katherinesiphone.attributes.battery <= 5 %}mdi:battery-outline{%- elif states.device_tracker.katherinesiphone.attributes.battery >= 95 %}mdi:battery{% else %}mdi:battery-{{(states.device_tracker.katherinesiphone.attributes.battery|float / 10)|round*10}}{%- endif %}' + icon_template: '{%- if is_state("sensor.kat_iphone_batt", "unknown") %}mdi:battery-unknown{%- elif is_state_attr("device_tracker.katherinestonesiphone", "battery_status", "Charging") %}mdi:battery-charging{%- elif states.device_tracker.katherinestonesiphone.attributes.battery <= 5 %}mdi:battery-outline{%- elif states.device_tracker.katherinestonesiphone.attributes.battery >= 95 %}mdi:battery{% else %}mdi:battery-{{(states.device_tracker.katherinestonesiphone.attributes.battery|float / 10)|round*10}}{%- endif %}'