generated from ludeeus/integration_blueprint
-
-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Meshtastic Firmware Version
Multiple versions testested(latest too)
Home Assistant System Health details
I have the similar issue to #75
- I was able to connect to device.
- Everything was working.
- My device went down and got stuck in boot loop probably
- I reinstalled it with similar config(device name, Bluetooth name)
- Now I'm not able to connect the same error
Tried restore backup but error still occurs
Everything other than HA is connecting without issues(web Ii is connecting to device, mobile app is working also)
What's more I cannot connect any other Bluetooth Meshtastic device now it seems that even after removal it still caches some corrupted data
Checklist
- I have enabled debug logging for my installation.
- I have filled out the issue template to the best of my ability.
- This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
- This issue is not a duplicate issue of any previous issues..
Describe the issue
.
Reproduction steps
.
Home Assistant Debug logs
Failed to connect to meshtastic device
Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
return await fut
^^^^^^^^^
File "/config/custom_components/meshtastic/aiomeshtastic/interface.py", line 395, in connected_node_ready
await self._connected_node_ready.wait()
File "/usr/local/lib/python3.13/asyncio/locks.py", line 213, in wait
await fut
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/meshtastic/api.py", line 140, in connect
ready = await asyncio.wait_for(self._interface.connected_node_ready(), timeout=60)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for
async with timeouts.timeout(timeout):
~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in __aexit__
raise TimeoutError from exc_val
TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/meshtastic/config_flow.py", line 192, in validate_input_for_connection
async with MeshtasticApiClient(
~~~~~~~~~~~~~~~~~~~^
data,
^^^^^
...<2 lines>...
no_nodes=no_nodes,
^^^^^^^^^^^^^^^^^^
) as client:
^
File "/config/custom_components/meshtastic/api.py", line 275, in __aenter__
await self.connect()
File "/config/custom_components/meshtastic/api.py", line 150, in connect
raise MeshtasticApiClientCommunicationError from exception
custom_components.meshtastic.api.MeshtasticApiClientCommunicationError
Home Assistant Diagnostics dump
Traceback (most recent call last):
File "/config/custom_components/meshtastic/aiomeshtastic/connection/bluetooth.py", line 180, in _packet_stream
await start_notify()
File "/config/custom_components/meshtastic/aiomeshtastic/connection/bluetooth.py", line 165, in start_notify
await asyncio.wait_for(
self._bleak_client.start_notify(self._ble_from_num, notification_handler), timeout=30
)
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
return await fut
^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/bleak/__init__.py", line 785, in start_notify
await self._backend.start_notify(
characteristic, wrapped_callback, cb=cb, **kwargs
)
File "/usr/local/lib/python3.13/site-packages/bleak/backends/bluezdbus/client.py", line 920, in start_notify
assert_reply(reply)
~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.13/site-packages/bleak/backends/bluezdbus/utils.py", line 27, in assert_reply
raise BleakDBusError(reply.error_name, reply.body)
bleak.exc.BleakDBusError: [org.bluez.Error.NotConnected] Not Connected
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/meshtastic/aiomeshtastic/connection/__init__.py", line 121, in listen
async for packet in listener:
yield packet
File "/config/custom_components/meshtastic/aiomeshtastic/connection/listener.py", line 22, in __anext__
self._stop_if_needed()
~~~~~~~~~~~~~~~~~~~~^^
File "/config/custom_components/meshtastic/aiomeshtastic/connection/listener.py", line 44, in _stop_if_needed
raise self._failure
File "/config/custom_components/meshtastic/aiomeshtastic/connection/__init__.py", line 121, in listen
async for packet in listener:
yield packet
File "/config/custom_components/meshtastic/aiomeshtastic/connection/listener.py", line 37, in __anext__
self._stop_if_needed()
~~~~~~~~~~~~~~~~~~~~^^
File "/config/custom_components/meshtastic/aiomeshtastic/connection/listener.py", line 44, in _stop_if_needed
raise self._failure
File "/config/custom_components/meshtastic/aiomeshtastic/connection/__init__.py", line 412, in _on_demand_stream_processor
await self._process_packet_stream()
File "/config/custom_components/meshtastic/aiomeshtastic/connection/__init__.py", line 147, in _process_packet_stream
async for packet in self._packet_stream():
...<3 lines>...
await asyncio.sleep(0)
File "/config/custom_components/meshtastic/aiomeshtastic/connection/bluetooth.py", line 219, in _packet_stream
raise BluetoothConnectionError from e
custom_components.meshtastic.aiomeshtastic.connection.bluetooth.BluetoothConnectionError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/meshtastic/aiomeshtastic/interface.py", line 330, in get_config
await self._start_config()
File "/config/custom_components/meshtastic/aiomeshtastic/interface.py", line 824, in _start_config
await self._connection.request_config(minimal=self.no_nodes)
File "/config/custom_components/meshtastic/aiomeshtastic/connection/__init__.py", line 217, in request_config
async for packet in self.listen(on_start=self.send_packet(start_config_packet)):
...<7 lines>...
self._logger.warning("Failed to check request config", exc_info=True)
File "/config/custom_components/meshtastic/aiomeshtastic/connection/__init__.py", line 124, in listen
raise ClientApiListenInterruptedError from e
custom_components.meshtastic.aiomeshtastic.connection.errors.ClientApiListenInterruptedError: Connection interrupted
Meshtastic Node Debug logs
No response
TheBrainChain
Metadata
Metadata
Assignees
Labels
No labels