Wiki source code of Home Assistant on Docker with Bluetooth
Version 5.1 by Normann P. Nielsen on 2026/11/15 15:41
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | Do also refer to [[https://www.home-assistant.io/integrations/bluetooth/]] | ||
| 2 | |||
| 3 | {{error}}Update 13-06-2023 - Lately I had problems in NodeRED, where the browser hung when I should edit "State" nodes; the Root cause of this was all the Bluetooth devices found (my BT reaches out on the street in front of out house) and stored in the known_devices.yaml file - aprox. 13236 BLE devices (a problably more)... Deleting the file, and NodeRED was responsive again. So I have to look into that, see "track_new_devices: true" below{{/error}} | ||
| 4 | |||
| 5 | First, we need to add | ||
| 6 | |||
| 7 | |||
| 8 | {{code}} | ||
| 9 | -v /run/dbus:/run/dbus:ro | ||
| 10 | {{/code}} | ||
| 11 | |||
| 12 | To the Docker parameters (also updated in [[Home Assistant on Docker>>Main.information-technology.home-assistant.home-assistant-on-docker]]) | ||
| 13 | |||
| 14 | |||
| 15 | |||
| 16 | After that, I installed the "Bluetooth" Integrations, but it insisted that AppAmours was blocking and, and "stop" and "disable" of AppAmours was not sufficient. So I removed it completely. | ||
| 17 | |||
| 18 | Now, the configure button on the Bluetooth Integration gives me: | ||
| 19 | |||
| 20 | [[image:Screen Shot 2022-08-08 at 15.57.03.jpg||height="192"||alt="Screen Shot 2022-08-08 at 15.57.03.jpg"]] | ||
| 21 | |||
| 22 | And on the underlying Ubuntu OS: | ||
| 23 | |||
| 24 | |||
| 25 | {{code}} | ||
| 26 | ➜ ~ bluetoothctl | ||
| 27 | [NEW] Controller 74:C6:3B:7C:1E:40 sparrow.mos-eisley.dk [default] | ||
| 28 | Agent registered | ||
| 29 | [bluetooth]# | ||
| 30 | {{/code}} | ||
| 31 | |||
| 32 | So that should be sufficient ! | ||
| 33 | |||
| 34 | |||
| 35 | |||
| 36 | After that, adding to Device Tracking: | ||
| 37 | |||
| 38 | |||
| 39 | {{code}} | ||
| 40 | - platform: bluetooth_le_tracker | ||
| 41 | track_new_devices: true | ||
| 42 | {{/code}} | ||
| 43 | |||
| 44 | Restart Home Assistant. | ||
| 45 | |||
| 46 | And BT discovery starts showing up in the known_devices file: | ||
| 47 | |||
| 48 | |||
| 49 | {{code}} | ||
| 50 | hue_aurelle_panel: | ||
| 51 | name: Hue Aurelle Panel | ||
| 52 | mac: BLE_DD:3A:AC:D6:6B:30 | ||
| 53 | icon: | ||
| 54 | picture: | ||
| 55 | track: true | ||
| 56 | |||
| 57 | 65_31_d3_d3_4d_79: | ||
| 58 | name: 65-31-D3-D3-4D-79 | ||
| 59 | mac: BLE_65:31:D3:D3:4D:79 | ||
| 60 | icon: | ||
| 61 | picture: | ||
| 62 | track: true | ||
| 63 | |||
| 64 | 4c_c6_5a_9e_8a_30: | ||
| 65 | name: 4C-C6-5A-9E-8A-30 | ||
| 66 | mac: BLE_4C:C6:5A:9E:8A:30 | ||
| 67 | icon: | ||
| 68 | picture: | ||
| 69 | track: true | ||
| 70 | {{/code}} | ||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | These will show up i Home Assistant: | ||
| 75 | |||
| 76 | [[image:Screenshot 2022-08-12 at 12.44.08.png||height="76"||alt="Screenshot 2022-08-12 at 12.44.08.png"]] | ||
| 77 | |||
| 78 | [[image:Screenshot 2022-08-12 at 12.44.52.png||height="66"||alt="Screenshot 2022-08-12 at 12.44.52.png"]] |