Skip to content

Commit 0a85432

Browse files
committed
rewrite bluetooth material to clarify hciconfig usage
Signed-off-by: Phill Kelley <[email protected]>
1 parent 60a0e0f commit 0a85432

File tree

1 file changed

+29
-12
lines changed

1 file changed

+29
-12
lines changed

docs/Containers/Home-Assistant.md

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,23 +63,40 @@ $ docker-compose up -d
6363

6464
## <a name="usingBluetooth"></a>Using bluetooth from the container
6565

66-
In order to be able to use BT & BLE devices from HA integrations, make sure that bluetooth is enabled and powered on at the start of the (Rpi) host by editing `/etc/bluetooth/main.conf`:
66+
In order to be able to use BT & BLE devices from HA integrations, make sure that Bluetooth is enabled:
67+
68+
``` { .console linenums="1" }
69+
$ hciconfig
70+
hci0: Type: Primary Bus: UART
71+
BD Address: DC:89:FB:A6:32:4B ACL MTU: 1021:8 SCO MTU: 64:1
72+
UP RUNNING
73+
RX bytes:2003 acl:0 sco:0 events:159 errors:0
74+
TX bytes:11583 acl:0 sco:0 commands:159 errors:0
75+
```
76+
77+
The "UP" in line 4 indicates that Bluetooth is enabled. If Bluetooth is not enabled, check:
6778

68-
```conf
69-
....
70-
[Policy]
79+
```console
80+
$ grep "^AutoEnable" /etc/bluetooth/main.conf
7181
AutoEnable=true
7282
```
7383

74-
After a reboot, check that BT is up:
84+
If `AutoEnable` is either missing or not set to `true`, then:
7585

76-
```sh
77-
(root) # hciconfig
78-
...
79-
UP
80-
...
81-
```
82-
ref: https://scribles.net/auto-power-on-bluetooth-adapter-on-boot-up/
86+
1. Use `sudo` to and your favouring text editor to open:
87+
88+
```
89+
/etc/bluetooth/main.conf
90+
```
91+
92+
2. Find `AutoEnable` and make it `true`.
93+
94+
> If `AutoEnable` is missing, it needs to be added to the `[Policy]` section.
95+
96+
3. Reboot your Raspberry Pi.
97+
4. Check that the Bluetooth interface is enabled.
98+
99+
See also: [Scribles: Auto Power On Bluetooth Adapter on Boot-up](https://scribles.net/auto-power-on-bluetooth-adapter-on-boot-up/).
83100

84101
## <a name="httpsWithSSLcert"></a>HTTPS with a valid SSL certificate
85102

0 commit comments

Comments
 (0)