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

 找回密码
 立即注册
楼主: xf_hfg

[技术探讨] 多模网关接入HA后,智能开关识别成灯,怎么解决啊!

[复制链接]

0

主题

92

帖子

1611

积分

金牌会员

Rank: 6Rank: 6

积分
1611
金钱
1519
HASS币
0
发表于 2020-12-23 16:24:51 | 显示全部楼层
zhizhi1991 发表于 2020-12-23 15:33
尴尬了~HA的log找不到网关的debug日志

插件的log要单独开,github上有写方法的
回复

使用道具 举报

0

主题

92

帖子

1611

积分

金牌会员

Rank: 6Rank: 6

积分
1611
金钱
1519
HASS币
0
发表于 2020-12-23 16:32:17 | 显示全部楼层
xf_hfg 发表于 2020-12-23 15:00
大神,没有找到properties_changed的关键字。。。是不是与没有识别成开关有关,只找到一个pull mesh的事件 ...

看下你的log选项
xiaomi_gateway3:
  debug: miio

貌似要设为miio才会显示properties_changed事件
回复

使用道具 举报

6

主题

46

帖子

269

积分

中级会员

Rank: 3Rank: 3

积分
269
金钱
223
HASS币
0
 楼主| 发表于 2020-12-23 17:02:19 | 显示全部楼层
hellkun 发表于 2020-12-23 16:32
看下你的log选项
xiaomi_gateway3:
  debug: miio

有了!
2020-12-23 16:59:33  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:32.014 [D] miio_client_func: handle_command_ack_msg: {"id":17883984,"result":[{"did":"1041960010","siid":2,"piid":1,"code":1,"ts":1608713941,"ret":0}]}\x1b[0m'
2020-12-23 16:59:33  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:32.054 [D] ots: ots_down_rpc_delegate_ack(), 195, ack: {"id":17883984,"result":[{"did":"1041960010","siid":2,"piid":1,"code":1,"ts":1608713941,"ret":0}],"exe_time":110}, len: 113\x1b[0m'
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | Process props [{'did': '1041960010', 'siid': 2, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:32.695 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"properties_changed","params":[{"did":"1041960010","siid":2,"piid":1,"value":true,"tid":-1}],"id":25061} length:114 bytes\x1b[0m'
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | Process props [{'did': '1041960010', 'siid': 2, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | Process props [{'did': '1041960010', 'siid': 2, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:32.695 [D] miio_client_rpc: call={"method":"properties_changed","params":[{"did":"1041960010","siid":2,"piid":1,"value":true,"tid":-1}],"id":25061}\x1b[0m'
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | Process props [{'did': '1041960010', 'siid': 2, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | Process props [{'did': '1041960010', 'siid': 2, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:32.714 [D] ots: ots_up_rpc_delegate_out_cb(), 289, {"method":"properties_changed","params":[{"did":"1041960010","siid":2,"piid":1,"value":true,"tid":-1}],"id":25061}\x1b[0m'
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | Process props [{'did': '1041960010', 'siid': 2, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:32.735 [D] ots: {"id":25061,"result":"ok"}.\x1b[0m'
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:32.824 [D] miio_client_func: ot_agent_send_ack id 25061: {"id":25061,"result":"ok"} len=26\x1b[0m'
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:32.855 [D] ots: {"from":"","id":84944151,"method":"set_properties","params":[{"did":"1041960010","piid":1,"siid":3,"value":true}]}.\x1b[0m'
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:33.024 [D] miio_client_func: method_local_broadcast_msg(), {"from":"","id":84944151,"method":"set_properties","params":[{"did":"1041960010","piid":1,"siid":3,"value":true}]}\x1b[0m'
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:33.024 [D] miio_client_func: 9, msg: {"from":"","id":84944151,"method":"set_properties","params":[{"did":"1041960010","piid":1,"siid":3,"value":true}]},  len:114\x1b[0m'
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:33.031 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"id":84944151,"result":[{"did":"1041960010","siid":3,"piid":1,"code":1,"ts":1608713821,"ret":0}]} length:98 bytes\x1b[0m'
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:33.032 [D] miio_client_func: handle_command_ack_msg: {"id":84944151,"result":[{"did":"1041960010","siid":3,"piid":1,"code":1,"ts":1608713821,"ret":0}]}\x1b[0m'
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:33.044 [D] ots: ots_down_rpc_delegate_ack(), 195, ack: {"id":84944151,"result":[{"did":"1041960010","siid":3,"piid":1,"code":1,"ts":1608713821,"ret":0}],"exe_time":110}, len: 113\x1b[0m'
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | Process props [{'did': '1041960010', 'siid': 3, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:33.255 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"properties_changed","params":[{"did":"1041960010","siid":3,"piid":1,"value":true,"tid":-1}],"id":25062} length:114 bytes\x1b[0m'
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | Process props [{'did': '1041960010', 'siid': 3, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | Process props [{'did': '1041960010', 'siid': 3, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:33.255 [D] miio_client_rpc: call={"method":"properties_changed","params":[{"did":"1041960010","siid":3,"piid":1,"value":true,"tid":-1}],"id":25062}\x1b[0m'
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | Process props [{'did': '1041960010', 'siid': 3, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | Process props [{'did': '1041960010', 'siid': 3, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:33.264 [D] ots: ots_up_rpc_delegate_out_cb(), 289, {"method":"properties_changed","params":[{"did":"1041960010","siid":3,"piid":1,"value":true,"tid":-1}],"id":25062}\x1b[0m'
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | Process props [{'did': '1041960010', 'siid': 3, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 16:59:34  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:59:33.300 [D] ots: {"id":25062,"result":"ok"}.\x1b[0m
回复

使用道具 举报

9

主题

382

帖子

3702

积分

论坛元老

Rank: 8Rank: 8

积分
3702
金钱
3320
HASS币
0
发表于 2020-12-23 17:17:06 | 显示全部楼层
本帖最后由 zhizhi1991 于 2020-12-23 18:09 编辑
hellkun 发表于 2020-12-23 16:32
看下你的log选项
xiaomi_gateway3:
  debug: miio

双键的日志Setup Mesh device {'did': '1041807629', 'mac': '28D12722E341', 'model': 2257, 'type': 'mesh', 'device_name': 'Mesh', 'device_model': 2257}
左键:
2020-12-23 09:45:52  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:45:51.975 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"properties_changed","params":[{"did":"1041807629","siid":2,"piid":1,"value":true,"tid":-1}],"id":25133} length:114 bytes
2020-12-23 09:45:52  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:45:51.975 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"properties_changed","params":[{"did":"1041807629","siid":2,"piid":1,"value":true,"tid":-1}],"id":25133} length:114 bytes\x1b[0m'
2020-12-23 09:45:52  DEBUG    gateway3      192.168.31.101 | Process props [{'did': '1041807629', 'siid': 2, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 09:45:52  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:45:51.975 [D] miio_client_rpc: call={"method":"properties_changed","params":[{"did":"1041807629","siid":2,"piid":1,"value":true,"tid":-1}],"id":25133}
2020-12-23 09:45:52  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:45:51.975 [D] miio_client_rpc: call={"method":"properties_changed","params":[{"did":"1041807629","siid":2,"piid":1,"value":true,"tid":-1}],"id":25133}\x1b[0m'
2020-12-23 09:45:52  DEBUG    gateway3      192.168.31.101 | Process props [{'did': '1041807629', 'siid': 2, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 09:45:52  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:45:51.994 [D] ots: ots_down_rpc_delegate_ack(), 195, ack: {"id":77040582,"result":[{"did":"1041807629","siid":2,"piid":1,"code":1,"ts":1608716751,"ret":0}],"exe_time":110}, len: 113
2020-12-23 09:45:52  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:45:51.994 [D] ots: ots_down_rpc_delegate_ack(), 195, ack: {"id":77040582,"result":[{"did":"1041807629","siid":2,"piid":1,"code":1,"ts":1608716751,"ret":0}],"exe_time":110}, len: 113\x1b[0m'
2020-12-23 09:45:52  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:45:51.995 [D] ots: ots_up_rpc_delegate_out_cb(), 289, {"method":"properties_changed","params":[{"did":"1041807629","siid":2,"piid":1,"value":true,"tid":-1}],"id":25133}
2020-12-23 09:45:52  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:45:51.995 [D] ots: ots_up_rpc_delegate_out_cb(), 289, {"method":"properties_changed","params":[{"did":"1041807629","siid":2,"piid":1,"value":true,"tid":-1}],"id":25133}\x1b[0m'
2020-12-23 09:45:52  DEBUG    gateway3      192.168.31.101 | Process props [{'did': '1041807629', 'siid': 2, 'piid': 1, 'value': True, 'tid': -1}]
右键:
2020-12-23 09:53:17  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:53:17.475 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"properties_changed","params":[{"did":"1041807629","siid":3,"piid":1,"value":true,"tid":-1}],"id":25208} length:114 bytes
2020-12-23 09:53:17  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:53:17.475 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"properties_changed","params":[{"did":"1041807629","siid":3,"piid":1,"value":true,"tid":-1}],"id":25208} length:114 bytes\x1b[0m'
2020-12-23 09:53:17  DEBUG    gateway3      192.168.31.101 | Process props [{'did': '1041807629', 'siid': 3, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 09:53:17  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:53:17.477 [D] miio_client_rpc: call={"method":"properties_changed","params":[{"did":"1041807629","siid":3,"piid":1,"value":true,"tid":-1}],"id":25208}
2020-12-23 09:53:17  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:53:17.477 [D] miio_client_rpc: call={"method":"properties_changed","params":[{"did":"1041807629","siid":3,"piid":1,"value":true,"tid":-1}],"id":25208}\x1b[0m'
2020-12-23 09:53:17  DEBUG    gateway3      192.168.31.101 | Process props [{'did': '1041807629', 'siid': 3, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 09:53:17  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:53:17.494 [D] ots: ots_down_rpc_delegate_ack(), 195, ack: {"id":34914379,"result":[{"did":"1041807629","siid":3,"piid":1,"code":1,"ts":1608717197,"ret":0}],"exe_time":110}, len: 113
2020-12-23 09:53:17  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:53:17.494 [D] ots: ots_down_rpc_delegate_ack(), 195, ack: {"id":34914379,"result":[{"did":"1041807629","siid":3,"piid":1,"code":1,"ts":1608717197,"ret":0}],"exe_time":110}, len: 113\x1b[0m'
2020-12-23 09:53:17  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:53:17.495 [D] ots: ots_up_rpc_delegate_out_cb(), 289, {"method":"properties_changed","params":[{"did":"1041807629","siid":3,"piid":1,"value":true,"tid":-1}],"id":25208}
2020-12-23 09:53:17  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:53:17.495 [D] ots: ots_up_rpc_delegate_out_cb(), 289, {"method":"properties_changed","params":[{"did":"1041807629","siid":3,"piid":1,"value":true,"tid":-1}],"id":25208}\x1b[0m'
2020-12-23 09:53:17  DEBUG    gateway3      192.168.31.101 | Process props [{'did': '1041807629', 'siid': 3, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 09:53:17  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:53:17.556 [D] ots: {"id":25208,"result":"ok"}.
2020-12-23 09:53:17  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:53:17.556 [D] ots: {"id":25208,"result":"ok"}.\x1b[0m'
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:53:17.604 [D] miio_client_func: ot_agent_send_ack id 25208: {"id":25208,"result":"ok"} len=26
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:53:17.604 [D] miio_client_func: ot_agent_send_ack id 25208: {"id":25208,"result":"ok"} len=26\x1b[0m'
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:53:17.769 [D] ots: {"from":"","id":41588185,"method":"set_properties","params":[{"did":"1041807629","piid":1,"siid":3,"value":true}]}.
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:53:17.769 [D] ots: {"from":"","id":41588185,"method":"set_properties","params":[{"did":"1041807629","piid":1,"siid":3,"value":true}]}.\x1b[0m'
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:53:17.924 [D] miio_client_func: method_local_broadcast_msg(), {"from":"","id":41588185,"method":"set_properties","params":[{"did":"1041807629","piid":1,"siid":3,"value":true}]}
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:53:17.924 [D] miio_client_func: method_local_broadcast_msg(), {"from":"","id":41588185,"method":"set_properties","params":[{"did":"1041807629","piid":1,"siid":3,"value":true}]}\x1b[0m'
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:53:17.924 [D] miio_client_func: 9, msg: {"from":"","id":41588185,"method":"set_properties","params":[{"did":"1041807629","piid":1,"siid":3,"value":true}]},  len:114
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:53:17.924 [D] miio_client_func: 9, msg: {"from":"","id":41588185,"method":"set_properties","params":[{"did":"1041807629","piid":1,"siid":3,"value":true}]},  len:114\x1b[0m'
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:53:17.930 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"id":41588185,"result":[{"did":"1041807629","siid":3,"piid":1,"code":1,"ts":1608717197,"ret":0}]} length:98 bytes
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:53:17.930 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"id":41588185,"result":[{"did":"1041807629","siid":3,"piid":1,"code":1,"ts":1608717197,"ret":0}]} length:98 bytes\x1b[0m'
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:53:17.931 [D] miio_client_func: handle_command_ack_msg: {"id":41588185,"result":[{"did":"1041807629","siid":3,"piid":1,"code":1,"ts":1608717197,"ret":0}]}
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:53:17.931 [D] miio_client_func: handle_command_ack_msg: {"id":41588185,"result":[{"did":"1041807629","siid":3,"piid":1,"code":1,"ts":1608717197,"ret":0}]}\x1b[0m'
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:53:17.934 [D] ots: ots_down_rpc_delegate_ack(), 195, ack: {"id":41588185,"result":[{"did":"1041807629","siid":3,"piid":1,"code":1,"ts":1608717197,"ret":0}],"exe_time":110}, len: 113
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:53:17.934 [D] ots: ots_down_rpc_delegate_ack(), 195, ack: {"id":41588185,"result":[{"did":"1041807629","siid":3,"piid":1,"code":1,"ts":1608717197,"ret":0}],"exe_time":110}, len: 113\x1b[0m'
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:53:17.025 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"properties_changed","params":[{"did":"1041807629","siid":3,"piid":1,"value":true,"tid":-1}],"id":25209} length:114 bytes
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:53:17.025 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"properties_changed","params":[{"did":"1041807629","siid":3,"piid":1,"value":true,"tid":-1}],"id":25209} length:114 bytes\x1b[0m'
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | Process props [{'did': '1041807629', 'siid': 3, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:53:17.025 [D] miio_client_rpc: call={"method":"properties_changed","params":[{"did":"1041807629","siid":3,"piid":1,"value":true,"tid":-1}],"id":25209}
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:53:17.025 [D] miio_client_rpc: call={"method":"properties_changed","params":[{"did":"1041807629","siid":3,"piid":1,"value":true,"tid":-1}],"id":25209}\x1b[0m'
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | Process props [{'did': '1041807629', 'siid': 3, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:53:17.044 [D] ots: ots_up_rpc_delegate_out_cb(), 289, {"method":"properties_changed","params":[{"did":"1041807629","siid":3,"piid":1,"value":true,"tid":-1}],"id":25209}
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:53:17.044 [D] ots: ots_up_rpc_delegate_out_cb(), 289, {"method":"properties_changed","params":[{"did":"1041807629","siid":3,"piid":1,"value":true,"tid":-1}],"id":25209}\x1b[0m'
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | Process props [{'did': '1041807629', 'siid': 3, 'piid': 1, 'value': True, 'tid': -1}]
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MQ] log/miio 2020:12:23:17:53:17.111 [D] ots: {"id":25209,"result":"ok"}.
2020-12-23 09:53:18  DEBUG    gateway3      192.168.31.101 | [MI] b'\x1b[0;32m2020:12:23:17:53:17.111 [D] ots: {"id":25209,"result":"ok"}.\x1b[0m'

按照您的代码改之后只识别出一个键
微信截图_20201223180800.png
回复

使用道具 举报

0

主题

92

帖子

1611

积分

金牌会员

Rank: 6Rank: 6

积分
1611
金钱
1519
HASS币
0
发表于 2020-12-23 18:53:20 来自手机 | 显示全部楼层
xf_hfg 发表于 2020-12-23 17:02
有了!
2020-12-23 16:59:33  DEBUG    gateway3      192.168.1.87 | [MI] b'\x1b[0;32m2020:12:23:16:5 ...

没看到需要的东西。。
要不你试试把log开着,然后在米家app里去操作一下,应该是7个功能,三个按键+三个按键凌动+背光,依次都操作一下,然后把操作后的log给我。。

太长的话可以私信给我qq之类的,回头加我然后单独发给我也行。因为我之前的PTX退货了,所以调起来有点麻烦。。。有劳了
回复

使用道具 举报

6

主题

46

帖子

269

积分

中级会员

Rank: 3Rank: 3

积分
269
金钱
223
HASS币
0
 楼主| 发表于 2020-12-24 08:49:42 | 显示全部楼层
本帖最后由 xf_hfg 于 2020-12-24 09:04 编辑

对照您的代码,和我的日志,三个按键应该是2,1   1,3, 3,1  背光8,1 三个凌动是8,2  8,3  8,4,应该还有两个状态全开,全关,对应的是1,4  4,1
回复

使用道具 举报

0

主题

92

帖子

1611

积分

金牌会员

Rank: 6Rank: 6

积分
1611
金钱
1519
HASS币
0
发表于 2020-12-24 09:27:45 | 显示全部楼层
xf_hfg 发表于 2020-12-24 08:49
对照您的代码,和我的日志,三个按键应该是2,1   1,3, 3,1  背光8,1 三个凌动是8,2  8,3  8,4,应该还有两 ...

log看到了,emm,有点不确定的地方

总之,我先加进去了,你试试下载附件的内容,直接替换custom_components里的xiaomi_gateway3
先看下三个按键以及对应的凌动功能是不是正常,另外就是左中右的顺序对不对吧

xiaomi_gateway3.zip

40.47 KB, 下载次数: 15

回复

使用道具 举报

6

主题

46

帖子

269

积分

中级会员

Rank: 3Rank: 3

积分
269
金钱
223
HASS币
0
 楼主| 发表于 2020-12-24 09:49:39 | 显示全部楼层
hellkun 发表于 2020-12-24 09:27
log看到了,emm,有点不确定的地方

总之,我先加进去了,你试试下载附件的内容,直接替换custom_compone ...

好的,我测试后回复给你。
回复

使用道具 举报

6

主题

46

帖子

269

积分

中级会员

Rank: 3Rank: 3

积分
269
金钱
223
HASS币
0
 楼主| 发表于 2020-12-24 10:14:45 | 显示全部楼层
本帖最后由 xf_hfg 于 2020-12-24 10:22 编辑
hellkun 发表于 2020-12-24 09:27
log看到了,emm,有点不确定的地方

总之,我先加进去了,你试试下载附件的内容,直接替换custom_compone ...

膜拜大神!!!按键对应无误,凌动无误,背光开关无误~~~~,终于解决了!

需要在HA里把网关删了,再重新加一遍,设备会重新识别正确,但是我的zigbee设备都没有了..........需要在网关了删除再重新加?


回复

使用道具 举报

0

主题

92

帖子

1611

积分

金牌会员

Rank: 6Rank: 6

积分
1611
金钱
1519
HASS币
0
发表于 2020-12-24 10:36:22 | 显示全部楼层
xf_hfg 发表于 2020-12-24 10:14
膜拜大神!!!按键对应无误,凌动无误,背光开关无误~~~~,终于解决了!

需要在HA里把网关删了,再重新 ...

应该不需要啊,如果之前装了AlexxIT的v0.10.4或者更早的版本,直接覆盖安装就行了。
如果直接是从他最近的master分支下载过的话,那应该是需要从Integration里删除然后重新添加集成就行了,并且这个删除重新添加的过程不会

Zigbee设备的话,我这边一堆Aqara设备都是正常的。。。你先重新添加网关集成试试,如果不行的话就还是把log截出来给我研究一下
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-27 00:31 , Processed in 0.167181 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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