Closed qoli closed 2 years ago
presets.json
可以添加科龍的空調遙控代碼
"kelon": {
"1": "0100011797pm31tt0100830604020000"
}
另一組用遙控器匹配的空調抓包
root@NanoPi-NEO:/usr/lib/node_modules/homebridge-mi-ac-partner# miio --token 35d95009bca43f3896dc010d188ce2cf --json-dump /root/file.json
-> 10.8.0.1 data= N/A
<- 192.168.1.161 data= N/A
-> 10.8.0.1 data= N/A
<- 192.168.1.161 data= N/A
-> 10.8.0.1 data= N/A
<- 192.168.1.161 data= N/A
-> 10.8.0.1 data= N/A
<- 192.168.1.161 data= N/A
-> 10.8.0.1 data= N/A
<- 192.168.1.161 data= N/A
-> 10.8.0.1 data= {"id":2015,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","011130180100012250","1031"],"id":2015}
-> 10.8.0.1 data= {"id":2016,"method":"get_quick_cool_func","params":[]}
<- 192.168.1.161 data= {"result":[0,10,"lumi.158d00016fffe2"],"id":2016}
-> 10.8.0.1 data= {"id":2017,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","011130180100012250","1031"],"id":2017}
-> 10.8.0.1 data= {"id":2018,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","011130180100012250","1031"],"id":2018}
-> 10.8.0.1 data= {"id":65001,"method":"get_lumi_bind","params":["scene",0]}
<- 192.168.1.161 data= {"result":{"bind_num":0,"fac_scene_enable":0,"total_page":0,"cur_page":0,"page":[]},"id":65001}
-> 10.8.0.1 data= {"id":2019,"method":"send_cmd","params":["0100012250113118110083060062000080004000000000A200020000000002"]}
<- 192.168.1.161 data= {"result":["ok"],"id":2019}
-> 10.8.0.1 data= {"id":2020,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","011131180100012250","1031"],"id":2020}
-> 10.8.0.1 data= {"id":2021,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","011131180100012250","1031"],"id":2021}
-> 10.8.0.1 data= {"id":2022,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","011131180100012250","1041"],"id":2022}
-> 10.8.0.1 data= {"id":2023,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","011131180100012250","1041"],"id":2023}
-> 10.8.0.1 data= {"id":2024,"method":"send_cmd","params":["01000122501131171100830600520000800040000000009200020000000002"]}
<- 192.168.1.161 data= {"result":["ok"],"id":2024}
-> 10.8.0.1 data= {"id":2025,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","011131170100012250","1041"],"id":2025}
-> 10.8.0.1 data= {"id":2026,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","011131170100012250","1041"],"id":2026}
-> 10.8.0.1 data= {"id":2027,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","011131170100012250","1022"],"id":2027}
-> 10.8.0.1 data= {"id":2028,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","011131170100012250","1022"],"id":2028}
-> 10.8.0.1 data= N/A
<- 192.168.1.161 data= N/A
-> 10.8.0.1 data= {"id":2029,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","011131170100012250","1022"],"id":2029}
-> 10.8.0.1 data= {"id":2030,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","011131170100012250","1022"],"id":2030}
-> 10.8.0.1 data= {"id":2031,"method":"send_cmd","params":["01000122500131170100830604820000800000000000000600010000000001"]}
<- 192.168.1.161 data= {"result":["ok"],"id":2031}
-> 10.8.0.1 data= {"id":2032,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","010131170100012250","202"],"id":2032}
-> 10.8.0.1 data= {"id":2033,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","010131170100012250","202"],"id":2033}
-> 10.8.0.1 data= {"id":2034,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","010131170100012250","15"],"id":2034}
-> 10.8.0.1 data= {"id":2035,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001225001","010131170100012250","15"],"id":2035}
preset_no 3
root@NanoPi-NEO:/usr/lib/node_modules/homebridge-mi-ac-partner# miio --token 35d95009bca43f3896dc010d188ce2cf --json-dump /root/file.json
-> 10.8.0.1 data= N/A
<- 192.168.1.161 data= N/A
-> 10.8.0.1 data= {"id":6104,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","010131170100011797","1"],"id":6104}
-> 10.8.0.1 data= {"id":6105,"method":"get_quick_cool_func","params":[]}
<- 192.168.1.161 data= {"result":[0,10,"lumi.158d00016fffe2"],"id":6105}
-> 10.8.0.1 data= {"id":6106,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","010131170100011797","1"],"id":6106}
-> 10.8.0.1 data= {"id":6107,"method":"get_device_prop","params":["lumi.0","en_nnlight"]}
<- 192.168.1.161 data= {"result":[0],"id":6107}
-> 10.8.0.1 data= {"id":65001,"method":"get_lumi_bind","params":["scene",0]}
<- 192.168.1.161 data= {"result":{"bind_num":0,"fac_scene_enable":0,"total_page":0,"cur_page":0,"page":[]},"id":65001}
-> 10.8.0.1 data= {"id":6108,"method":"set_ac_model","params":["01050577000117970100060ED8010000000015001500150040010004015A00AD000000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6108}
-> 10.8.0.1 data= N/A
<- 192.168.1.161 data= N/A
-> 10.8.0.1 data= {"id":6109,"method":"send_cmd","params":["01000117971131170100830604520000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6109}
-> 10.8.0.1 data= {"id":6110,"method":"send_cmd","params":["01000117971131161100830600420000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6110}
-> 10.8.0.1 data= {"id":6111,"method":"send_cmd","params":["01000117971131171100830600520000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6111}
-> 10.8.0.1 data= {"id":6112,"method":"send_cmd","params":["01000117971131161100830600420000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6112}
-> 10.8.0.1 data= N/A
<- 192.168.1.161 data= N/A
-> 10.8.0.1 data= {"id":6113,"method":"send_cmd","params":["01000117970131160100830604020000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6113}
-> 10.8.0.1 data= {"id":6114,"method":"save_cmd_map","params":["01000117970FFFFF0000830604020000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6114}
-> 10.8.0.1 data= {"id":6115,"method":"save_cmd_map","params":["01000117971FFFFF0000830604720000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6115}
-> 10.8.0.1 data= {"id":6116,"method":"get_cmd_map","params":[]}
<- 192.168.1.161 data= {"result":["11311a10,11201410,11311410,11311810,11311710"],"id":6116}
-> 10.8.0.1 data= {"id":6117,"method":"save_cmd_map","params":["010001179711311a1100830600820000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6117}
-> 10.8.0.1 data= {"id":6118,"method":"save_cmd_map","params":["01000117971120141100830681220000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6118}
-> 10.8.0.1 data= {"id":6119,"method":"save_cmd_map","params":["01000117971131141100830600220000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6119}
-> 10.8.0.1 data= {"id":6120,"method":"save_cmd_map","params":["01000117971131181100830600620000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6120}
-> 10.8.0.1 data= {"id":6121,"method":"send_cmd","params":["01000117971131191100830600720000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6121}
-> 10.8.0.1 data= {"id":6122,"method":"save_cmd_map","params":["01000117971131171100830600520000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6122}
-> 10.8.0.1 data= {"id":6123,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","011131190100011797","25"],"id":6123}
-> 10.8.0.1 data= {"id":6124,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","011131190100011797","25"],"id":6124}
-> 10.8.0.1 data= N/A
<- 192.168.1.161 data= N/A
-> 10.8.0.1 data= {"id":6125,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","011131190100011797","25"],"id":6125}
-> 10.8.0.1 data= {"id":6126,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","011131190100011797","20"],"id":6126}
-> 10.8.0.1 data= {"id":6127,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","011131190100011797","25"],"id":6127}
-> 10.8.0.1 data= {"id":6128,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","011131190100011797","25"],"id":6128}
-> 10.8.0.1 data= N/A
<- 192.168.1.161 data= N/A
-> 10.8.0.1 data= {"id":6129,"method":"get_device_prop","params":["lumi.0","en_nnlight"]}
<- 192.168.1.161 data= {"result":[0],"id":6129}
-> 10.8.0.1 data= N/A
<- 192.168.1.161 data= N/A
-> 10.8.0.1 data= {"id":6130,"method":"set_ac_model","params":["01050577000117970100060ED8010000000015001500150040010004015A00AD000000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6130}
-> 10.8.0.1 data= {"id":6131,"method":"send_cmd","params":["01000117971131190100830604720000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6131}
-> 10.8.0.1 data= {"id":6132,"method":"send_cmd","params":["01000117970131190100830604020000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6132}
-> 10.8.0.1 data= N/A
<- 192.168.1.161 data= N/A
-> 10.8.0.1 data= {"id":6133,"method":"save_cmd_map","params":["01000117971FFFFF0000830604720000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6133}
-> 10.8.0.1 data= {"id":6134,"method":"save_cmd_map","params":["01000117970FFFFF0000830604020000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6134}
-> 10.8.0.1 data= {"id":6135,"method":"get_cmd_map","params":[]}
<- 192.168.1.161 data= {"result":["11311a10,11201410,11311410,11311810,11311710"],"id":6135}
-> 10.8.0.1 data= {"id":6136,"method":"save_cmd_map","params":["010001179711311a1100830600820000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6136}
-> 10.8.0.1 data= {"id":6137,"method":"save_cmd_map","params":["01000117971120141100830681220000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6137}
-> 10.8.0.1 data= {"id":6138,"method":"save_cmd_map","params":["01000117971131141100830600220000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6138}
-> 10.8.0.1 data= {"id":6139,"method":"save_cmd_map","params":["01000117971131181100830600620000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6139}
-> 10.8.0.1 data= {"id":6140,"method":"send_cmd","params":["01000117971131191100830600720000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6140}
-> 10.8.0.1 data= {"id":6141,"method":"save_cmd_map","params":["01000117971131171100830600520000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6141}
-> 10.8.0.1 data= {"id":6142,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","011131190100011797","25"],"id":6142}
-> 10.8.0.1 data= {"id":6143,"method":"send_cmd","params":["01000117970131190100830604020000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6143}
-> 10.8.0.1 data= {"id":6144,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","010131190100011797","25"],"id":6144}
-> 10.8.0.1 data= {"id":6145,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","010131190100011797","25"],"id":6145}
-> 10.8.0.1 data= {"id":6146,"method":"send_cmd","params":["01000117971131190100830604720000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6146}
-> 10.8.0.1 data= N/A
<- 192.168.1.161 data= N/A
-> 10.8.0.1 data= {"id":6147,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","011131190100011797","25"],"id":6147}
-> 10.8.0.1 data= {"id":6148,"method":"get_device_prop","params":["lumi.0","en_nnlight"]}
<- 192.168.1.161 data= {"result":[0],"id":6148}
-> 10.8.0.1 data= {"id":6149,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","011131190100011797","25"],"id":6149}
-> 10.8.0.1 data= {"id":6150,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","011131190100011797","25"],"id":6150}
-> 10.8.0.1 data= {"id":6151,"method":"get_device_prop","params":["lumi.0","en_nnlight"]}
<- 192.168.1.161 data= {"result":[0],"id":6151}
-> 10.8.0.1 data= N/A
<- 192.168.1.161 data= N/A
-> 10.8.0.1 data= {"id":6152,"method":"set_ac_model","params":["01050577000117970100060ED8010000000015001500150040010004015A00AD000000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6152}
-> 10.8.0.1 data= {"id":6153,"method":"send_cmd","params":["01000117971131190100830604720000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6153}
-> 10.8.0.1 data= {"id":6155,"method":"save_cmd_map","params":["01000117971FFFFF0000830604720000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6155}
-> 10.8.0.1 data= {"id":6154,"method":"save_cmd_map","params":["01000117970FFFFF0000830604020000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6154}
-> 10.8.0.1 data= {"id":6156,"method":"get_cmd_map","params":[]}
<- 192.168.1.161 data= {"result":["11311a10,11201410,11311410,11311810,11311710"],"id":6156}
-> 10.8.0.1 data= {"id":6157,"method":"save_cmd_map","params":["010001179711311a1100830600820000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6157}
-> 10.8.0.1 data= {"id":6158,"method":"save_cmd_map","params":["01000117971120141100830681220000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6158}
-> 10.8.0.1 data= {"id":6159,"method":"save_cmd_map","params":["01000117971131141100830600220000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6159}
-> 10.8.0.1 data= {"id":6160,"method":"save_cmd_map","params":["01000117971131181100830600620000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6160}
-> 10.8.0.1 data= {"id":6161,"method":"send_cmd","params":["01000117971131191100830600720000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6161}
-> 10.8.0.1 data= {"id":6162,"method":"save_cmd_map","params":["01000117971131171100830600520000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6162}
-> 10.8.0.1 data= {"id":6163,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","011131190100011797","25"],"id":6163}
-> 10.8.0.1 data= N/A
<- 192.168.1.161 data= N/A
-> 10.8.0.1 data= {"id":6164,"method":"send_cmd","params":["01000117970131190100830604020000"]}
<- 192.168.1.161 data= {"result":["ok"],"id":6164}
-> 10.8.0.1 data= {"id":6165,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","010131190100011797","25"],"id":6165}
-> 10.8.0.1 data= {"id":6166,"method":"get_model_and_state","params":[]}
<- 192.168.1.161 data= {"result":["010505770001179701","010131190100011797","20"],"id":6166}
格力的空调 空调伴侣第二套方案 -> 192.168.10.140 data= N/A <- 192.168.10.106 data= N/A -> 192.168.10.140 data= {"id":4074,"method":"get_lumi_bind","params":["scene"]} <- 192.168.10.106 data= {"result":{"bind_num":0,"fac_scene_enable":0,"total_page":0,"cur_page":0,"page":[]},"id":4074} -> 192.168.10.140 data= {"id":4075,"method":"get_device_prop","params":["lumi.0","ac_mode"]} <- 192.168.10.106 data= {"result":[1],"id":4075} -> 192.168.10.140 data= {"id":4076,"method":"get_model_and_state","params":[]} <- 192.168.10.106 data= {"result":["010500970001072701","0101111A0100010727","0"],"id":4076} -> 192.168.10.140 data= {"id":4077,"method":"get_model_and_state","params":[]} <- 192.168.10.106 data= {"result":["010500970001072701","0101111A0100010727","0"],"id":4077} -> 192.168.10.140 data= {"id":4078,"method":"get_device_prop","params":["lumi.0","plug_state"]} <- 192.168.10.106 data= {"result":["on"],"id":4078} -> 192.168.10.140 data= {"id":4079,"method":"set_ac_model","params":["01050097000107270100120ED8010000000017001600170040010004015A00AD0404030D0316050400170301090800170602015A00AD050D0017030100"]} <- 192.168.10.106 data= {"result":["ok"],"id":4079} -> 192.168.10.140 data= {"id":4080,"method":"send_cmd","params":["010001072711111a0100390A20500210200000390A20700200003000"]} <- 192.168.10.106 data= {"result":["ok"],"id":4080} -> 192.168.10.140 data= N/A <- 192.168.10.106 data= N/A -> 192.168.10.140 data= {"id":4081,"method":"send_cmd","params":["010001072711111e1100390E20500210200040390E20700200003040"]} <- 192.168.10.106 data= {"result":["ok"],"id":4081} -> 192.168.10.140 data= N/A <- 192.168.10.106 data= N/A -> 192.168.10.140 data= {"id":4082,"method":"send_cmd","params":["010001072711011e1100190E20500210200040190E20700200001020"]} <- 192.168.10.106 data= {"result":["ok"],"id":4082} -> 192.168.10.140 data= {"id":4083,"method":"send_cmd","params":["010001072711311e1100090E20500210200040090E20700200000010"]} <- 192.168.10.106 data= {"result":["ok"],"id":4083} -> 192.168.10.140 data= {"id":4084,"method":"send_cmd","params":["010001072711111e1100390E20500210200040390E20700200003040"]} <- 192.168.10.106 data= {"result":["ok"],"id":4084} -> 192.168.10.140 data= N/A <- 192.168.10.106 data= N/A -> 192.168.10.140 data= {"id":4085,"method":"send_cmd","params":["010001072711211e1100390E20500210200040390E20700200005060"]} <- 192.168.10.106 data= {"result":["ok"],"id":4085} -> 192.168.10.140 data= {"id":4086,"method":"send_cmd","params":["010001072711011e1100190E20500210200040190E20700200001020"]} <- 192.168.10.106 data= {"result":["ok"],"id":4086} -> 192.168.10.140 data= {"id":4087,"method":"send_cmd","params":["010001072711001e1100590E20500211200040590E20700200001020"]} <- 192.168.10.106 data= {"result":["ok"],"id":4087} -> 192.168.10.140 data= N/A <- 192.168.10.106 data= N/A -> 192.168.10.140 data= {"id":4088,"method":"send_cmd","params":["010001072711011e1100190E20500210200040190E20700200001020"]} <- 192.168.10.106 data= {"result":["ok"],"id":4088} -> 192.168.10.140 data= {"id":4089,"method":"send_cmd","params":["010001072711011ea000190E20500210200040190E20700200001020"]} <- 192.168.10.106 data= {"result":["ok"],"id":4089} -> 192.168.10.140 data= {"id":4090,"method":"send_cmd","params":["010001072711011e0000190E20500210200040190E20700200001020"]} <- 192.168.10.106 data= {"result":["ok"],"id":4090} -> 192.168.10.140 data= N/A <- 192.168.10.106 data= N/A -> 192.168.10.140 data= {"id":4091,"method":"send_cmd","params":["010001072701011e01004000205002112000D04000207002000000A0"]} <- 192.168.10.106 data= {"result":["ok"],"id":4091}
01050577000117970100060ED8010000000015001500150040010004015A00AD000000