Changing to life360 nattery data

This commit is contained in:
Jeffrey Stone 2018-03-09 11:22:13 -05:00
parent b8137659e1
commit 84a0f0665f
1 changed files with 4 additions and 4 deletions

View File

@ -15,8 +15,8 @@
jeff_iphone_batt: jeff_iphone_batt:
unit_of_measurement: '%' unit_of_measurement: '%'
value_template: >- value_template: >-
{%- if states.device_tracker.jeffreystonesiphone.attributes.battery %} {%- if states.device_tracker.jeffrey_377fadfe9d7e410fb71bd84c06547c00.attributes.battery %}
{{ states.device_tracker.jeffreystonesiphone.attributes.battery | round(1) }} {{ states.device_tracker.jeffrey_377fadfe9d7e410fb71bd84c06547c00.attributes.battery | round(1) }}
{% else %} {% else %}
{{ states.sensor.jeff_iphone_batt.state }} {{ states.sensor.jeff_iphone_batt.state }}
{%- endif %} {%- endif %}
@ -24,8 +24,8 @@
kat_iphone_batt: kat_iphone_batt:
unit_of_measurement: '%' unit_of_measurement: '%'
value_template: >- value_template: >-
{%- if states.device_tracker.katherinestonesiphone.attributes.battery %} {%- if states.device_tracker.kat_2f1c672110dd491ea7dca9833d1c6cf5.attributes.battery %}
{{ states.device_tracker.katherinestonesiphone.attributes.battery | round(1) }} {{ states.device_tracker.kat_2f1c672110dd491ea7dca9833d1c6cf5.attributes.battery | round(1) }}
{% else %} {% else %}
{{ states.sensor.kat_iphone_batt.state }} {{ states.sensor.kat_iphone_batt.state }}
{%- endif %} {%- endif %}