Git Product home page Git Product logo

Comments (24)

Necroneco avatar Necroneco commented on September 21, 2024

有遇到过类似问题,需要在HA重载集成才能好,不过出现频率不高(可能几周一次),暂时还没找到原因。

我会开日志关注一下,看看下次出现的时候能不能找到线索

from homeassistant-terncy-component.

uho886 avatar uho886 commented on September 21, 2024

感謝,不過我三樓最多稱兩天,最晚一天就需要重新載人。我目前把ha定位關掉測試看看

from homeassistant-terncy-component.

xzshow avatar xzshow commented on September 21, 2024

有遇到过类似问题,需要在HA重载集成才能好,不过出现频率不高(可能几周一次),暂时还没找到原因。

我会开日志关注一下,看看下次出现的时候能不能找到线索

大佬我又来找您 了,我这一个小时不到全部不可用,等一下又好,然后又不可用,HA是core 2024.1.6版本的

from homeassistant-terncy-component.

xzshow avatar xzshow commented on September 21, 2024

微信截图_20240203003750

from homeassistant-terncy-component.

xzshow avatar xzshow commented on September 21, 2024

Uploading 微信截图_20240203003725.png…

from homeassistant-terncy-component.

xzshow avatar xzshow commented on September 21, 2024

Uploading 微信截图_20240203003725.png…

from homeassistant-terncy-component.

xzshow avatar xzshow commented on September 21, 2024

Uploading 微信截图_20240203003725.png…

from homeassistant-terncy-component.

Necroneco avatar Necroneco commented on September 21, 2024

有遇到过类似问题,需要在HA重载集成才能好,不过出现频率不高(可能几周一次),暂时还没找到原因。
我会开日志关注一下,看看下次出现的时候能不能找到线索

大佬我又来找您 了,我这一个小时不到全部不可用,等一下又好,然后又不可用,HA是core 2024.1.6版本的

我这还挺稳定的诶,我也是2024.1.6。
你是最近才这样的吗?网络方面或者其它有什么变化吗?

from homeassistant-terncy-component.

xzshow avatar xzshow commented on September 21, 2024

from homeassistant-terncy-component.

uho886 avatar uho886 commented on September 21, 2024

我後來發現問題所在了,如果有用多網關融合,主網關那組設備會容易沒有回應。只要解除融合就穩定多了,你可以試看看

from homeassistant-terncy-component.

xzshow avatar xzshow commented on September 21, 2024

from homeassistant-terncy-component.

rxwen avatar rxwen commented on September 21, 2024

发生这个异常后,不要动HA,重启网关能恢复吗?

from homeassistant-terncy-component.

rxwen avatar rxwen commented on September 21, 2024

如果还发现有问题,请试试这个版本: https://github.com/rxwen/homeassistant-terncy-component/releases/tag/v1.0.40

from homeassistant-terncy-component.

xzshow avatar xzshow commented on September 21, 2024

温总,这有几个开关一起这状态,现在都 不知道是那个开关了,房间和名称都 不同步
1234

from homeassistant-terncy-component.

xzshow avatar xzshow commented on September 21, 2024

Uploading 1234.png…

from homeassistant-terncy-component.

Necroneco avatar Necroneco commented on September 21, 2024

温总,这有几个开关一起这状态,现在都 不知道是那个开关了,房间和名称都 不同步 1234

这个嘛,应该是某个不到3路的开关的第3个按键。(现在这样确实不太好认)

from homeassistant-terncy-component.

xzshow avatar xzshow commented on September 21, 2024

from homeassistant-terncy-component.

xzshow avatar xzshow commented on September 21, 2024

我今天才发现门锁里面的电量是不变化的,一直是80,从来没变化 过

from homeassistant-terncy-component.

rxwen avatar rxwen commented on September 21, 2024

如果还发现有问题,请试试这个版本: https://github.com/rxwen/homeassistant-terncy-component/releases/tag/v1.0.40

先 close 此问题。如有问题再 open

from homeassistant-terncy-component.

xzshow avatar xzshow commented on September 21, 2024

from homeassistant-terncy-component.

xzshow avatar xzshow commented on September 21, 2024

from homeassistant-terncy-component.

justzerock avatar justzerock commented on September 21, 2024
  • Core 2024.3.3

  • Supervisor 2024.03.1

  • Operating System 12.1

  • 前端 20240307.0

  • terncy v1.0.40

我这边也是一样的问题,单个网关
实体在 HA 中时不时变成不可用

只能在集成中重载(我日常就靠定时重载任务解决,但总会遇上不可用状态)
不动HA,重启网关,无法解决这个问题

下面是日志:

Details

日志: homeassistant.components.websocket_api.http.connection
来源: components/websocket_api/commands.py:239
集成: Home Assistant WebSocket API (文档, 问题)
首次发生: 22:11:00 (6 全部发生)
上次记录: 22:21:08

[139937861737024] sent 1000 (OK); no close frame received
[139937861736640] sent 1000 (OK); no close frame received
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 959, in transfer_data
message = await self.read_message()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1029, in read_message
frame = await self.read_data_frame(max_size=self.max_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1104, in read_data_frame
frame = await self.read_frame(max_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1161, in read_frame
frame = await Frame.read(
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/websockets/legacy/framing.py", line 68, in read
data = await reader(2)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/streams.py", line 750, in readexactly
raise exceptions.IncompleteReadError(incomplete, n)
asyncio.exceptions.IncompleteReadError: 0 bytes read on a total of 2 expected bytes

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2319, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2356, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 905, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 628, in async_handle_light_on_service
await light.async_turn_on(**filter_turn_on_params(light, params))
File "/usr/src/homeassistant/homeassistant/components/switch_as_x/entity.py", line 155, in async_turn_on
await self.hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 2319, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2356, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 905, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/terncy/switch.py", line 78, in async_turn_on
await self.api.set_attribute(
File "/config/custom_components/terncy/core/gateway.py", line 224, in set_attribute
ret = await self.api.set_attribute(eid, attr, value, method)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/terncy/terncy.py", line 321, in set_attribute
await self._connection.send(json.dumps(data))
File "/usr/local/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 635, in send
await self.ensure_open()
File "/usr/local/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 935, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1000 (OK); no close frame received

from homeassistant-terncy-component.

Necroneco avatar Necroneco commented on September 21, 2024

很有帮助的日志, 看上去似乎是 HA 和网关之间的连接不太稳定.
会尽快试着修一下.

from homeassistant-terncy-component.

rxwen avatar rxwen commented on September 21, 2024

我在本地无法复现这个问题。请测试下这个1.0.41版本。
https://github.com/rxwen/homeassistant-terncy-component/releases/tag/v1.0.41

from homeassistant-terncy-component.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.