I've setup Tuya multiple times and it just loads and loads, before timing out, and even causes severe delays when starting HA. It's unusable for me, and nothing seems to be blocking it from connecting. (I'm looking at NextDNS Logs as I type this.) If you can assist me with my years of work I've done to get this to work, that would be great.
#Tuya refusing to communicate with Home Assistant, Times Out.
1 messages · Page 1 of 1 (latest)
Source: config_entries.py:640
First occurred: 18:35:21 (1 occurrences)
Last logged: 18:35:21
Error setting up entry [REDACTED] for tuya
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/tuya/__init__.py", line 68, in async_setup_entry
await hass.async_add_executor_job(manager.update_device_cache)
asyncio.exceptions.CancelledError: Global task timeout```
I receive this on startup.
Pushing up.
And when it's enabled, it takes 6 minutes to start HA compared to the usual 2 minutes.
Pushing Up yet again.
Source: config_entries.py:753
First occurred: 01:39:17 (1 occurrences)
Last logged: 01:39:17
Error setting up entry [REDACTED] for tuya
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 "/usr/src/homeassistant/homeassistant/components/tuya/__init__.py", line 138, in async_setup_entry
await hass.async_add_executor_job(manager.update_device_cache)
asyncio.exceptions.CancelledError```
New error received: 2025.3.3
Update: Have attached my logs and some helpful info into GitHub issue #140626
https://github.com/home-assistant/core/issues/140626
Try disabling IPv6 and see if that helps. Tuya servers advertise some IPv6 addresses that have routing issues at least from where I sit. Of course if you need IPv6 for other reasons (Matter seems to require it) this will not be a permanent solution, but it may help to diagnose whether this is the cause in your case also.
I cannot change that setting on my modem. It's T-Mobile controlled.
should be a setting on your router, not your modem, if you can control that
the login information should be on the unit
The IPv6 option only controls the local network.
My modem exits as IPv6 and then CG-NATs to IPv4.