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.
This commit is contained in:
arsaboo 2016-09-24 01:56:19 -04:00 committed by Fredrik Lindqvist
parent 41bc9020b4
commit 87b6bad79e

View File

@ -32,4 +32,13 @@ Some BTLE devices (e.g. fitness trackers) are only visible to the devices that t
BTLE tracking requires root privileges. 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/). For additional configuration variables check the [Device tracker page](/components/device_tracker/).