mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-27 19:26:50 +00:00
Update Zerproc docs for new async backend (#15950)
This commit is contained in:
parent
999d946d12
commit
b83352fd7d
@ -9,6 +9,7 @@ ha_domain: zerproc
|
|||||||
ha_codeowners:
|
ha_codeowners:
|
||||||
- '@emlove'
|
- '@emlove'
|
||||||
ha_config_flow: true
|
ha_config_flow: true
|
||||||
|
ha_quality_scale: platinum
|
||||||
---
|
---
|
||||||
|
|
||||||
This integration discovers nearby Zerproc lights and adds them to Home Assistant.
|
This integration discovers nearby Zerproc lights and adds them to Home Assistant.
|
||||||
@ -25,24 +26,4 @@ The integration will scan for nearby devices, and is completed if any are found.
|
|||||||
|
|
||||||
## Additional information for Home Assistant Core on Python environments
|
## Additional information for Home Assistant Core on Python environments
|
||||||
|
|
||||||
This integration requires `pybluez` to be installed. On Debian based installs, run:
|
This integration requires a working Bluetooth stack. Please refer to the [requirements of the underlying bleak library](https://bleak.readthedocs.io/en/latest/backends/index.html) for the operating system requirements.
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo apt install bluetooth
|
|
||||||
```
|
|
||||||
|
|
||||||
Before you get started with this integration, please note that:
|
|
||||||
|
|
||||||
- Requires access to the Bluetooth stack, see [Rootless Setup section](#rootless-setup) for further information
|
|
||||||
|
|
||||||
## Rootless Setup
|
|
||||||
|
|
||||||
Normally accessing the Bluetooth stack is reserved for `root`, but running programs that are networked as `root` is a bad security wise. To allow non-root access to the Bluetooth stack we can give Python 3 and `hcitool` the missing capabilities to access the Bluetooth stack. Quite like setting the setuid bit (see [Stack Exchange](https://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\``
|
|
||||||
sudo setcap 'cap_net_raw+ep' `readlink -f \`which hcitool\``
|
|
||||||
```
|
|
||||||
|
|
||||||
A restart of Home Assistant Core is required.
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user