home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.76k stars 30.87k forks source link

Bluetooth showing alot of error in dmesg when enabled in HA. #124032

Open Dan1jel opened 3 months ago

Dan1jel commented 3 months ago

The problem

I recently enabled bluetooth on my Raspberry pi 4, that also have Raspbee 2 (zigbee) installed via GPIO pins. When i look in dmesg i started to see alot of errors comming from the bluetooth.

The bluetooth worked and was able to find my August Smartlock Pro via bluetooth (this means bluetooth works but i have yet added anything via bluetooth yet due to this), but it still shows alot of errors, and this continues untill stopped/disabled in HA.

Video blow shows the last 30 lines (there are more and continue to grow with time) in dmesg When i type bluetoothctl i see alot of spamming even without the option scan on, same as in issue (Bluetooth stops responding, and fails to reload) and it only stops when i disable bluetooth in Home assistant.

ive seen this issue on diffrent occations on HA when i do some search but nothing that really solves it. So i dont know what to try next or how i can solved this, i just assume that eventually it could cause issue if this error continiues to grow in the logs.

asciicast

To be able to search on the below issues:

[15881.579371] Bluetooth: hci0: Unable to disable scanning: -16 [15881.580933] Bluetooth: hci0: Opcode 0x200c failed: -16 [15881.580955] Bluetooth: hci0: Unable to disable scanning: -16 [15881.580962] Bluetooth: hci0: stop background scanning failed: -16 [15881.756426] Bluetooth: hci0: Opcode 0x200c failed: -16 [15881.756446] Bluetooth: hci0: Unable to disable scanning: -16 [15972.221905] Bluetooth: hci0: SCO packet for unknown connection handle 1792 [15972.221950] Bluetooth: hci0: Frame reassembly failed (-84) [15972.221986] Bluetooth: hci0: Frame reassembly failed (-84) [15972.222021] Bluetooth: hci0: Frame reassembly failed (-84) [15972.222068] Bluetooth: hci0: Frame reassembly failed (-84) [15972.222115] Bluetooth: hci0: Frame reassembly failed (-84) [15972.222449] Bluetooth: hci0: Frame reassembly failed (-84) [45118.274029] Bluetooth: hci0: Received unexpected HCI Event 0x00 [45118.274059] Bluetooth: hci0: Frame reassembly failed (-84) [45120.374888] Bluetooth: hci0: command 0x200c tx timeout [45120.374888] Bluetooth: hci0: Opcode 0x200c failed: -110 [45120.461960] Bluetooth: hci0: unexpected event 0x1d length: 119 > 5 [45120.461998] Bluetooth: hci0: Frame reassembly failed (-84) [45122.386935] Bluetooth: hci0: command 0x200c tx timeout [45122.386935] Bluetooth: hci0: Opcode 0x200c failed: -110 [45122.386963] Bluetooth: hci0: failed to restart LE scan: status -110 [46234.948269] Bluetooth: hci0: Opcode 0x200c failed: -110 [46234.948299] Bluetooth: hci0: command 0x200c tx timeout [46234.948308] Bluetooth: hci0: Opcode 0x200c failed: -110 [46234.948313] Bluetooth: hci0: failed to restart LE scan: status -110 [46234.967562] Bluetooth: hci0: Received unexpected HCI Event 0x00 [46234.968123] Bluetooth: hci0: Frame reassembly failed (-84) [46236.964298] Bluetooth: hci0: command 0x200c tx timeout [46236.964344] Bluetooth: hci0: Opcode 0x200c failed: -110

What version of Home Assistant Core has the issue?

core-2024.8.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Bluetooth

Link to integration documentation on our website

https://www.home-assistant.io/integrations/bluetooth/

Diagnostics information

config_entry-bluetooth-96e4ae8c4ce91ea2b5e86dd191389dbe.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 3 months ago

Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (bluetooth) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `bluetooth` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign bluetooth` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


bluetooth documentation bluetooth source (message by IssueLinks)

issue-triage-workflows[bot] commented 4 days ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Dan1jel commented 3 days ago

This issue was not resolved with the latest update. My Bluetooth on raspberry pi 4 is disabled for now.