Skip to content
New issue

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

can't init hci: no devices available #125

Open
ViperRNMC opened this issue Dec 16, 2024 · 5 comments
Open

can't init hci: no devices available #125

ViperRNMC opened this issue Dec 16, 2024 · 5 comments

Comments

@ViperRNMC
Copy link

ViperRNMC commented Dec 16, 2024

Hi, I added the integration in Home Assistant, but my blue system keeps on putting the bluetooth stick to hci1. Is it possible to change it, or maybe choose the default from Home Assistant?

[11:59:33] ERROR: teslaCtrlSendKey; Error: failed to find a BLE device: can't init hci: no devices available: (hci0: can't down device: no such device) [11:59:33] ERROR: Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?

@iainbullock
Copy link
Collaborator

Not possible sorry, it must be hci0. You will have to change your hardware configuration somehow

@TheRealSimon42
Copy link

Also, will ESPHome BT-Proxy be used? 😅

@iainbullock
Copy link
Collaborator

No.
The bluetooth hardware must be physically attached as tesla-control wants to control it at the hardware level.

If you need a 'remote device' solution have a look at our other project https://github.com/tesla-local-control/tesla_ble_mqtt_docker which allows use of say a Raspberry Pi remotely located away from your HA system

@chokethenet
Copy link

chokethenet commented Jan 16, 2025

Hi,
I've been struggling with this issue for many days with the integrated bluetooth chip in the pc and several home assistant recomended usb sticks and the issue is as follows:
With this addon stopped the bluetooth receiver (integrated or usb ones) is on hci0 always, for days/weeks/months, once this addon is enabled it causes the bluetooth receiver to have an error (in a couple minutes or several hours) and it's re-loaded in hci1 (or hci2 or the first available if you have more than 1 bluetooth receiver configured).
Once that reload in hci1 occurs the addon is no longer capable of sending commands as it expects the device where it found it on start. Only a restart of the machine works, as it reloads the receiver in hci0.
In my case its HAOS on an intel minipc.

To summarize, this addon causes the bluetooth receiver to crash and it reloads on a different hci# with causes the addon to not be able to send more commands (all my other bluetooth integrations/devices work in seconds after the hci change, they adapt to the available one).

@iainbullock
Copy link
Collaborator

As per my comment on tesla-local-control/tesla_ble_mqtt_core#142

@chokethenet I think best to wait for the next update when I believe the robustness will improve considerably. In the meantime if you are sending commands with your automations when the car is away, you could improve robustness by not doing so

I'll let you know when I have something for you to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants