Tuya Fingerbot / Cubetouch Bot Support

Well, got it to work now. my bluetooth adapter wasn’t configured correctly with the HA docker image. so after giving it the correct permission and closing Smart Life app (just to be sure), Tuya BLE automatically detected the cubetouch

Please, can someone help? I can’t seem to get it to communicate with HA. It shows as offline.
I’ve doen everything by the integration guide.
I’m out of ideas how to troubleshoot this anymore.

1 Like

Hi there, I have the same issue.

I entered all the details on Tuya_ble, and just gives a error “No unconfigured devices found”
I managed to pair it on the first try, but kept saying offline. So I removed the repository from HA, and now can’t get the device to show up again.

Been stuck for the whole day, hoping someone can help.

I have removed the device from Smart Life, reloaded the repository, multiple HA restarts, but no joy further on

What do you mean “giving it the correct permission”? Could you elaborate? I’m having the same “No unconfigured devices” issue and I’m suspecting this configuration might be the issue, Xiaomi BLE gives similar error.

Quick update, here is a graph of battery life for the regular non-rechargeable CR2 battery coming along the Fingerbot:

Here is a graph of the of battery life for the 880mAh rechargeable LiFePO4 battery that I ordered from Aliexpress:

Basically, the rechargeable lasted about 4.5 weeks while the non-rechargeable lasted 14.7 weeks. Both were almost on standby all the time, so you can expect 4 times more usage for the non-rechargeable. We can’t say rechargeables and non-rechargeables give you the same battery life.

2 Likes

Log file: [log_file.txt (github.com)]
(log_file.txt · GitHub)

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/aioesphomeapi/client.py", line 658, in bluetooth_device_connect
    await connect_future
TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/esphome/bluetooth/client.py", line 100, in _async_wrap_bluetooth_operation
    return await func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/esphome/bluetooth/client.py", line 337, in connect
    await self._client.bluetooth_device_connect(
  File "/usr/local/lib/python3.11/site-packages/aioesphomeapi/client.py", line 673, in bluetooth_device_connect
    raise TimeoutAPIError(
aioesphomeapi.core.TimeoutAPIError: Timeout waiting for connect response while connecting to D8:1F:12:78:48:74 after 20.0s, disconnect timed out: False,  after 20.0s

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/bleak_retry_connector/__init__.py", line 350, in establish_connection
    await client.connect(
  File "/usr/src/homeassistant/homeassistant/components/bluetooth/wrappers.py", line 292, in connect
    connected = await super().connect(**kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/bleak/__init__.py", line 605, in connect
    return await self._backend.connect(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/esphome/bluetooth/client.py", line 102, in _async_wrap_bluetooth_operation
    raise asyncio.TimeoutError(str(err)) from err
TimeoutError: Timeout waiting for connect response while connecting to D8:1F:12:78:48:74 after 20.0s, disconnect timed out: False,  after 20.0s

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 574, in _ensure_connected
    client = await establish_connection(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/bleak_retry_connector/__init__.py", line 374, in establish_connection
    _raise_if_needed(name, device.address, exc)
  File "/usr/local/lib/python3.11/site-packages/bleak_retry_connector/__init__.py", line 314, in _raise_if_needed
    raise BleakNotFoundError(msg) from exc
bleak_retry_connector.BleakNotFoundError: D8:1F:12:78:48:74 - D8:1F:12:78:48:74: Failed to connect after 6 attempt(s): Timeout waiting for connect response while connecting to D8:1F:12:78:48:74 after 20.0s, disconnect timed out: False,  after 20.0s
2023-09-16 15:56:45.277 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:26:CE: Connecting; RSSI: -62
2023-09-16 15:56:47.240 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:26:CE: Connected; RSSI: -62
2023-09-16 15:56:47.243 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:17:60: Connecting; RSSI: -58
2023-09-16 15:56:47.329 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:26:CE: Sending device info request
2023-09-16 15:56:47.330 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:26:CE: Sending packet: #2 FUN_SENDER_DEVICE_INFO
2023-09-16 15:56:48.360 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:17:60: Connected; RSSI: -58
2023-09-16 15:56:48.364 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] D8:1F:12:78:48:74: Connecting; RSSI: -54
2023-09-16 15:56:48.367 DEBUG (MainThread) [custom_components.tuya_ble.cloud] Retrieved: uuid: xxxxxxxxxxxxxxxx, local_key: xxxxxxxxxxxxxxxx, device_id: xxxxxxxxxxxxxxxx, category: szjqr, product_id: xhf790if, device_name: CUBETOUCH II 4, product_model: CBTB3002, product_name: CUBETOUCH II
2023-09-16 15:56:48.376 DEBUG (MainThread) [custom_components.tuya_ble.cloud] Retrieved: uuid: xxxxxxxxxxxxxxxx, local_key: xxxxxxxxxxxxxxxx, device_id: xxxxxxxxxxxxxxxx, category: szjqr, product_id: xhf790if, device_name: CUBETOUCH II 4, product_model: CBTB3002, product_name: CUBETOUCH II
2023-09-16 15:56:48.396 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:17:60: Sending device info request
2023-09-16 15:56:48.397 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:17:60: Sending packet: #2 FUN_SENDER_DEVICE_INFO
2023-09-16 15:56:50.928 DEBUG (MainThread) [custom_components.tuya_ble.cloud] Retrieved: uuid: xxxxxxxxxxxxxxxx, local_key: xxxxxxxxxxxxxxxx, device_id: xxxxxxxxxxxxxxxx, category: szjqr, product_id: xhf790if, device_name: CUBETOUCH II 4, product_model: CBTB3002, product_name: CUBETOUCH II
2023-09-16 15:56:53.168 DEBUG (MainThread) [custom_components.tuya_ble.cloud] Retrieved: uuid: xxxxxxxxxxxxxxxx, local_key: xxxxxxxxxxxxxxxx, device_id: xxxxxxxxxxxxxxxx, category: szjqr, product_id: xhf790if, device_name: CUBETOUCH II 3, product_model: CBTB3002, product_name: CUBETOUCH II
2023-09-16 15:56:53.168 DEBUG (MainThread) [custom_components.tuya_ble.cloud] Retrieved: uuid: xxxxxxxxxxxxxxxx, local_key: xxxxxxxxxxxxxxxx, device_id: xxxxxxxxxxxxxxxx, category: szjqr, product_id: xhf790if, device_name: CUBETOUCH II 3, product_model: CBTB3002, product_name: CUBETOUCH II
2023-09-16 15:56:56.857 DEBUG (MainThread) [custom_components.tuya_ble.cloud] Successful login for [email protected]
2023-09-16 15:56:56.870 DEBUG (MainThread) [custom_components.tuya_ble.cloud] Retrieved: uuid: xxxxxxxxxxxxxxxx, local_key: xxxxxxxxxxxxxxxx, device_id: xxxxxxxxxxxxxxxx, category: szjqr, product_id: xhf790if, device_name: CUBETOUCH II 4, product_model: CBTB3002, product_name: CUBETOUCH II
2023-09-16 15:56:58.936 DEBUG (MainThread) [custom_components.tuya_ble.cloud] Retrieved: uuid: xxxxxxxxxxxxxxxx, local_key: xxxxxxxxxxxxxxxx, device_id: xxxxxxxxxxxxxxxx, category: szjqr, product_id: xhf790if, device_name: CUBETOUCH II 4, product_model: CBTB3002, product_name: CUBETOUCH II
2023-09-16 15:56:58.937 DEBUG (MainThread) [custom_components.tuya_ble.cloud] Retrieved: uuid: xxxxxxxxxxxxxxxx, local_key: xxxxxxxxxxxxxxxx, device_id: xxxxxxxxxxxxxxxx, category: szjqr, product_id: xhf790if, device_name: CUBETOUCH II 4, product_model: CBTB3002, product_name: CUBETOUCH II
2023-09-16 15:56:58.939 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:1D:7D: Initializing
2023-09-16 15:56:58.940 DEBUG (MainThread) [custom_components.tuya_ble.cloud] Retrieved: uuid: xxxxxxxxxxxxxxxx, local_key: xxxxxxxxxxxxxxxx, device_id: xxxxxxxxxxxxxxxx, category: szjqr, product_id: xhf790if, device_name: CUBETOUCH II 4, product_model: CBTB3002, product_name: CUBETOUCH II
2023-09-16 15:56:58.978 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:1D:7D: Updating
....

2023-09-16 16:24:02.846 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:17:60: timeout receiving response, RSSI: -58
2023-09-16 16:24:02.852 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:17:60: Sending device info request failed
2023-09-16 16:24:05.974 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:26:CE: timeout receiving response, RSSI: -56
2023-09-16 16:24:05.980 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:26:CE: Sending device info request failed
2023-09-16 16:24:08.968 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:1C:8E: Device unexpectedly disconnected; RSSI: -50
2023-09-16 16:24:12.239 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:25:2D: Device unexpectedly disconnected; RSSI: -53
2023-09-16 16:24:39.972 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:1C:8E: timeout receiving response, RSSI: -52
2023-09-16 16:24:39.977 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:1C:8E: Sending device info request failed
2023-09-16 16:24:42.435 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:25:2D: timeout receiving response, RSSI: -53
2023-09-16 16:24:42.441 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:25:2D: Sending device info request failed
2023-09-16 16:24:46.561 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:1D:7D: Device unexpectedly disconnected; RSSI: -58
2023-09-16 16:24:49.974 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:17:60: Device unexpectedly disconnected; RSSI: -58
2023-09-16 16:24:59.202 WARNING (SyncWorker_7) [homeassistant.components.rpi_power.binary_sensor] Under-voltage was detected. Consider getting a uninterruptible power supply for your Raspberry Pi.
2023-09-16 16:25:17.613 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:1D:7D: timeout receiving response, RSSI: -58
2023-09-16 16:25:17.619 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:1D:7D: Sending device info request failed
2023-09-16 16:25:17.626 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] D8:1F:12:78:48:74: timeout receiving response, RSSI: -46
2023-09-16 16:25:17.630 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] D8:1F:12:78:48:74: Sending device info request failed
2023-09-16 16:25:20.206 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:17:60: timeout receiving response, RSSI: -58
2023-09-16 16:25:20.212 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:17:60: Sending device info request failed
2023-09-16 16:25:24.426 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:26:CE: Device unexpectedly disconnected; RSSI: -56
2023-09-16 16:25:26.066 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:1C:8E: Device unexpectedly disconnected; RSSI: -52
2023-09-16 16:25:55.428 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:26:CE: timeout receiving response, RSSI: -56
2023-09-16 16:25:55.434 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:26:CE: Sending device info request failed
2023-09-16 16:25:56.467 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:1C:8E: timeout receiving response, RSSI: -52
2023-09-16 16:25:56.473 ERROR (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:1C:8E: Sending device info request failed
2023-09-16 16:26:07.734 WARNING (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:25:2D: Device unexpectedly disconnected; RSSI: -49
2023-09-16 16:26:19.063 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:1D:7D: Connected; RSSI: -58
2023-09-16 16:26:19.067 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] D8:1F:12:78:48:74: Connecting; RSSI: -46
2023-09-16 16:26:19.085 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:1D:7D: Sending device info request
2023-09-16 16:26:19.086 DEBUG (MainThread) [custom_components.tuya_ble.tuya_ble.tuya_ble] DC:23:4F:74:1D:7D: Sending packet: #14 FUN_SENDER_DEVICE_INFO

Please, can someone help? all the entities are disabled as image.

Try reloading the Tuya BLE Integration. The entities should respond again.

A few days ago it worked (without touching anything) and today I saw that it stopped working a day ago. When it worked, I realized that my usb dongle was not working properly but the integration was working, which baffles me a lot.

I just reload the integration and I have new view, but still not working.

Any ideas?

please ingore post

Integration broken since 2024.1

Integration page removed: https://www.home-assistant.io/integrations/tuya_ble

Anyone have a solution?

Is your Bluetooth integration on and working as expected? If not, try resetting/reloading the Bluetooth integration first, then go to TuyaBLE

the integration page for a while was not available via the integration page link. you can get the correct link if you go to this integration in HACS and from there you can press on documentation and get to the right respiratory.

here is the correct link :

an issue was opened about this problem and seems that it affect many , not just you or me (yes I got exactly the same problem).
The Author however seems to be not available for several months (hope all is ok as he is from Ukraine).

Update: seems that there is already proposed fix:

I havn’t tried yet to implement it.

Edit 2:
I have used the suggested fixes and simply changed the contecnt of those files inside the custom_components folder of the integration. after changing the content of the 2 files and restart - the integration works as regularly.

To apply that fix we need to manually download these files
Capture d’écran, le 2024-01-04 à 09.41.00

And replace them in custom_components->ble_monitor

Is that correct?

That is what I did. Kinda. I just copied and pasted the content of these files from the fix to those I already had in the “custom components” but I am sure that just replacing them with the fix would work also.

I got the same problem now. Worked to begin with, then it ran out of battery, went offline and I’m not able to reconnect now. Found any solution to your problem?

Hello, I have come this far because I recently acquired a cubetouch, the model that is supported, and my question is the following, would it be feasible to be able to control this without having Bluetooth on the machine?

I have the machine in a storage room and I do not have bluetooth, what I do have are several bluetooth proxies with Esp32, is it viable to make it work this way? There is some documentation about it.

Thank’s

Has anyone experienced this while trying to install TUYA BLE?

Config flow could not be loaded: {“message”:“Invalid handler specified”}

I experienced that issue and solved it as described here:

This does not work for me on last HA version, do you know how to fix it? it find the device but says the device is not registered.

after you did the registration and it complained about “device is not registered.” did you still get a non working device added?

if so this is what worked for me to get it to work just follow the instructions here to get the local key (on the bottom of the page)
https://community.home-assistant.io/t/get-local-key-tuya-since-june-2022/436399
and then open .storage\core.config_entries
find this and change out the local_key for the one you just collected

 `      {
        "entry_id": "9b6a42446d74608d93f5698aeb3e90fb",
        "version": 1,
        "minor_version": 1,
        "domain": "tuya_ble",
        "title": "door unlock",
        "data": {
          "address": "DC:23:50:24:86:0E"
        },
        "options": {
          "endpoint": "https://openapi.tuyaeu.com",
          "auth_type": 0,
          "access_id": "xxxx",
          "access_secret": "xxxxx",
          "username": "xxxxx",
          "password": "xxxxx",
          "country_code": "46",
          "tuya_app_type": "smartlife",
          "address": "DC:23:50:24:86:0E",
          "uuid": "51e6434394xxx",
          "local_key": "V>`O*xxxxxxxx",
          "device_id": "bf2f9065dd1523xxxx",
          "category": "szjqr",
          "product_id": "xhf790if",
          "device_name": "door unlock",
          "product_model": "CBTB3002",
          "product_name": "CUBETOUCH II"
        },
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "bluetooth",
        "unique_id": "DC:23:50:24:86:0E",
        "disabled_by": null
      },`


after that it just worked for me best of luck.