agittins / bermuda

Bermuda Bluetooth/BLE Triangulation / Trilateration for HomeAssistant
MIT License
637 stars 17 forks source link

Failed to find Scanner (local USB Bluetooth) #386

Closed Chreece closed 1 week ago

Chreece commented 1 week ago

Configuration

Describe the bug

Just noticed, my logs are flooded with the following error:

Failed to find config for scanner A4:6B:B6:2F:46:5C, this is probably a bug. (373 previous messages suppressed)
Failed to find scanner hci0 (A4:6B:B6:2F:46:5C) (A4:6B:B6:2F:46:5C) in Device Registry (375 previous messages suppressed)

That's the bt adapter from host and it is available in the Bluetooth integration: Screenshot_20241114_115532_Home Assistant

And the config entry is also available:

...
  "data": {
    "manager": {
      "adapters": {
        "hci0": {
          "address": "A4:6B:B6:2F:46:5C",
          "sw_version": "homeserver",
          "hw_version": "usb:v1D6Bp0246d0542",
          "passive_scan": false,
          "manufacturer": "Intel Corporate",
          "product": "0032",
          "vendor_id": "8087",
          "product_id": "0032"
        }
      },
...

      "scanners": [
        {
          "name": "hci0 (A4:6B:B6:2F:46:5C)",
          "start_time": 1649746.229855161,
          "source": "A4:6B:B6:2F:46:5C",
          "scanning": true,
          "type": "HaScanner",
          "last_detection": 1650251.908447104,
          "monotonic_time": 1650252.00044757,
          "discovered_devices_and_advertisement_data": [
            {
agittins commented 1 week ago

Hi Chris, thanks for the report. Which version of Bermuda are you running? Could you attach the output of "download diagnostics" as well?

I thought I'd fixed this in v0.7.1 but maybe I'm still missing something.

agittins commented 1 week ago

Ha... well that's embarrassing. It's not working on my prod system either 😅 I'll sort it out.

Chreece commented 1 week ago

No prob, you gave me something wonderful and helpful for free... Can't complain 😁

terryhonn commented 1 week ago

Same experience, following to see updates. Thank you for this!

agittins commented 1 week ago

Latest release v0.7.2 should fix this now 👍🏼