Skip to content

Custom integration for Home Assistant which tracks BLE beacons by service UUID instead of MAC

License

Notifications You must be signed in to change notification settings

kevdliu/bt_tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bt_tracker

Custom integration for Home Assistant which tracks BLE devices by service UUID instead of MAC

Example configuration.xml

device_tracker:
  - platform: bt_tracker
    interval_seconds: 30
    consider_home: 45
    new_device_defaults:
      track_new_devices: true

Example known_devices.yaml

my_beacon:
  name: My Beacon
  mac: BEACON_2f4fb006-30b0-4370-b412-94a31a20c014
  icon:
  picture:
  track: true

Notes

Unlike the official Bluetooth LE Tracker integration, this custom integration does not populate known_devices.yaml with discovered BLE devices. You have to manually add an entry in known_devices.yaml for each BLE device you want to track. Make sure to replace the UUID in the mac field with the service UUID your BLE device advertises.

This custom integration is extremely tailored to my personal use case. As such, it'll filter out any BLE devices that does not advertise exactly one service UUID. I'm using the nRF Connect app on Android as a simulated BLE beacon. Feel free to modify the code as you see fit in your use case.

About

Custom integration for Home Assistant which tracks BLE beacons by service UUID instead of MAC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages