把那两端日志文字贴上来,google一下看看
第一个
Logger: homeassistant
Source: components/homekit_controller/connection.py:487
First occurred: 08:25:05 (181 occurrences)
Last logged: 11:24:55
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/homekit_controller/connection.py”, line 295, in async_process_entity_map
await self.async_update()
File “/usr/src/homeassistant/homeassistant/components/homekit_controller/connection.py”, line 447, in async_update
new_values_dict = await self.get_characteristics(
File “/usr/src/homeassistant/homeassistant/components/homekit_controller/connection.py”, line 487, in get_characteristics
return await self.pairing.get_characteristics(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/aiohomekit/controller/ip/pairing.py”, line 245, in get_characteristics
return format_characteristic_list(response)
File “/usr/local/lib/python3.9/site-packages/aiohomekit/controller/ip/pairing.py”, line 58, in format_characteristic_list
c[“description”] = to_status_code(c[“status”]).description
File “/usr/local/lib/python3.9/site-packages/aiohomekit/protocol/statuscodes.py”, line 45, in to_status_code
return HapStatusCode(status_code)
File “/usr/local/lib/python3.9/enum.py”, line 384, in call
return cls.new(cls, value)
File “/usr/local/lib/python3.9/enum.py”, line 702, in new
raise ve_exc
ValueError: -70412 is not a valid HapStatusCode
第二个
Logger: websocket
Source: /usr/local/lib/python3.9/site-packages/websocket/_logging.py:65
First occurred: 08:25:10 (720 occurrences)
Last logged: 11:24:32
error from callback <function setup..on_message at 0xffffad65e040>: Expecting value: line 1 column 1 (char 0)
error from callback <function setup..on_close at 0xffffad65e160>: on_close() takes 1 positional argument but 3 were given
google了一圈,好奇怪,没找到啥答案
确实有点奇怪。。第三方插件也就算了,hk控制器不应该啊
还有这个好像和websocket也有关系
Logger: aiohttp.server
Source: components/websocket_api/http.py:148
First occurred: 21:24:00 (2 occurrences)
Last logged: 21:24:00
Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py”, line 422, in _handle_request
resp = await self._request_handler(request)
File “/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py”, line 499, in _handle
resp = await handler(request)
File “/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py”, line 119, in impl
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/security_filter.py”, line 60, in security_filter_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/forwarded.py”, line 98, in forwarded_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/request_context.py”, line 24, in request_context_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 78, in ban_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 138, in auth_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 135, in handle
result = await result
File “/usr/src/homeassistant/homeassistant/components/websocket_api/http.py”, line 46, in get
return await WebSocketHandler(request.app[“hass”], request).async_handle()
File “/usr/src/homeassistant/homeassistant/components/websocket_api/http.py”, line 148, in async_handle
await wsock.prepare(request)
File “/usr/local/lib/python3.9/site-packages/aiohttp/web_ws.py”, line 135, in prepare
payload_writer = await super().prepare(request)
File “/usr/local/lib/python3.9/site-packages/aiohttp/web_response.py”, line 378, in prepare
return await self._start(request)
File “/usr/local/lib/python3.9/site-packages/aiohttp/web_response.py”, line 386, in _start
await self._write_headers()
File “/usr/local/lib/python3.9/site-packages/aiohttp/web_response.py”, line 458, in _write_headers
await writer.write_headers(status_line, self._headers)
File “/usr/local/lib/python3.9/site-packages/aiohttp/http_writer.py”, line 119, in write_headers
self._write(buf)
File “/usr/local/lib/python3.9/site-packages/aiohttp/http_writer.py”, line 67, in _write
raise ConnectionResetError(“Cannot write to closing transport”)
ConnectionResetError: Cannot write to closing transport
之前的报错里面,Source: /usr/local/lib/python3.9/site-packages/websocket/_logging.py:65
但我看文件资源里根本没有python3.9是咋回事
这个是在homeassistant core容器里面的。不是在宿主机
哈咯。我是因为盒子每过一段时间后,就会与设备失灵。hK里面控制不了HA里的设备,但是没有显示掉线,电源拔掉重启盒子后正常。
所以想问,有没有简便定时重启盒子的功能?如果有,不知道能否解决我这种问题…还是说一定要物理重启才能解决
容器里的py可以安装指定版本websocket吗
是不是米家mesh那些设备
并不是。通过HA接入的都会这样,如果太麻烦,我买个智能插座定时重启吧。
我个人感觉可能是盒子的内存满载。一段时间就要重启。因为高级的路由器也是有这种毛病。
你看看日志?私信我日志截图。
内存泄露的话,看下宿主运行状态就知道了
或者能不能升级指定版本的core
我在智趣盒子上安裝node red時發生錯誤,如何解決??
還有node red在home assistant界面也出現error: 502
没正确安装就会报错哦。
您看看这个教程,自己手动安装。
好的
企業微信平台