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