Hi everyone.
I have a problem with my bluetooth connection on my HA.
Every two day it loses connection.
I have HA Core Docker on Linux Debian. Zexmte bluetooth adapter.
If i restart linux the bluetooth works again but only for one/two day.
I have seen several open issues on Github with similar problems. But no solution.
How can I solve it?
This is the error:
Logger: bluetooth_auto_recovery.recover
Source: components/bluetooth/util.py:78
First occurred: 13 ottobre 2023 alle ore 21:32:36 (18836 occurrences)
Last logged: 18:52:58
Could not reset the power state of the Bluetooth adapter hci0 [8C:88:2B:61:2E:3A] due to timeout after 5 seconds
Could not cycle the Bluetooth adapter hci0 [8C:88:2B:61:2E:3A]: [Errno 1] Operation not permitted
Bluetooth adapter hci0 [8C:88:2B:61:2E:3A] could not be reset:
Closing Bluetooth adapter hci0 [8C:88:2B:61:2E:3A] failed: [Errno 9] Bad file descriptor
and
Logger: bluetooth_auto_recovery.recover
Source: runner.py:186
First occurred: 13 ottobre 2023 alle ore 21:32:36 (4709 occurrences)
Last logged: 18:52:53
Bluetooth management socket connection lost: [Errno 22] Invalid argument
Hi GitWally, my solution worked for a few months, then I updated Debian and HA and the problems started again. I didn’t understand what triggered the problem. I’m eliminating all bluetooth sensors to stick to zigbee or wifi only.
See the warning about the RTL8761BU based adapter you are using
These adapters do not have a reset pin. If they stop responding, there is currently no way for the kernel to reset them automatically. A generic USB reset for these adapters has been introduced in Linux kernel 6.1 and later.