找回密码
 立即注册

微信扫码登录

搜索
查看: 99|回复: 0

[求助] 无法添加tuya官方集成

[复制链接]

5

主题

14

回帖

154

积分

注册会员

积分
154
金钱
135
HASS币
0
发表于 3 天前 | 显示全部楼层 |阅读模式

冬瓜os,涂鸦集成好几天都加载失败,删除以后就无法添加涂鸦官方集成,错误日志如下,有没有大佬遇到过





Error handling request from 192.168.5.69
Traceback (most recent call last):  File "/usr/local/lib/python3.13/site-packages/urllib3/connection.py", line 198, in _new_conn    sock = connection.create_connection(        (self._dns_host, self.port),    ...<2 lines>...        socket_options=self.socket_options,    )  File "/usr/local/lib/python3.13/site-packages/urllib3/util/connection.py", line 85, in create_connection    raise err  File "/usr/local/lib/python3.13/site-packages/urllib3/util/connection.py", line 73, in create_connection    sock.connect(sa)    ~~~~~~~~~~~~^^^^TimeoutError: [Errno 110] Operation timed outThe above exception was the direct cause of the following exception:Traceback (most recent call last):  File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 787, in urlopen    response = self._make_request(        conn,    ...<10 lines>...        **response_kw,    )  File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 488, in _make_request    raise new_e  File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 464, in _make_request    self._validate_conn(conn)    ~~~~~~~~~~~~~~~~~~~^^^^^^  File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 1093, in _validate_conn    conn.connect()    ~~~~~~~~~~~~^^  File "/usr/local/lib/python3.13/site-packages/urllib3/connection.py", line 753, in connect    self.sock = sock = self._new_conn()                       ~~~~~~~~~~~~~~^^  File "/usr/local/lib/python3.13/site-packages/urllib3/connection.py", line 207, in _new_conn    raise ConnectTimeoutError(    ...<2 lines>...    ) from eurllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f900ce11160>, 'Connection to apigw.iotbing.com timed out. (connect timeout=None)')The above exception was the direct cause of the following exception:Traceback (most recent call last):  File "/usr/local/lib/python3.13/site-packages/requests/adapters.py", line 644, in send    resp = conn.urlopen(        method=request.method,    ...<9 lines>...        chunked=chunked,    )  File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 841, in urlopen    retries = retries.increment(        method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]    )  File "/usr/local/lib/python3.13/site-packages/urllib3/util/retry.py", line 519, in increment    raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='apigw.iotbing.com', port=443): Max retries exceeded with url: /v1.0/m/life/home-assistant/qrcode/tokens?clientid=HA_3y9q4ak7g4ephrvke&usercode=AxzlXUO&schema=haauthorize (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f900ce11160>, 'Connection to apigw.iotbing.com timed out. (connect timeout=None)'))During handling of the above exception, another exception occurred:Traceback (most recent call last):  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py", line 510, in _handle_request    resp = await request_handler(request)           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_app.py", line 569, in _handle    return await handler(request)           ^^^^^^^^^^^^^^^^^^^^^^  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_middlewares.py", line 117, in impl    return await handler(request)           ^^^^^^^^^^^^^^^^^^^^^^  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware    return await handler(request)           ^^^^^^^^^^^^^^^^^^^^^^  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware    return await handler(request)           ^^^^^^^^^^^^^^^^^^^^^^  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware    return await handler(request)           ^^^^^^^^^^^^^^^^^^^^^^  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware    return await handler(request)           ^^^^^^^^^^^^^^^^^^^^^^  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware    return await handler(request)           ^^^^^^^^^^^^^^^^^^^^^^  File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 41, in headers_middleware    response = await handler(request)               ^^^^^^^^^^^^^^^^^^^^^^  File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle    result = await handler(request, **request.match_info)             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 83, in with_admin    return await func(self, request, *args, **kwargs)           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 225, in post    return await super().post(request, flow_id)           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper    return await method(view, request, data, *args, **kwargs)           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 121, in post    result = await self._flow_mgr.async_configure(flow_id, data)             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 346, in async_configure    result = await self._async_configure(flow_id, user_input)             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 393, in _async_configure    result = await self._async_handle_step(             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        flow, cur_step["step_id"], user_input        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^    )    ^  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 497, in _async_handle_step    result: _FlowResultT = await getattr(flow, method)(user_input)                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/usr/src/homeassistant/homeassistant/components/tuya/config_flow.py", line 48, in async_step_user    success, response = await self.__async_get_qr_code(                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        user_input[CONF_USER_CODE]        ^^^^^^^^^^^^^^^^^^^^^^^^^^    )    ^  File "/usr/src/homeassistant/homeassistant/components/tuya/config_flow.py", line 196, in __async_get_qr_code    response = await self.hass.async_add_executor_job(               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^    ...<4 lines>...    )    ^  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/user.py", line 16, in qr_code    response = self.session.request("POST",                                    f"https://{URL_PATH}/v1.0/m/life/home-assistant/qrcode/tokens?clientid={client_id}&usercode={user_code}&schema={schema}",                                    params=None, json=None, headers=None)  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 665, in send    raise ConnectTimeout(e, request=request)requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='apigw.iotbing.com', port=443): Max retries exceeded with url: /v1.0/m/life/home-assistant/qrcode/tokens?clientid=HA_3y9q4ak7g4ephrvke&usercode=AxzlXUO&schema=haauthorize (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f900ce11160>, 'Connection to apigw.iotbing.com timed out. (connect timeout=None)'))
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-11-14 17:36 , Processed in 0.637614 second(s), 7 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表