Correcting sensor for Kat's battery

This commit is contained in:
Jeffrey Stone
2017-04-09 18:47:32 -04:00
parent 24d867566f
commit f32de255f5
2 changed files with 14 additions and 11 deletions

View File

@@ -60,8 +60,8 @@
kat_iphone_batt:
unit_of_measurement: '%'
value_template: >-
{%- if states.device_tracker.katheriesiphone_2.attributes.battery %}
{{ states.device_tracker.katheriesiphone_2.attributes.battery | round(1) }}
{%- if states.device_tracker.katherinesiphone.attributes.battery %}
{{ states.device_tracker.katherinesiphone.attributes.battery | round(1) }}
{% else %}
{{ states.sensor.kat_iphone_batt.state }}
{%- endif %}