Cleaning up devices

This commit is contained in:
Jeffrey Stone
2017-04-08 15:49:00 -04:00
parent 1c175287d6
commit e4ebcdddae
3 changed files with 6 additions and 6 deletions

View File

@@ -71,8 +71,8 @@
jeff_iphone_batt:
unit_of_measurement: '%'
value_template: >-
{%- if states.device_tracker.jeffreysiphone.attributes.battery %}
{{ states.device_tracker.jeffreysiphone.attributes.battery | round(1) }}
{%- if states.device_tracker.jeffreystonsiphone.attributes.battery %}
{{ states.device_tracker.jeffreystonesiphone.attributes.battery | round(1) }}
{% else %}
{{ states.sensor.jeff_iphone_batt.state }}
{%- endif %}