Failing to add EV charger to localtuya

Carger works fine in the SmartLife app.

I added a cloud project in the Tuya io platform.
Setup localtuya using credentials from the project.
Used API Explorer / Query Device Details (io platform) to get the local key
Forced closed the app SmartLife
Tried different protocols, but fails every time.



This error originated from a custom integration.

Logger: custom_components.localtuya.pytuya
Source: custom_components/localtuya/pytuya/__init__.py:863
integration: LocalTuya (documentation, issues)
First occurred: March 8, 2026 at 17:52:17 (5 occurrences)
Last logged: 05:56:24

[bf0...tnf] Failed to get status:
Traceback (most recent call last):
  File "/usr/local/lib/python3.14/asyncio/tasks.py", line 488, in wait_for
    return await fut
           ^^^^^^^^^
  File "/usr/local/lib/python3.14/asyncio/locks.py", line 407, in acquire
    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/localtuya/pytuya/__init__.py", line 863, in detect_available_dps
    data = await self.status()
           ^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/localtuya/pytuya/__init__.py", line 795, in status
    status = await self.exchange(DP_QUERY)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/localtuya/pytuya/__init__.py", line 769, in exchange
    msg = await self.dispatcher.wait_for(seqno, payload.cmd)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/localtuya/pytuya/__init__.py", line 450, in wait_for
    await asyncio.wait_for(self.listeners[seqno].acquire(), timeout=timeout)
  File "/usr/local/lib/python3.14/asyncio/tasks.py", line 487, in wait_for
    async with timeouts.timeout(timeout):
               ~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/local/lib/python3.14/asyncio/timeouts.py", line 114, in __aexit__
    raise TimeoutError from exc_val
TimeoutError
{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2026.3.1",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.14.2",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "6.12.47-haos-raspi",
    "container_arch": "aarch64",
    "supervisor": "2026.02.3",
    "host_os": "Home Assistant OS 17.1",
    "docker_version": "29.1.3",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    *****,
    "localtuya": {
      "documentation": "https://github.com/rospogrigio/localtuya/",
      "version": "5.2.3",
      "requirements": []
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/use/",
      "version": "2.0.5",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "localtuya",
    "name": "LocalTuya integration",
    "codeowners": [
      "rospogrigio",
      "postlund"
    ],
    "config_flow": true,
    "dependencies": [],
    "documentation": "https://github.com/rospogrigio/localtuya/",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/rospogrigio/localtuya/issues",
    "requirements": [],
    "version": "5.2.3",
    "is_built_in": false,
    "overwrites_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 0.005452002049423754
    },
    "01KJZ6EQ37NYN0B7N2KAHP304C": {
      "config_entry_setup": 1.756704805069603
    }
  },
  "data": {
    "client_id": "fre...ncw",
    "client_secret": "bbc...a48",
    "devices": {},
    "no_cloud": false,
    "region": "eu",
    "user_id": "eu1...rLM",
    "username": "localtuya",
    "updated_at": "1773118434098",
    "cloud_devices": {
      "bf010b7caa74eb0*****": {
        "active_time": 1772634901,
        "biz_type": 18,
        "category": "qccdz",
        "create_time": 1772634901,
        "icon": "smart/icon/bay1638249083185DGu3/85aeaaf514e8fc7aaadcc70dd27538f9.png",
        "id": "bf010b7caa74eb0a*****",
        "ip": "90.184.***.**",
        "lat": "55.39",
        "local_key": "|E-..*****",
        "lon": "10.25",
        "model": "",
        "name": "22k07 charging station",
        "online": true,
        "owner_id": "278352727",
        "product_id": "zma7jiuomnao0lk4",
        "product_name": "22k07 charging station",
        "status": [
          {
            "code": "forward_energy_total",
            "value": 114
          },
          {
            "code": "work_state",
            "value": "charger_free"
          },
          {
            "code": "charge_cur_set",
            "value": 13
          },
          {
            "code": "sigle_phase_power",
            "value": 0
          },
          {
            "code": "power_total",
            "value": 0
          },
          {
            "code": "connection_state",
            "value": "controlpi_12v"
          },
          {
            "code": "work_mode",
            "value": "charge_now"
          },
          {
            "code": "balance_energy",
            "value": 999
          },
          {
            "code": "clear_energy",
            "value": false
          },
          {
            "code": "switch",
            "value": false
          },
          {
            "code": "temp_current",
            "value": 23
          },
          {
            "code": "charge_energy_once",
            "value": 0
          }
        ],
        "sub": false,
        "time_zone": "+01:00",
        "uid": "eu1772634560*****",
        "update_time": 1773109860,
        "uuid": "865ac6fcc*****"
      }
    }
  },
  "issues": []
}

I am having same issue, any progress?