💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC=2] ## 设置设备的 ssid ~~~[api] post:/installers/device_status/dev_ssid_set *integer:project_id=1#项目 id *integer:device_id=1#设备 id *string:data={}#配置项 json 字符串 <<< <<< field_explain ssid // 名称 ssid_pwd // 密码 <<< success <<< error ~~~ ## 获取设备附近的 ssid ~~~[api] get:/installers/device_status/dev_ap_list_get *integer:project_id=1#项目 id *integer:device_id=1#设备 id <<< <<< success { "code": 0, "data": { "ap_list": ["电1专用","物联1"], "code": 0 } } <<< error ~~~ ## 设备 IP 配置 ~~~[api] post:/installers/device_status/dev_ip_info_set *integer:project_id=1#项目 id *integer:device_id=1#设备 id *string:data={}#配置项 json 字符串 <<< <<< data "{\"gw\":\"10.1.1.1\",\"netmask\":\"255.255.255.0\",\"ip\": \"10.1.1.221\"}" <<< success { "code": 0, "data": { "code": 0 } } <<< error ~~~ ## 设备额外配置 ~~~[api] get:/installers/device_status/device_config *string:sn=811530000001#设备序列号 <<< <<< success { "code": 0, "data": { "sn": "811530000001", "config": { "LW_clear_t": [ 1699685343, 1699685344, 1699685345, 1699685347 ] } } } <<< explain 根据设备类型可能会有不同的字段,目前只有 95 新风设备 LW_clear_t // 滤网清除时间,最末位是最后清除时间 <<< error ~~~ ## 批量详细信息 ~~~[api] get:/installers/device_status/dev_detail_info_bat *array:sn_list=[""]#序列号数组 <<< <<< success { "code": 0, "data": { "990200000002": { "nickname": "智能窗帘电机", "subtype": 0, "mcu_version": "0", "server_domain": "cn.ikelink.com", "mac": "2c:f4:32:54:0d:03", "time_zone": 8, "new_fw": "V1_5", "ssid": "SuperGW-452773", "fw": "V1_5", "time_zone_mins": 0, "rssi": -46, "uptime": 179522, "ip": "192.168.1.248", "type": 100 } } } <<< explain 不同设备状态返回不一样 <<< error ~~~ ## 设备详细信息 ~~~[api] get:/installers/device_status/dev_detail_info *string:sn=""#设备序列号 <<< <<< success { "code": 0, "data": { "nickname": "智能窗帘电机", "subtype": 0, "mcu_version": "0", "server_domain": "cn.ikelink.com", "mac": "2c:f4:32:54:0d:03", "time_zone": 8, "new_fw": "V1_5", "ssid": "SuperGW-452773", "fw": "V1_5", "time_zone_mins": 0, "rssi": -47, "uptime": 179324, "ip": "192.168.1.248", "type": 100, "code": 0 } } <<< error ~~~ ## 设备升级检查 ~~~[api] post:/installers/device_status/upgrade_check *array:sn_list=["746814001309"]#设备序列号数组 <<< <<< success { "code": 0, "data": { "code": 0, "info": [ { "upgrade_status": 0, "fw": "V3_7", "sn": "746814001309" } ] } } <<< explain 参考超哥接口返回描述 <<< error ~~~ ## 设备开始升级 ~~~[api] post:/installers/device_status/upgrade_start *integer:project_id=0#项目id *array:device_ids=[1]#设备 id 数组 <<< <<< success { "code": 0, "data": { "code": 0, "info": [ { "sn": "746814001309", "upgrade_status": 0 } ] } } <<< explain 参考超哥接口返回描述 <<< error ~~~ ## 单个设备状态 ~~~[api] get:/installers/device_status/get *string:sn=741100000012#设备序列号 *string:data={}#获取项 json 字符串 <<< <<< success { "code": 0, "data": { "is_heat": true, "temp_status": 35, "temp_avg": 27, "lan_pwd_enable": false, "temp_floor": "126.0", "xj_hours": 0, "key_P": 0, "h_s": 0, "is_key_lock": false, "mcu_version": 0, "temp_min": 23, "version": 3, "STemp": 5, "code": 0, "fgp_status": 0, "hw_temp_set": 35, "dev": [], "E_FGP": [ "0.00", "0.00", "0.00" ], "protectstatus": 0, "key_V": 0, "E_price": "0.00", "tempOUT": 0, "hum_time_remain_mins": 0, "tempJN": 0, "E_stats": 0, "temp_max": 30, "is_fg_valid": false, "t_f_show": true, "tempSS": 0, "E_price_save": "0.00", "fan_speed": 0, "fg_open": false, "sw": "28.1", "mcu_version2": 0, "k_close": false, "mode": 0, "xj_temp_set": 14, "E_on": false, "sys_lock": 0, "is_fan_work": false, "temp": "28.1", "next_time": -1, "hum_time_remain_hour": 0, "rssi": -54, "cool_heat": 0, "bg_cfg": [ 0, 85, 2, 50, 0, 20, 0 ], "mcu_type": 181 } } <<< error ~~~ ## 批量设备状态 ~~~[api] post:/installers/device_status/get_bat *array:sn_list=["741100001111","741100000001"]#设备序列号数组 <<< <<< success { "code": 0, "data": { "741100000012": { "is_heat": true, "temp_status": 35, "temp_avg": 27, "lan_pwd_enable": false, "temp_floor": "126.0", "xj_hours": 0, "key_P": 0, "h_s": 0, "subtype": 0, "mcu_version": 0, "temp_min": 23, "version": 3, "E_FGP": [ "0.00", "0.00", "0.00" ], "STemp": 5, "is_fg_valid": false, "code": 0, "is_key_lock": false, "offline": false, "fgp_status": 0, "type": 29, "policy_name": "无", "tempSS": 0, "sn": "741100000012", "mode": 0, "key_V": 0, "E_price": "0.00", "tempOUT": 0, "hum_time_remain_mins": 0, "tempJN": 0, "E_stats": 0, "temp_max": 30, "fg_open": false, "mcu_version2": 0, "protectstatus": 0, "E_price_save": "0.00", "fan_speed": 0, "nickname": "智能温控器", "next_time": -1, "is_fan_work": false, "k_close": false, "t_f_show": true, "hw_temp_set": 35, "E_on": false, "sys_lock": 0, "xj_temp_set": 14, "temp": "28.3", "sw": "28.3", "hum_time_remain_hour": 0, "rssi": -53, "cool_heat": 0, "bg_cfg": [ 0, 85, 2, 50, 0, 20, 0 ], "mcu_type": 181 } } } <<< error ~~~ ## 单个设备配置 ~~~[api] post:/installers/device_status/set *integer:project_id=1#项目 id *integer:device_id=1#设备 id *string:data={}#配置项 json 字符串 <<< <<< success { "code": 0 } <<< 网关配置 https://gitee.com/iKECINCode/project_des/blob/master/kp09c0110.md <<< error ~~~ ## 批量设备配置 ~~~[api] post:/installers/device_status/set *integer:project_id=1#项目 id *array:device_ids=[1]#设备 id 数组 *string:data={}#配置项 json 字符串 <<< <<< success { "code": 0 } <<< error ~~~ ## 项目设备配置 ~~~[api] post:/installers/device_status/project_set_bat *integer:project_id=0#项目 id *integer:type=0#设备类型 integer:group_id=0#项目分组 id *string:data={}#配置项 json 字符串 <<< <<< success { "code": 0 } <<< error ~~~ >[danger] 分组 id 取值 0 或者不传表示控制所有的 > 每个类型设备对应的功能不一样,需要确认功能是否正确