『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1010|回复: 0

[技术探讨] 求助大佬,xiaomi_gateway3日志报错,是啥原因

[复制链接]

3

主题

58

帖子

686

积分

高级会员

Rank: 4

积分
686
金钱
628
HASS币
0
发表于 2022-11-22 14:08:24 | 显示全部楼层 |阅读模式
此错误来自自定义集成。

Logger: custom_components.xiaomi_gateway3.core.gateway
Source: custom_components/xiaomi_gateway3/binary_sensor.py:111
Integration: Xiaomi Gateway 3 (documentation, issues)
First occurred: 09:12:48 (3 occurrences)
Last logged: 13:57:07

192.168.123.16 | Processing MQTT: gw/0C4314FFFE77429B/MessageReceived b'{"sourceAddress":"0xB0B9","eui64":"0x00158D000129D127","destinationEndpoint":"0x01","clusterId":"0x0500","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0xA9","APSPlayload":"0x195B00000000000000","rssi":-72,"linkQuality":112}'
192.168.123.16 | Processing MQTT: gw/0C4314FFFE77429B/MessageReceived b'{"sourceAddress":"0xB0B9","eui64":"0x00158D000129D127","destinationEndpoint":"0x01","clusterId":"0x0500","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0xAB","APSPlayload":"0x195D00000000000000","rssi":-67,"linkQuality":132}'
192.168.123.16 | Processing MQTT: gw/0C4314FFFE77429B/MessageReceived b'{"sourceAddress":"0xB0B9","eui64":"0x00158D000129D127","destinationEndpoint":"0x01","clusterId":"0x0500","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0xB0","APSPlayload":"0x196200000000000000","rssi":-66,"linkQuality":136}'
Traceback (most recent call last):
  File "/config/custom_components/xiaomi_gateway3/core/gateway/__init__.py", line 155, in mqtt_message
    await self.dispatcher_send(SIGNAL_MQTT_PUB, msg=msg)
  File "/config/custom_components/xiaomi_gateway3/core/gateway/base.py", line 109, in dispatcher_send
    await handler(**kwargs)
  File "/config/custom_components/xiaomi_gateway3/core/gateway/silabs.py", line 37, in silabs_mqtt_publish
    await self.silabs_process_recv(msg.json)
  File "/config/custom_components/xiaomi_gateway3/core/gateway/silabs.py", line 81, in silabs_process_recv
    device.update(payload)
  File "/config/custom_components/xiaomi_gateway3/core/device.py", line 420, in update
    entity.async_set_state(value)
  File "/config/custom_components/xiaomi_gateway3/binary_sensor.py", line 111, in async_set_state
    assert data[self.attr] is True
AssertionError


回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-28 16:28 , Processed in 0.043828 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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