Yesterday and today, I have been having great trouble with the Tuya integration. It stopped working yesterday evening and many “reloads” and “HA reboots” could not get it going. This morning, many more reloads and reboots, and about 8am it started working again - then stopped about 4pm. Again, I have not been able to get it going.
I got the following out of the logs - does it suggest a problem at Tuya 's end ?
2024-12-13 15:54:21.188 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry [email protected] for tuya
Traceback (most recent call last):
File “/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py”, line 716, in urlopen
httplib_response = self._make_request(
conn,
…<5 lines>…
chunked=chunked,
)
File “/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py”, line 468, in _make_request
six.raise_from(e, None)
~~~~~~~~~~~~~~^^^^^^^^^
File “”, line 3, in raise_from
File “/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py”, line 463, in _make_request
httplib_response = conn.getresponse()
File “/usr/local/lib/python3.13/http/client.py”, line 1428, in getresponse
response.begin()
~~~~~~~~~~~~~~^^
File “/usr/local/lib/python3.13/http/client.py”, line 331, in begin
version, status, reason = self._read_status()
~~~~~~~~~~~~~~~~~^^
File “/usr/local/lib/python3.13/http/client.py”, line 300, in _read_status
raise RemoteDisconnected(“Remote end closed connection without”
" response")
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.13/site-packages/requests/adapters.py”, line 667, in send
resp = conn.urlopen(
method=request.method,
…<9 lines>…
chunked=chunked,
)
File “/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py”, line 802, in urlopen
retries = retries.increment(
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
)
File “/usr/local/lib/python3.13/site-packages/urllib3/util/retry.py”, line 552, in increment
raise six.reraise(type(error), error, _stacktrace)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.13/site-packages/urllib3/packages/six.py”, line 769, in reraise
raise value.with_traceback(tb)
File “/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py”, line 716, in urlopen
httplib_response = self._make_request(
conn,
…<5 lines>…
chunked=chunked,
)
File “/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py”, line 468, in _make_request
six.raise_from(e, None)
~~~~~~~~~~~~~~^^^^^^^^^
File “”, line 3, in raise_from
File “/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py”, line 463, in _make_request
httplib_response = conn.getresponse()
File “/usr/local/lib/python3.13/http/client.py”, line 1428, in getresponse
response.begin()
~~~~~~~~~~~~~~^^
File “/usr/local/lib/python3.13/http/client.py”, line 331, in begin
version, status, reason = self._read_status()
~~~~~~~~~~~~~~~~~^^
File “/usr/local/lib/python3.13/http/client.py”, line 300, in _read_status
raise RemoteDisconnected(“Remote end closed connection without”
" response")
urllib3.exceptions.ProtocolError: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))
During handling of the above exception, another exception occurred:
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)
File “/usr/local/lib/python3.13/concurrent/futures/thread.py”, line 58, 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 107, in __request
response = self.session.request(
method, self.endpoint + path, params=params, json=body, headers=headers
)
File “/usr/local/lib/python3.13/site-packages/requests/sessions.py”, line 589, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python3.13/site-packages/requests/sessions.py”, line 703, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.13/site-packages/requests/adapters.py”, line 682, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))