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

Bluetooth Proxy #51

Open
spectre338 opened this issue Jul 21, 2024 · 1 comment
Open

Bluetooth Proxy #51

spectre338 opened this issue Jul 21, 2024 · 1 comment

Comments

@spectre338
Copy link

Is it possible to use over a Bluetooth proxy or it is limited to only the BT attached to HAOS?

@harrolf
Copy link

harrolf commented Dec 6, 2024

How did you manage as I'm using ESPHome Bluetooth proxy as well and this is the error I get:

2024-12-06 14:21:19 ERROR    MQTT error:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/bluetti_mqtt/mqtt_client.py", line 513, in run
    async with Client(
  File "/usr/local/lib/python3.10/site-packages/asyncio_mqtt/client.py", line 822, in __aenter__
    await self.connect()
  File "/usr/local/lib/python3.10/site-packages/asyncio_mqtt/client.py", line 390, in connect
    raise MqttError(str(error)) from None
asyncio_mqtt.error.MqttError: [Errno -2] Name does not resolve
2024-12-06 14:21:19 ERROR    Crashing with uncaught exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/bluetti_mqtt/device_handler.py", line 31, in run
    await asyncio.gather(*(polling_tasks + pack_polling_tasks + [manager_task]))
  File "/usr/local/lib/python3.10/site-packages/bluetti_mqtt/bluetooth/manager.py", line 20, in run
    await BleakScanner.discover()
  File "/usr/local/lib/python3.10/site-packages/bleak/__init__.py", line 242, in discover
    async with cls(**kwargs) as scanner:
  File "/usr/local/lib/python3.10/site-packages/bleak/__init__.py", line 152, in __aenter__
    await self._backend.start()
  File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/scanner.py", line 179, in start
    adapter_path = manager.get_default_adapter()
  File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/manager.py", line 299, in get_default_adapter
    raise BleakError("No Bluetooth adapters found.")
bleak.exc.BleakError: No Bluetooth adapters found.
2024-12-06 14:21:19 INFO     Shutting down...

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

2 participants