|
发表于 2020-12-23 17:17:06
|
显示全部楼层
本帖最后由 zhizhi1991 于 2020-12-23 18:09 编辑
双键的日志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 [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[0m
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 [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}[0m
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 [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[0m
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 [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}[0m
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 [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[0m
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 [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}[0m
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 [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[0m
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 [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}[0m
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 [0;32m2020:12:23:17:53:17.556 [D] ots: {"id":25208,"result":"ok"}.[0m
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 [0;32m2020:12:23:17:53:17.604 [D] miio_client_func: ot_agent_send_ack id 25208: {"id":25208,"result":"ok"} len=26[0m
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 [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}]}.[0m
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 [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}]}[0m
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 [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[0m
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 [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[0m
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 [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}]}[0m
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 [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[0m
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 [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[0m
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 [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}[0m
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 [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}[0m
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 [0;32m2020:12:23:17:53:17.111 [D] ots: {"id":25209,"result":"ok"}.[0m
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'
按照您的代码改之后只识别出一个键 |
-
|