[TOC=2]
>[danger] 獲取可以用超哥那邊一樣的接口。配置需要用這里的接口(配置有設備密碼校驗等)
## 給設備下載指定碼庫
~~~[api]
post:/installers/device_status/ir_dl_file_set
*integer:project_id=1#項目 id
*integer:device_id=1#設備 id
*string:data={}#配置項 json 字符串
<<<
<<<
data_explain
暫無
<<<
success
<<<
error
~~~
## 設備配置指定品牌、型號
~~~[api]
post:/installers/device_status/ir_code_data_set
*integer:project_id=1#項目 id
*integer:device_id=1#設備 id
*string:data={}#配置項 json 字符串
<<<
<<<
data_explain
xh // 填寫支持的紅外列表的型號
pp // 填寫選擇的紅外的品牌號
ir_type // 配置的類型
1 => 空調
2 => 電視
3 => 機頂盒
<<<
success
<<<
error
~~~
## 獲取空調紅外功能列表
~~~[api]
get:/installers/device_status/get_ir_limit
*string:sn="850831000874"#設備序列號
*string:data={}#參數 json 字符串
<<<
<<<
data_explain
pp // 品牌
xh // 型號
<<<
success
{
"code": 0,
"data": {
"code": 0,
"mode": {
"info": {
"brand": "TECO",
"keywords": "TECO,東元,Electrolux,伊萊克斯",
"length": 9,
"usercode": "iKEIRCODE_AC6301",
"total": 249,
"model": "iKEIRCODE_AC6301"
},
"wind": {
"features": {
"fan_speed_auto": false,
"fan_speed_low": true,
"min_temperature": 0,
"up_down_swing": true,
"fan_speed_high": true,
"fan_speed_medium": true,
"max_temperature": 0
}
},
"dry": {
"features": {
"fan_speed_auto": false,
"fan_speed_low": true,
"min_temperature": 18,
"up_down_swing": true,
"fan_speed_high": false,
"fan_speed_medium": false,
"max_temperature": 30
}
},
"auto": {
"features": {
"fan_speed_auto": true,
"fan_speed_low": true,
"min_temperature": 0,
"up_down_swing": true,
"fan_speed_high": true,
"fan_speed_medium": true,
"max_temperature": 0
}
},
"heat": {
"features": {
"fan_speed_auto": true,
"fan_speed_low": true,
"min_temperature": 18,
"up_down_swing": true,
"fan_speed_high": true,
"fan_speed_medium": true,
"max_temperature": 30
}
},
"cool": {
"features": {
"fan_speed_auto": true,
"fan_speed_low": true,
"min_temperature": 18,
"up_down_swing": true,
"fan_speed_high": true,
"fan_speed_medium": true,
"max_temperature": 30
}
}
}
}
}
<<<
explain
<<<
error
~~~
## 設置紅外設備的碼庫
~~~[api]
post:/installers/device_status/set_ir_libs
*integer:project_id=1#項目 id
*integer:device_id=1#設備 id
*string:data={}#配置項 json 字符串
<<<
<<<
data_explain
xh // 填寫支持的紅外列表的型號
pp // 填寫選擇的紅外的品牌號
ir_type // 配置的類型
0 => 空調
1 => 電視
2 => 機頂盒
<<<
success
<<<
error
~~~
## 獲取設備支持紅外列表
~~~[api]
get:/installers/device_status/get_ir_libs
*string:sn="850831000874"#設備序列號
string:data="{}"#獲取項目 json 字符串
<<<
<<<
data_explain
protocol_3rd => 2 轉換成 app 需要格式
<<<
success
{
"code": 0,
"data": {
"code": 0,
"ac_libs": {
"TECO": [
"iKEIRCODE_AC6301"
],
},
"tv_libs": {
"LETV": [
"iKEIRCODE_TV0301",
"iKEIRCODE_TV0302"
],
},
"stb_libs": {
"LETV": [
"iKEIRCODE_STB1101"
],
},
"ir_num": 516
}
}
<<<
explain
ac_libs // 空調碼庫
tv_libs // 電視碼庫
stb_libs // 機頂盒碼庫
<<<
protocol_3rd_success
{
"code": 0,
"data": {
"code": 0,
"ac_libs": {
"TECO": {
"show_name": "TECO 東元",
"xh_list": [
"iKEIRCODE_AC6301"
],
"search_info": "TECO,東元,Electrolux,伊萊克斯"
},
},
"tv_libs": {
"LETV": {
"show_name": "LETV 樂視",
"xh_list": [
"iKEIRCODE_TV0301",
"iKEIRCODE_TV0302"
],
"search_info": "樂視,letv,Others,其它"
},
},
"stb_libs": {
"LETV": {
"show_name": "LETV 樂視",
"xh_list": [
"iKEIRCODE_STB1101"
],
"search_info": "樂視,letv,Others,其它"
},
},
"ir_num": 516
}
}
<<<
protocol_3rd_explain
ac_libs // 空調碼庫
LETV // 英文名稱
show_name // 中文名稱
tv_libs // 電視碼庫
stb_libs // 機頂盒碼庫
<<<
error
~~~