From 87b6bad79ecb82e012cc91adf24a4a51ab9c38d0 Mon Sep 17 00:00:00 2001 From: arsaboo Date: Sat, 24 Sep 2016 01:56:19 -0400 Subject: [PATCH] Instructions for running BLE tracker as non-root (#979) * Instructions for running BLE tracker as non-root Thanks to @darkscout for the content @arsaboo for the cleanup. --- .../device_tracker.bluetooth_le_tracker.markdown | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/_components/device_tracker.bluetooth_le_tracker.markdown b/source/_components/device_tracker.bluetooth_le_tracker.markdown index 62effa6f6d9..335a38bfb77 100644 --- a/source/_components/device_tracker.bluetooth_le_tracker.markdown +++ b/source/_components/device_tracker.bluetooth_le_tracker.markdown @@ -32,4 +32,13 @@ Some BTLE devices (e.g. fitness trackers) are only visible to the devices that t BTLE tracking requires root privileges. +For running Home Assistant as non root user we can give python3 the missing capabilities to access the bluetooth stack. Quite like setting the setuid bit (see [Stack Exchange](http://unix.stackexchange.com/questions/96106/bluetooth-le-scan-as-non-root) for more information). + +```bash +sudo apt-get install libcap2-bin +sudo setcap 'cap_net_raw,cap_net_admin+eip' `readlink -f \`which python3\`` +``` + +A restart of Home Assistant is required. + For additional configuration variables check the [Device tracker page](/components/device_tracker/).