Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95451

Bluetooth Phone Battery Sensor

$
0
0

@wakeskate wrote:

I found this sensor on the forum but it looks like it requires the android app.
Anyone know if there is any way to get the battery status from just a
Bluetooth device.tracker.

It works but just only shows home or away for phone status.

sensor:

  • platform: template
    sensors:
    battery_phone:
    friendly_name: ‘Phone Batt’
    unit_of_measurement: ‘%’
    value_template: >-
    {%- if state_attr(‘device_tracker.samsung_sm_g935v’, ‘battery_level’) %}
    {{ state_attr(‘device_tracker.samsung_sm_g935v’, ‘battery_level’)|round }}
    {% else %}
    {{ states(‘device_tracker.samsung_sm_g935v’) }}
    {%- endif %}
    device_class: battery

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>