Home Assistant recently made an update that should make adding bluetooth support and devices to it easier. So I bought the "SUMEE BT501" bluetooth dongle as the documentation recommended it, also did " sudo apt-get install bluez ". The bluetooth device I want to add is a Xiaomi MiFlora sensor to get some nice graphs for my plant.
I'm on OMV6 and have Home Assistant running in a docker container using Portainer, this is the stack, it's on host, has the volume and device hci0 added.
version: "3"
services:
homeassistant:
container_name: homeassistant
image: ghcr.io/home-assistant/home-assistant:stable
environment:
- PUID=1000
- PGID=100
- TZ=Europe/Amsterdam
volumes:
- /srv/dev-disk-by-uuid-aada99cb-82e3-431b-967c-1a96d6888a5a/Dionysus/Config/HomeAssistant/:/config
- /run/dbus:/run/dbus:ro
ports:
- 8123:8123
restart: unless-stopped
privileged: true
network_mode: host
Alles anzeigen
Which should be correct, first had an error about dbus and after adding it to the volumes that went away, but then got an error: " Retrying setup: Failed to start Bluetooth: adapter 'hci0' not found " after some Googling and doing SSH "/etc/init.d/bluetooth status" it says the device is "active (running) however when doing "bluetoothctl devices" it says "No default controller available" and then after doing " hciconfig -a hci0" it says:
root@server:~# hciconfig -a hci0
hci0: Type: Primary Bus: USB
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
DOWN
RX bytes:42 acl:0 sco:0 events:4 errors:0
TX bytes:12 acl:0 sco:0 commands:4 errors:0
Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DH1 HV1
Link policy:
Link mode: SLAVE ACCEPT
Doing " sudo hciconfig hci0 up" it says "Can't init device hci0: No such file or directory (2)" and I can't seem to find much about the last error using Google. Also rebooted multiple times between these steps. Also reset the permissions in the hope it would be able to access the hci0 directory but had no succes.
The issue is definitely something with it not being able to find hci0 but I can't figure out how to create that directory as I can't find much about it.
Don't know if this is the right place to ask this question but hopefully someone can help me, it would be greatly appreciated.