Skip to content

Setup error #144791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jojkopeter opened this issue May 13, 2025 · 35 comments
Open

Setup error #144791

jojkopeter opened this issue May 13, 2025 · 35 comments

Comments

@jojkopeter
Copy link

The problem

I would like to report an error here.
After successfully logging into the Smart Life app, a setup error occurs in Home Assistant. No devices are being loaded. Please help. Here is the log:

Logger: homeassistant.config_entries
Quelle: config_entries.py:749
Erstmals aufgetreten: 07:26:58 (10 Vorkommnisse)
Zuletzt protokolliert: 07:48:27

Error setting up entry ramsch@peter-jojko.de 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 106, in query_devices_by_home
return self._query_devices(response)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tuya_sharing/device.py", line 125, in _query_devices
self.update_device_strategy_info(device)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tuya_sharing/device.py", line 149, in update_device_strategy_info
response = self.api.get(f"/v1.0/m/life/devices/{device_id}/status")
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?

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

No response

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

@4webat
Copy link

4webat commented May 13, 2025

SEE: #144785

@home-assistant
Copy link

Hey there @tuya, @zlinoliver, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of tuya can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign tuya Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tuya documentation
tuya source
(message by IssueLinks)

@richardcastle
Copy link

Same issue and same error here on my instance (2025.5.1). Working fine last night, seemed to have failed around 6am BST today.

@MrZaibot
Copy link

Same error for me:
Loggare: homeassistant.config_entries
Källa: config_entries.py:749
Inträffade först: 09:03:37 (2 förekomster)
Senast loggade: 09:06:41

Error setting up entry leif@kuhlins.com 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 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 121, in __request
raise Exception(f"network error:({ret['code']}) {ret['msg']}")
Exception: network error:(-9999999) Remote api run unknown failed

@4webat
Copy link

4webat commented May 13, 2025

look also: #144785

@iendicott
Copy link

Same error for me.

homeassistant.exceptions.ConfigEntryNotReady: Unexpected error: Expecting value: line 1 column 1 (char 0)
2025-05-13 08:05:37.764 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 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 106, in query_devices_by_home
return self._query_devices(response)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tuya_sharing/device.py", line 124, in _query_devices
self.update_device_specification(device)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tuya_sharing/device.py", line 131, in update_device_specification
response = self.api.get(f"/v1.1/m/life/{device_id}/specifications")
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

@4webat
Copy link

4webat commented May 13, 2025

Same here, LocalTuya and Tuya App and SmartLife App and Google Home works.

Home Assistant doesnt work:
Logger: homeassistant.config_entries
Quelle: config_entries.py:749
Erstmals aufgetreten: 05:58:59 (4 Vorkommnisse)
Zuletzt protokolliert: 06:06:19

Error setting up entry myemail@mail.at
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 106, in query_devices_by_home
return self._query_devices(response)

File "/usr/local/lib/python3.13/site-packages/tuya_sharing/device.py", line 125, in _query_devices
self.update_device_strategy_info(device)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tuya_sharing/device.py", line 149, in update_device_strategy_info
response = self.api.get(f"/v1.0/m/life/devices/{device_id}/status")
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

@rafalsobczuk
Copy link

Same on my side starting from today:

Rejestrator: homeassistant.config_entries
Źródło: config_entries.py:749
Pierwsze zdarzenie: 08:54:51 (2 wystąpienia)
Ostatnio zalogowany: 08:54:57

Error setting up entry gg-102991391006402564331 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 106, in query_devices_by_home
return self._query_devices(response)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tuya_sharing/device.py", line 124, in _query_devices
self.update_device_specification(device)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tuya_sharing/device.py", line 131, in update_device_specification
response = self.api.get(f"/v1.1/m/life/{device_id}/specifications")
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

@DaddyNav
Copy link

Have raised a ticket on Tuya too just in case.......

@betz0r
Copy link

betz0r commented May 13, 2025

Same for me since today 8am CET - HA 2024.4.4

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 751, 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 106, in query_devices_by_home
    return self._query_devices(response)
           ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/tuya_sharing/device.py", line 124, in _query_devices
    self.update_device_specification(device)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/tuya_sharing/device.py", line 131, in update_device_specification
    response = self.api.get(f"/v1.1/m/life/{device_id}/specifications")
  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

@tors-rus
Copy link

Same for me.

@DaddyNav
Copy link

Have raised a ticket on Tuya too just in case.......

Just rebooted HA for the 4th time and now working - coincidence?

@panabobomix
Copy link

it works - I reloaded the tuya configuration

@4webat
Copy link

4webat commented May 13, 2025

No, I just restarted and everything is back...

@FGOD1983
Copy link

Reload also fixed the issues for me now. So it seems the issue was related to something with the Tuya Cloud itself.

@iendicott
Copy link

Also restarted the plugin and now working, in that case this has to be a backend issue as I tried restarting the plug several times prior to posting and it was still not working.

@rafalsobczuk
Copy link

I can also confirm that it works back.

@gvago
Copy link

gvago commented May 13, 2025

+1 also broke after last upgrade. reboot didn't help. reload didn't help 2hrs ago. Now reload fixed it.

@DaddyNav
Copy link

Not sure if it helps, but see last response 09:24 .....

@.*** 05-13 08:14:15
Detailed Description:
Home assistant unable to connect Exception: network error:(-9999999) Remote api run unknown failed
HA Github: Error Network Tuya after update / RESTART #144785
Multiple users with same error - can you help?
Question Type Category:
Product Function Module/Cloud Development/Home Assistant and Homebridge

Tuya Engineer05-13 08:24:00
Dear customer, Thanks for contacting Tuya Smart Technical Team. Your issue is in the processing now, thank you for your patience.

@.*** 05-13 08:50:08
Issue resolved ~ 08:30 BST - any insight into reason would be appreciated

Tuya Engineer05-13 09:24:53
hi there yes exactly We have updated the data

@949BFN
Copy link

949BFN commented May 14, 2025

I may have a related issue. My Tuya integration reports "Failed to setup" after a restore. I believe to re-authenticate, one has to add the integration again, without disturbing the existing instance. My problem is that the setup process fails to get past entering the user code from the mobile app. I get a spinning circle and after probably ten to fifteen minutes, a "setup has failed error".
I have tried four different browsers with the same result. I noticed that the Meross integration was causing issues for some, so although I'm using Meross LAN, I removed that integration. I also disabled IPv6 under network setup as it seems that could be causing an issue as well. I even deleted the Tuya integration and tried a new install. Same problem, can't get past the spinning wheel.
Next, I tried TuyaLocal, for which one has to go through the same authorisation process. Again, I am unable to get past entering the user code. Restarted HA and the System at least 50 times by now. I have spent hours looking for answers on the forums and I'm sure I've tried them all.
Perhaps my issue is related to this issue? Or should I start a new topic about the issue?

@EboBH83
Copy link

EboBH83 commented May 14, 2025

Still facing the same issues for the 3rd day in a row, no state updates except with a reload.

@FGOD1983
Copy link

The issue of the integration not initializing from yesterday has been gone, but indeed I too am still facing the issues of the states not updating in the Tuya integration until I reload the integration.

@ebmaManu
Copy link

Same for me. Entities have no updates. Switche states and values only are updated, when the integration is reloaded

@ward0
Copy link

ward0 commented May 14, 2025

Same problem @949BFN
I may have a related issue. My Tuya integration reports "Failed to setup" after a restore. I believe to re-authenticate, one has to add the integration again, without disturbing the existing instance. My problem is that the setup process fails to get past entering the user code from the mobile app. I get a spinning circle and after probably ten to fifteen minutes, a "setup has failed error".
I have tried four different browsers with the same result. I noticed that the Meross integration was causing issues for some, so although I'm using Meross LAN, I removed that integration. I also disabled IPv6 under network setup as it seems that could be causing an issue as well. I even deleted the Tuya integration and tried a new install. Same problem, can't get past the spinning wheel.
Next, I tried TuyaLocal, for which one has to go through the same authorisation process. Again, I am unable to get past entering the user code. Restarted HA and the System at least 50 times by now. I have spent hours looking for answers on the forums and I'm sure I've tried them all.
Perhaps my issue is related to this issue? Or should I start a new topic about the issue?

@4webat
Copy link

4webat commented May 15, 2025

Regarding status changes:

Did you check whether the system option "Enable change query" is enabled in the Tuya integration?

@FGOD1983
Copy link

Regarding status changes:

Did you check whether the system option "Enable change query" is enabled in the Tuya integration?

For me it is

Image

@4webat
Copy link

4webat commented May 15, 2025

Okay, then I'm afraid I don't know what to do, because it works perfectly for me.

Maybe you should reinstall the entire integration!?!?!?

But I don't know if that solves the problem.

SORRY :(

@FGOD1983
Copy link

I doubt it does because with the issues from a few days ago I did a restore to 2025.4.4 and I had to re-auth due to this, which is basically a reinstall as it is a HA Core integration, so removal and recreate the account should do a pretty similar thing as the re-auth does (unless I am forgetting something here 😅)

@4webat
Copy link

4webat commented May 15, 2025

All I can say is that with the latest HA version, Tuya is working perfectly again.

Perhaps upgrading to the latest version?

@FGOD1983
Copy link

That should be this one right? Or is somehow my HA missing 2025.5.2?

Image

@ebmaManu
Copy link

I have the 2025.5.1 too.
Restart ha, and reinitialise the tuya integry and restart again. The values are uolpdate while HA restart or reinitialise only one time.

After stat no changes in my case.

@FGOD1983
Copy link

For me it stays good for a little while, but then stops syncing again.

@EboBH83
Copy link

EboBH83 commented May 15, 2025

No number of restarts, reloads, or re-authentications has thus far resolved this issue.

@949BFN
Copy link

949BFN commented May 15, 2025

Same problem @949BFN I may have a related issue. My Tuya integration reports "Failed to setup" after a restore. I believe to re-authenticate, one has to add the integration again, without disturbing the existing instance. My problem is that the setup process fails to get past entering the user code from the mobile app. I get a spinning circle and after probably ten to fifteen minutes, a "setup has failed error".

Definitely the same issue as mine. And there is no "Re-Authorize" button as one would usually get to re-authorize.

I'm sure the developers will know how to reset the authentication process. I'm in a serious pickle without this integration. Can't open and close blinds e.g. and stupid me only relies on the integration and only got one remote for all blinds because I thought I wouldn't need them. That is only one of my issues. :-(

@BartekBlaszczak
Copy link

The same problem

`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 975, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Try again

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 0x700c30fe1f90>: Failed to establish a new connection: [Errno -3] Try again

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 0x700c30fe1f90>: Failed to establish a new connection: [Errno -3] Try again'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 637, 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 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 0x700c30fe1f90>: Failed to establish a new connection: [Errno -3] Try again'))
`

Restarting HA helps for a few minutes/hours, but after some time the problem returning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests