Hi all.
Suddenly I’m having massive issues with the tuya integration. It just keeps dropping out. I try reload it but it still fails.
I thought about moving it all to local tuya but that won’t even install.
Any help, greatly appreciated.
These are the logs
Logger: homeassistant.config_entries
Source: config_entries.py:749
First occurred: 18:17:11 (1 occurrence)
Last logged: 18:17:11
Error setting up entry [email protected] for tuya
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
(self._dns_host, self.port), self.timeout, **extra_kw
)
File "/usr/local/lib/python3.13/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/socket.py", line 977, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 98] Address in use
During handling of the above exception, another exception occurred:
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 404, in _make_request
self._validate_conn(conn)
~~~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 1061, in _validate_conn
conn.connect()
~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/urllib3/connection.py", line 363, in connect
self.sock = conn = self._new_conn()
~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
self, "Failed to establish a new connection: %s" % e
)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f57f13110>: Failed to establish a new connection: [Errno 98] Address in use
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 594, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='apigw.tuyaeu.com', port=443): Max retries exceeded with url: /v1.0/m/life/users/homes (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f57f13110>: Failed to establish a new connection: [Errno 98] Address in use'))
During handling of the above exception, another exception occurred:
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 58, in update_device_cache
homes = self.home_repository.query_homes()
File "/usr/local/lib/python3.13/site-packages/tuya_sharing/home.py", line 17, in query_homes
response = self.api.get(f"/v1.0/m/life/users/homes")
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 700, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='apigw.tuyaeu.com', port=443): Max retries exceeded with url: /v1.0/m/life/users/homes (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f57f13110>: Failed to establish a new connection: [Errno 98] Address in use'))