Tuya Fingerbot / Cubetouch Bot Support

EDIT: Nvm someone already figured this out before me: Device is not registered in Tuya cloud · Issue #119 · PlusPlus-ua/ha_tuya_ble · GitHub

For anyone still getting Device is not registered in Tuya cloud:

I tracked down the problem and seems like Tuya changed something about the API endpoint getting the device MAC address, which is critical for Home Assistant to associate the physical device with the local key from the Tuya Development Platform. The author of ha_tuya_ble has borrowed the code from tuya-local-key-extractor, which currently has the same problem.

I have updated the two repos to adapt the change. After this I was able to add the BLE device and it’s functional.

1 Like

Hi,

Is it possible to set up different automation to have different “press” time?

I would like one script to press 1 sec, and another one to press 3 sec.

How can I do this?

Thanks a lot.

I think you can just have the automation set the number entity and delay for a little bit before you trigger the pushing action. I have used this method to set the ringtone and duration of my Zigbee door chime before sounding it. However BLE connection might be more unstable and need a longer delay before triggering the action.

thanks, but I don’t really understand… sorry, could you explain it to me differently? thanks

Write the automation to do this: set the press duration to your liking, delay a bit, perform the actual press action

Hi all,

I tried using this integration, but I cannot really figure out what my issue is.

So let’s explain the steps and my issue. I added this integration:
grafik

a new device is being discovered:
grafik

This is already connected via my smartphone into the Tuya account and project:


but for sure still offline, because the phone’s app is actually not online. But via the smartphone I can operate the switchbot.

Then there are four field within the setup page:

First line is clear I think :slight_smile:
Second line I entered my Access ID from below
Third line I entered my Access Secret from below
Fourth and fifth line I put my credentials for login via platform.tuya.com, but also tried the login credentials from the app

I extracted the values from the Tuya development Site (cloud/development/open rpoject):
grafik

I receive the following error:
grafik

Are there any logs available? Which credentials are needed at this point, the ones for the tuya developer account, or the one for the app account?

Thanks for supporting me :heart_hands: :slight_smile:

I think I also encountered this at some point but forgot how I solved it. I think you need the app credentials here, and also try the Smart Life app

Were you able to figure this out? Encountered this problem too.

Hi,

Im Josemari, from Spain. One more to the list of Tuya BLE devices not able to configure. Last summer I configured my cubetouch II “xhf790if” (category “szjqr”) but now, some months later, without battery, its not working and then i tried to removed and config it again. But nothing works. Tuya ble from markus, … nothing works.

Here is my logs:

Registrador: homeassistant.config_entries
Fuente: config_entries.py:753
Ocurrió por primera vez: 18:02:15 (1 ocurrencias)
Última vez registrado: 18:02:15

Error setting up entry TY 61711A for tuya_ble
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 753, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/tuya_ble/__init__.py", line 89, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2560, in async_forward_entry_setups
    await integration.async_get_platforms(platforms)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1184, in async_get_platforms
    import_future.result()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1184, in async_get_platforms
    import_future.result()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1184, in async_get_platforms
    import_future.result()
    ~~~~~~~~~~~~~~~~~~~~^^
  [Previous line repeated 5 more times]
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1172, in async_get_platforms
    platforms.update(self._load_platforms(platform_names))
                     ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1097, in _load_platforms
    platform_name: self._load_platform(platform_name)
                   ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1271, in _load_platform
    cache[full_name] = self._import_platform(platform_name)
                       ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1303, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 201, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/tuya_ble/number.py", line 15, in <module>
    from homeassistant.const import (
    ...<6 lines>...
    )
ImportError: cannot import name 'TIME_MINUTES' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py)

Can anyone help me? Thanks in advance. Best regards.

I am also having problems with my smart life tuya finger bots. Home assistant latest updates for the past 6weeks has still not sorted or activating my bots in my automations. Home assistant keeps the switches turned off there a vital part of my garden setup as they activate pumps and switches in my greenhouses. Can home assistant please check smart life please