From e4ebcdddae23d6064bab5e9a418db5fc031af503 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Sat, 8 Apr 2017 15:49:00 -0400 Subject: [PATCH] Cleaning up devices --- customize.yaml | 2 +- groups.yaml | 6 +++--- sensors/devices.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/customize.yaml b/customize.yaml index 664c56e..938340d 100644 --- a/customize.yaml +++ b/customize.yaml @@ -67,7 +67,7 @@ device_tracker.owntracks_jeffreysphone: #icon: mdi:human-male entity_picture: !secret JEFF_ICON friendly_name: Jeff -device_tracker.jeffreysiphone: +device_tracker.jeffreystonesiphone: #icon: mdi:human-male entity_picture: !secret JEFF_ICON friendly_name: Jeff diff --git a/groups.yaml b/groups.yaml index 46ba03d..b12e983 100644 --- a/groups.yaml +++ b/groups.yaml @@ -45,12 +45,12 @@ environment: ### Grops ### Family: - - device_tracker.jeffreysiphone + - device_tracker.jeffreystonesiphone - device_tracker.katherinesiphone Jeffrey: - - device_tracker.jeffreysiphone - - sensor.jeff_phone_battery + - device_tracker.jeffreystonesiphone + - sensor.jeff_iphone_batt - sensor.jeff_ett_home - input_select.jeff_status diff --git a/sensors/devices.yaml b/sensors/devices.yaml index 68c167d..0f5fc3c 100644 --- a/sensors/devices.yaml +++ b/sensors/devices.yaml @@ -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 %}