Home assistant virtualbox bluetooth

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth not working on virtualbox VM #2142

Bluetooth not working on virtualbox VM #2142

Comments

Describe the issue you are experiencing

Bluetooth is not working with HA.
Using bluetoothctl scan on I get «No default controller available»
In host console I see:

Bluetooth: hci0: command 0xfc01 tx timeout Bluetooth: hci0: FW download error recovery failed (-110) 

I tried an image with HAOS 7.6. Using the command bluetoothctl scan on there I get «Discovery started» followed by a list of all found devices.

Asus PN41
My bluetooth device (integrated in wireless module): Intel Wireless AC 9560

What operating system image do you use?

What version of Home Assistant Operating System is installed?

Did you upgrade the Operating System.

Steps to reproduce the issue

Start a VM with attached Bluetooth device.
In host console I get:

Bluetooth: hci0: FW download error recovery failed (-110) 

When disabling the Bluetooth device and then reenabling it I get the following in host console:

Bluetooth: hci0: command 0xfc01 tx timeout Bluetooth: hci0: FW download error recovery failed (-110) 

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

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

System Health information

Additional information

The text was updated successfully, but these errors were encountered:

Читайте также:  Как использовать bluetooth модемом

-110 means timeout. It seems the device somehow does not respond. Maybe removing it and plugging back in helps?

I just did some more tests:

  1. HA OS 7.6 and Core 2022.6.7 — Bluetooth scan bluetoothctl scan on is working (it can find devices)
  2. HA OS 7.6 and Core 2022.9.5 — Bluetooth scan is working
  3. HA OS 8.0 and Core 2022.9.4 — Bluetooth scan is NOT working (No default controller available)
  4. HA OS 8.0 and Core 2022.6.7 (after downgrade) — Bluetooth scan is NOT working
  5. HA OS 8.5 and Core 2022.6.7 — Bluetooth scan is NOT working

Just for completness: My bluetooth device (integrated in wireless module): Intel Wireless AC 9560

Update: HA OS 9.2 (an 9.3) + Core 2022.10.5 — Bluetooth scan is NOT working

I have bought a separate Bluetooth-Stick to fix this issue but this resulted in a weird behaviour.
The moment I attached the Bluetooth-Stick to windows host, the integrated bluetooth module started to work within HA. Windows host had bluetooth via the new stick. So suddenly everthing was working fine.
I have removed the bluetooth stick. HA was still fine. I have not reattached the stick.

I have then upgraded to OS 9.4 and also upgraded to 2022.12. Still everything was fine.

I have restarted the host and integrated bluetooth module is not working in HA anymore. Tried to reproduce the behaviour with the stick but with no luck.

If I unassign the bluetooth module (on Intel Wifi chip) and then I assign the stick to HA then it crashes.
If I try to restart it, it will crash.
Switching back to integrated bluetooth allows HA to start again but with no bluetooth.

PS: 7.6 is working but 8.0 RC1 is not.

Update: HA OS 9.5 (an 9.4) + Core 2023.1.7 — Bluetooth scan is NOT working

HA OS 7.6 is the last working version. Any vesion after that has bluetooth issues.
Tested with clean installations.

Читайте также:  Super mini elm327 bluetooth obd2 scanner elm 327

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intel Bluetooth not found with Virtualbox #89799

Intel Bluetooth not found with Virtualbox #89799

Comments

The problem

My Home Assistant VirtualBox installation does not work with my Asus Tuf-Z690 motherboard’s native Intel Bluetooth. Everything appears set up correctly in VirtualBox, yet Home Assistant upon launch reports: «[12.282889] Bluetooth: hci0: FW download error recovery failed (-110).» When I try to add the Bluetooth integration, Home Assistant reports «No unconfigured Bluetooth adapters found. There are 0 ignored adapters.» I have spent hours troubleshooting and searching online trying to get the integration to work. Others online have reported similar problems with HA, VirtualBox, and Intel motherboard Bluetooth, but no solution.

FYI, I am running VirtualBox Ver 7.0.6 r155176 (Qt5.15.2), 2 vCPUs, 2048MB base memory with Windows 11, with USB controller enabled (USB 3.0(xHCI) Controller) passing through my MB’s Intel Corp wireless Bluetooth.

What version of Home Assistant Core has the issue?

What was the last working version of Home Assistant Core?

What type of installation are you running?

Integration causing the issue

Diagnostics information

Cannot add the Bluetooth integration, so cannot provide any diagnostic data.

Example YAML snippet

I have tried adding bluetooth: to my yaml configuration file. Whether that is added or not, the Bluetooth integration will not load.

Anything in the logs that might be useful for us?

See error message from HA command line interface, quoted above: "No unconfigured Bluetooth adapters found. There are 0 ignored adapters."

Additional information

There is no diagnostic data to provide other than what HA reports after launching, quoted above. I have no debug logs for the Bluetooth integration because the integration will not load.

The text was updated successfully, but these errors were encountered:

Источник

Добавляем поддержку BLE (bluetooth) устройств в Home Assistant

В последней публикации из своей трилогии я расскажу, как добавить поддержку Bluetooth устройств в умный дом на Home Assistant, а также напомню способ установки кастомных компонентов.

Читайте также:  Wireless charging bluetooth headset

Translation to English is here . Также основной канал в telegram .

Первая часть заключалась в том, что я описал купленный стик:

Во второй части я описал как добавить поддержку сервисов Bluetooth в Linux, если таковой у Вас еще нет:

И вот — настало время все соединить воедино. Как я уже объяснил в прошлой статье, на сайте Home Assistant есть как минимум три интеграции, но они нам не нужны. Мы будем использовать интеграцию Passive BLE Monitor integration . Она себя зарекомендовала и множество (тысячи) пользователей установили ее себе и отметили ее на GitHub звездой.

Есть 2 способа установить эту интеграцию: а) Через HACS: писал про это тут:

б) Создаем рядом с файлом конфигурации Home Assistant папку custom_components и копируем в него интеграцию прямо с GItHub из этой папки .

Для копирования файлов на сервер очень удобно использовать ftp. Как его настроить, например, на Windows — писал тут:

1. Копируем файлы в папку или ставим из HACS (↑ описано выше ↑).

2. Далее перезагружаем HA и переходим в интеграции и набираем в поиске BLE. Если пункт №1 выполнен правильно, то найдется интеграция Passive BLE monitor

3. Выберем ее и нажмем «установить»

4. Как только установка закончится, появится менюшка. Если Bluetooth адаптер настроен верно, то мы увидим его в списке ниже(hcl0). Проверим что на нем стоит галка.

4. Я дополнительно установил галку на пункте «авто рестарт», но не уверен, что это требуется — скорее перестраховался.

5. После того, как я нажал кнопку «ок», в квартире мгновенно нашлись 4 устройства. Все устройства были от Xiaomi.

6. Нажимаем «финиш». Интеграция отображается в общем списке. Также показываются устройства и сущности.

7. Давайте нажмем на «устройства»:

8. Давайте нажмем на сущности:

Устройства заведенные в HA таким образом работают точно также как и WiFi или ZigBee устройства. За 2 недели у меня не было пока никаких проблем ни с одним из них. Не требуются никакие сопряжения устройств и прочие танцы с бубном, что я нахожу очень удобным. Всем добра!

Подпишитесь , чтобы не пропускать следующий контент.
Нажмите лайк , если интересно, так я пойму какие публикации больше нужны моей публике.
Также публикации можно найти на других площадках: Instagram , telegram ( RU , EN , DE ), Medium , LiveJournal , YouTube .

Мой блог является некоммерческим, поэтому позитивный комментарий, лайк или репост поможет публикациям выходить чаще ☺.

Источник

Оцените статью
Adblock
detector