[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
~~~