From 4c79be2679ff1f0355dca18f2c693efc5ea8a5c1 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Mon, 13 Apr 2020 22:15:04 -0400 Subject: [PATCH] Removing old iphone batt sensors --- config/sensors/batteries.yaml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/config/sensors/batteries.yaml b/config/sensors/batteries.yaml index edadeab..cdd859f 100755 --- a/config/sensors/batteries.yaml +++ b/config/sensors/batteries.yaml @@ -1,23 +1,3 @@ -- platform: template - sensors: - jeff_iphone_batt: - unit_of_measurement: '%' - value_template: >- - {%- if states.device_tracker.jeffreystonesiphone.attributes.battery %} - {{ states.device_tracker.jeffreystonesiphone.attributes.battery | round(1) }} - {% else %} - {{ states.sensor.jeff_iphone_batt.state }} - {%- endif %} - icon_template: '{%- if is_state("sensor.jeff_iphone_batt", "unknown") %}mdi:battery-unknown{%- elif is_state_attr("device_tracker.jeffreystonesiphone", "battery_status", "Charging") %}mdi:battery-charging{%- elif states.device_tracker.jeffreystonesiphone.attributes.battery <= 5 %}mdi:battery-outline{%- elif states.device_tracker.jeffreystonesiphone.attributes.battery >= 95 %}mdi:battery{% else %}mdi:battery-{{(states.device_tracker.jeffreystonesiphone.attributes.battery|float / 10)|round*10}}{%- endif %}' - kat_iphone_batt: - unit_of_measurement: '%' - value_template: >- - {%- if states.device_tracker.katherinestonesiphone.attributes.battery %} - {{ states.device_tracker.katherinestonesiphone.attributes.battery | round(1) }} - {% 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.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 %}' - platform: mqtt name: "Front Door Battery" state_topic: "zwave2mqtt/front_door/128/1/0"