Allow BLE and BT Classic integrations to run from the same adapter
See original GitHub issueIs your feature request related to a problem? Please describe. Currently, you can only run BLE or BT Classic integrations on one hci device at the same time. USB Bluetooth sticks are generally cheap to come by, but a bit annoying to stick into the Pi Zeros. It would be much nicer if we could mix any integrations using these two different communication modes and use them from the same HCI device.
Describe the solution you’d like room-assistant should prioritize Bluetooth device usage and start/stop BLE scanning as well as Bluetooth queries automatically so that the adapter can be shared. This should happen transparently for the user and also be able to handle multiple adapters for more performance.
Describe alternatives you’ve considered
Buying USB Bluetooth sticks for every machine and then using the hciDeviceId
options accordingly.
Additional context From a technical standpoint it makes sense to structure out the Bluetooth device code into a separate Bluetooth module which handles all the hardware stuff. The other integrations could then just declare that module as dependency and hook into the newly provided APIs.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:13 (5 by maintainers)
Top GitHub Comments
Ah interesting and thank you. The command I posted above has worked for me before but then I wonder if it was running and ignoring the path supplied because I didn’t put -c. It is running now! I switched both HCI Device numbers to the USB BT adapter I have.
I notice an occasional error about 10X at once and then not again until my next scan:
processLeAdvertisingReport: Caught illegal packet (buffer overflow): RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to write outside buffer bounds
However it is properly tracking my devices both BT Classic and BLE from the same adapter! Anything else you would like me to test?
🎉 This issue has been resolved in version 2.11.0 🎉
The release is available on:
Your semantic-release bot 📦🚀