Skip to content

Tuya does not work #144786

@OleHagen

Description

@OleHagen

The problem

Tuya suddenly stopped working. Reinitialize does not solve problem

Log entry:

Logger: homeassistant.config_entries
Kilde: config_entries.py:749
Første forekomst: 07.02.03 (3 occurrences)
Senest logget: 07.03.52

Error setting up entry home@olehagenjensen.dk for tuya
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/tuya/init.py", line 138, in async_setup_entry
await hass.async_add_executor_job(manager.update_device_cache)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.13/site-packages/tuya_sharing/manager.py", line 62, in update_device_cache
devices_by_home = self.device_repository.query_devices_by_home(home.id)
File "/usr/local/lib/python3.13/site-packages/tuya_sharing/device.py", line 105, in query_devices_by_home
response = self.api.get(f"/v1.0/m/life/ha/home/devices", {"homeId": home_id})
File "/usr/local/lib/python3.13/site-packages/tuya_sharing/customerapi.py", line 176, in get
return self.__request("GET", path, params, None)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tuya_sharing/customerapi.py", line 121, in __request
raise Exception(f"network error:({ret['code']}) {ret['msg']}")
Exception: network error:(-9999999) Remote api run unknown failed

What version of Home Assistant Core has the issue?

core-2025.5.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tuya

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions