Closed mhellmeier closed 2 years ago
@mhellmeier There is no magic bullet with Docker because the container needs access to BLE device. As the error suggests, your container doesn't detect BLE thus it can't work.
Thanks a lot for your response, @asednev As mentioned in the issue description above, the Bluetooth dongle works as expected.
The following picture shows the internal homebridge UI command-line tool. I am able to successfully start Bluetooth and find my Govee H5102 device (I censored some IDs):
Therefore, the problem must be related to the plugin. Maybe it have to wait until Bluetooth is ready as mentioned in this noble issue? https://github.com/noble/noble/issues/228#issuecomment-130784841
Ok, I just found the reason for the problem. As shown in the screenshot above, I am using two Bluetooth controllers. The first one (default) doesn't support BLE while the second one does. Noble doesn't recognize this and fails with the above-mentioned error.
Removing the Bluetooth dongle that doesn't support BLE solves the problem.
Would be nice to see an update on the README
that the plugin only works with one single Bluetooth device that supports BLE.
Describe The Bug:
When running homebridge with docker / docker-compose, the plugin doesn't work. In Debug mode, the error
Could not start scanning, state is unsupported (not poweredOn)
appears when homebridge boots up. I also tried to run homebridge with the-privileged
and--net=host
flags but it still throws the error. The Bluetooth dongle works as expected!A found similar issues from other (homebridge) projects that might help: https://github.com/hannseman/homebridge-mi-hygrothermograph/issues/48 https://github.com/noble/noble/issues/228
To Reproduce:
Expected behavior:
The scanning process should work with a docker / docker-compose setup.
Logs:
Full error log in Debug mode:
Plugin Config:
Environment: