home-assistant / operating-system

:beginner: Home Assistant Operating System
Apache License 2.0
4.79k stars 957 forks source link

HA OS 10 Bluetooth issues on Intel X86 #2661

Closed gaborbernat closed 6 months ago

gaborbernat commented 1 year ago

Describe the issue you are experiencing

Noticed the issue for the last month, SwitchBot integration was constantly breaking.

What operating system image do you use?

generic-x86-64 (Generic UEFI capable x86-64 systems)

What version of Home Assistant Operating System is installed?

10.4

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

Once startup the bluetooth starts failing.

Anything in the Supervisor logs that might be useful for us?

Nope.

Anything in the Host logs that might be useful for us?

On 10.4 errors:

Screenshot 2023-07-31 at 9 55 23 PM

On 9.5 all is good:

image

System information

Running on https://www.amazon.com/dp/B0BS369VMF

Additional information

Downgraded to 9.5 and things started working again...

OH010 commented 1 year ago

Same problem here, however my Bluetooth device is working regardless of the constant kernel error logs. I have an Intel system with onboard bluetooth device (Asus motherboard: https://rog.asus.com/uk/motherboards/rog-strix/rog-strix-z270-i-gaming-model/ ). The errors stop when I disable the Bluetooth device in HAOS but then the InkBird IBS-TH2/P01B thermometer stops working. I also tried Passive Mode, the errors stop but so does the Inkbird.

[core-ssh ~]$ ha host logs -t kernel -n 1000000 -b 0 | grep Bluetooth | head -n 100 Aug 10 12:51:06 homeassistant kernel: Bluetooth: Core ver 2.22 Aug 10 12:51:06 homeassistant kernel: Bluetooth: HCI device and connection manager initialized Aug 10 12:51:06 homeassistant kernel: Bluetooth: HCI socket layer initialized Aug 10 12:51:06 homeassistant kernel: Bluetooth: L2CAP socket layer initialized Aug 10 12:51:06 homeassistant kernel: Bluetooth: SCO socket layer initialized Aug 10 12:51:10 homeassistant kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3 Aug 10 12:51:10 homeassistant kernel: Bluetooth: BNEP filters: protocol multicast Aug 10 12:51:10 homeassistant kernel: Bluetooth: BNEP socket layer initialized Aug 10 12:51:10 homeassistant kernel: Bluetooth: MGMT ver 1.22 Aug 10 12:51:14 homeassistant kernel: Bluetooth: RFCOMM TTY layer initialized Aug 10 12:51:14 homeassistant kernel: Bluetooth: RFCOMM socket layer initialized Aug 10 12:51:14 homeassistant kernel: Bluetooth: RFCOMM ver 1.11 Aug 10 12:55:54 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:56:05 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:56:15 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:56:26 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:56:37 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:56:48 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:56:58 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:57:09 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:57:20 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:57:31 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:57:41 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:57:52 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:58:03 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:58:14 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:58:24 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:58:35 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:58:46 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:58:57 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:59:07 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:59:18 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:59:29 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:59:40 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 12:59:50 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 13:00:01 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 13:00:12 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005 Aug 10 13:00:23 homeassistant kernel: Bluetooth: hci0: unexpected event for opcode 0x2005

agners commented 1 year ago

@gaborbernat what x86-64 system are you running on? What Bluetooth adapter/card are you using?

gaborbernat commented 1 year ago

https://www.amazon.com/dp/B0BS369VMF, not sure about the adapter/card.

roccojay12 commented 1 year ago

Same issue here, I've had it since HAOS 10 was introduced. Using raspberry pi 4 8GB.

Switchbot integration is the main issue for me.

agners commented 1 year ago

@roccojay12 "same" as which report? Which opcode do you get? Can you share the output of ha host logs -t kernel -n 1000000 -b 0 | grep Bluetooth | head -n 100 as well? What hardware are you using?

roccojay12 commented 1 year ago

@roccojay12 "same" as which report? Which opcode do you get? Can you share the output of ha host logs -t kernel -n 1000000 -b 0 | grep Bluetooth | head -n 100 as well? What hardware are you using?

The Issues I get is that once upgraded to 10.4 the switchbot integration will work for about a minute and then after that whenever I try and activate the switchbot bot it will not work until I have reloaded the Bluetooth integration but this then needs to be done on every switchbot bot activation.

I've tried to get the logs but all I get is this: image

makgiber1984 commented 1 year ago

Same problem, I have a bmax b1 plus exclusively for Home Assistant and I had to downgrade to 10.4, because with the 10.5 Bluetooth stops working.

OH010 commented 11 months ago

Any update on this issue? I am still getting ha logs flooded with these errror every 10 seconds. Bluetooth is working fortunately but would be great to stop the log spam. Many thanks!

roccojay12 commented 11 months ago

@OH010, nothing yet I don't think. Bluetooth is still not working for me. Tried different adapters but nothing. Still on OS 9.5

rhpijnacker commented 9 months ago

See also this discussion here ... https://github.com/home-assistant/core/issues/92839

github-actions[bot] commented 6 months ago

There hasn't been any activity on this issue recently. To keep our backlog manageable we have to clean old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant OS 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.