Hi @Scrin,
Iām hoping you can help. Iāve been using RuuviCollector for years on a Pi Zero W with InfluxDB and Grafana and finally got around to setting up a Pi 4B to run Home Assistant and thought I should move the whole setup over and change to ruuvi-go-gateway and ruuvibridge all in Docker containers.
I started with Home Assistant and got that working and then setup ruuvi-go-gateway and ruuvibridge. Everything was going well (or so I thought) but I hadnāt noticed that ruuvi-go-gateway was stopping bluetooth from working in Home Assistant.
As soon as I start the ruuvi-go-gateway container, Home Assistant stops receiving any bluetooth information. If ruuvi-go-gateway is already started when Home Assistant loads then I get this error:
Raspberry Pi Trading Ltd bcm43438-bt (E4:5F:01:F1:F4:EA)
Failed setup, will retry: hci0 (E4:5F:01:F1:F4:EA): hci0 (E4:5F:01:F1:F4:EA): Failed to start Bluetooth: adapter āhci0ā not found; Try power cycling the Bluetooth hardware.
I take it the issue is that ruuvi-go-gateway is having exclusive use of the bluetooth adapter. I am mapping the interface to ruuvi-go-gateway using the following in the Docker compose file:
devices:
- /dev/ttyAMA0:/dev/ttyAMA0
The ruuvi-go-gateway config file is using the default:
HCI device index for the bluetooth adapter to use. 0 by default, which should correspond to the hci0 device
hci_index: 0
Is there something that Iām missing in the Docker config which allows multiple containers to access the same hardware or is this just a limitation and both containers canāt use the same bluetooth adapter?
Would running ruuvi-go-gateway locally (not via Docker) get around this or would it still have the same issue?
Iād rather not have two āserversā on 24 / 7 if I can help it, just for enviromental / power wastage reasons.
Or would an alternative be to try a second bluetooth adapter so Home Assistant can use one and ruuvi-go-gateway can use the other?
Iām a novice when it comes to Docker (this was my first go) so any help / pointers are gratefully recieved.
Thanks
Ian