Hi i just tried the latest version [v0.1.4] today with my smart lock, it actuall…y discovered and added the lock pretty fast (like less than 10sec) but im getting new error messages :
`
This error originated from a custom integration.
Logger: homeassistant.config_entries
Source: custom_components/tuya_ble/tuya_ble/tuya_ble.py:652
Integration: Tuya BLE
First occurred: 7:54:06 PM (1 occurrences)
Last logged: 7:54:06 PM
Error setting up entry Smart Lock F2F0F6 for tuya_ble
Traceback (most recent call last):
File "/config/custom_components/tuya_ble/tuya_ble/tuya_ble.py", line 640, in _ensure_connected
if not await self._send_packet_while_connected(
File "/config/custom_components/tuya_ble/tuya_ble/tuya_ble.py", line 893, in _send_packet_while_connected
await asyncio.wait_for(future, RESPONSE_WAIT_TIMEOUT)
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 432, in wait_for
await waiter
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/tuya_ble/__init__.py", line 44, in async_setup_entry
await device.initialize()
File "/config/custom_components/tuya_ble/tuya_ble/tuya_ble.py", line 272, in initialize
await self.update()
File "/config/custom_components/tuya_ble/tuya_ble/tuya_ble.py", line 312, in update
await self._send_packet(TuyaBLECode.FUN_SENDER_DEVICE_STATUS, bytes())
File "/config/custom_components/tuya_ble/tuya_ble/tuya_ble.py", line 843, in _send_packet
await self._ensure_connected()
File "/config/custom_components/tuya_ble/tuya_ble/tuya_ble.py", line 652, in _ensure_connected
except [BLEAK_EXCEPTIONS, BleakNotFoundError]:
TypeError: catching classes that do not inherit from BaseException is not allowed
This error originated from a custom integration.
Logger: custom_components.tuya_ble.tuya_ble.tuya_ble
Source: custom_components/tuya_ble/tuya_ble/tuya_ble.py:525
Integration: Tuya BLE
First occurred: 7:54:02 PM (1 occurrences)
Last logged: 7:54:02 PM
DC:23:4E:F2:F0:F6: Device unexpectedly disconnected; RSSI: None`
This error originated from a custom integration.
Logger: custom_components.tuya_ble.tuya_ble.tuya_ble
Source: custom_components/tuya_ble/tuya_ble/tuya_ble.py:593
Integration: Tuya BLE
First occurred: 7:50:08 PM (2 occurrences)
Last logged: 7:53:22 PM
DC:23:4E:F2:F0:F6: device not found, not in range, or poor RSSI: None
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 233, in connect
await local_disconnect_monitor_event.wait()
File "/usr/local/lib/python3.10/asyncio/locks.py", line 214, in wait
await fut
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/bleak_retry_connector/__init__.py", line 344, in establish_connection
await client.connect(
File "/usr/src/homeassistant/homeassistant/components/bluetooth/wrappers.py", line 269, in connect
connected = await super().connect(**kwargs)
File "/usr/local/lib/python3.10/site-packages/bleak/__init__.py", line 531, in connect
return await self._backend.connect(**kwargs)
File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 141, in connect
async with async_timeout(timeout):
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 129, in __aexit__
self._do_exit(exc_type)
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 212, in _do_exit
raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/tuya_ble/tuya_ble/tuya_ble.py", line 593, in _ensure_connected
client = await establish_connection(
File "/usr/local/lib/python3.10/site-packages/bleak_retry_connector/__init__.py", line 361, in establish_connection
_raise_if_needed(name, device.address, exc)
File "/usr/local/lib/python3.10/site-packages/bleak_retry_connector/__init__.py", line 310, in _raise_if_needed
raise BleakNotFoundError(msg) from exc
bleak_retry_connector.BleakNotFoundError: DC:23:4E:F2:F0:F6 - DC:23:4E:F2:F0:F6: Failed to connect:
This error originated from a custom integration.
Logger: homeassistant
Source: custom_components/tuya_ble/cloud.py:182
Integration: Tuya BLE
First occurred: 7:43:21 PM (1 occurrences)
Last logged: 7:43:21 PM
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 95, in _async_start
await gather_with_concurrency(
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 178, in gather_with_concurrency
return await gather(
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 176, in sem_task
return await task
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 840, in async_init
flow, result = await task
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 868, in _async_init
result = await self._async_handle_step(flow, flow.init_step, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/tuya_ble/config_flow.py", line 233, in async_step_bluetooth
await self._manager.build_cache()
File "/config/custom_components/tuya_ble/cloud.py", line 214, in build_cache
await self._fill_cache_item(item)
File "/config/custom_components/tuya_ble/cloud.py", line 182, in _fill_cache_item
factory_info = fi_response[TUYA_RESPONSE_RESULT][0]
IndexError: list index out of range
`
(Btw, i removed the integration, restarted ha , installed it again, restarted ha again and than tried adding the lock again just in case...)
let me know if you want me to get more details from the device in Tuya IoT, Thanks!