💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC=2] ## 设备状态 ~~~[api] get:/api/get_status *string:sn=741100000011#设备序号 *string:data={}#获取的参数 <<< success { "code": 0, "data": { "hw_temp_set": 26, "mode": 0, "temp_status": 26, "lan_pwd_enable": false, "temp_floor": "126.0", "xj_hours": 0, "dev": [], "xj_temp_set": 5, "h_s": 0, "fan_speed": 0, "is_fan_work": false, "is_key_lock": false, "w_t_o": 0, "k_close": true, "work_P": 0, "sw": "22.1", "sys_lock": 2, "version": 3, "t_f_show": false, "STemp": 5, "is_heat": false, "code": 0, "rssi": -37, "cool_heat": 0, "bg_cfg": [0,50,2,50,0,20,0], "mcu_type": 181 } } <<< error { "code": -1, "msg": "参数错误" } ~~~ ## 批量状态 ~~~[api] post:/api/get_batch_status *array:snList=['741100000011']#设备序列号数组 <<< success { "code": 0, "data": { "741100000011": { "policy_name": "无", "sn": "741100000011", "mode": 0, "hw_temp_set": 26, "is_fan_work": false, "xj_temp_set": 5, "mcu_type": 181, "lan_pwd_enable": false, "work_P": 0, "temp_floor": "126.0", "xj_hours": 0, "sys_lock": 2, "temp_status": 26, "h_s": 0, "fan_speed": 0, "nickname": "智能温控器", "subtype": 0, "t_f_show": false, "k_close": true, "is_heat": false, "STemp": 5, "w_t_o": 0, "version": 3, "is_key_lock": false, "offline": false, "sw": "22.4", "code": 0, "rssi": -37, "cool_heat": 0, "bg_cfg": [0,50,2,50,0,20,0], "type": 29 } } } <<< error { "code": -1, "msg": "参数错误" } ~~~ ## 在线时间 ~~~[api] get:/api/get_online_time *string:sn=741100000011#设备序号 <<< success { "code": 0, "data": { "nickname": "智能温控器", // 设备名称 "subtype": 0, // 设备类型 "server_domain": "wl.suittc.com", // 服务器地址 "time_zone": 8, "new_fw": "V2_4", "ssid": "CloudBox-0494B5", "fw": "V2_4", "time_zone_mins": "0", "uptime": 59900, "rssi": -37, "ip": "172.16.0.159", "type": 29, "code": 0 } } <<< error { "code": -1, "msg": "参数错误" } ~~~ ## 批量在线 ~~~[api] post:/api/get_online_time_bat *array:snList=[1,2]#设备序号列表 <<< success { "code": 0, "data": { "741100000011": { "nickname": "智能温控器", "subtype": 0, "server_domain": "wl.suittc.com", "time_zone": 8, "new_fw": "V2_4", "ssid": "CloudBox-0494B5", "fw": "V2_4", "time_zone_mins": "0", "uptime": 61155, "rssi": -35, "ip": "172.16.0.159", "type": 29 } } } <<< error { "code": -1, "msg": "参数错误" } ~~~ ## 获取智能 ~~~[api] get:/api/get_intelligent_config *string:data={}#智能模式相关参数 状态接口也可获取 <<< success { "code": 0, "data": { "smart_cfg": [129], "dev": [], "code": 0 } } <<< error { "code": -1, "msg": "参数错误" } ~~~ ## 设备配置 ~~~[api] post:/api/control_device *string:sn=741100000011#设备序号 *string:data={}#控制的参数 *int:type=53#设备类型 <<< success { "code": 0, "data": { "741100000011": { "policy_name": "无", "sn": "741100000011", "mode": 0, "hw_temp_set": 26, "is_fan_work": false, "xj_temp_set": 5, "mcu_type": 181, "lan_pwd_enable": false, "work_P": 0, "temp_floor": "126.0", "xj_hours": 0, "sys_lock": 2, "temp_status": 26, "h_s": 0, "fan_speed": 0, "nickname": "智能温控器", "subtype": 0, "t_f_show": false, "k_close": true, "is_heat": false, "STemp": 5, "w_t_o": 0, "version": 3, "is_key_lock": false, "offline": false, "sw": "22.4", "code": 0, "rssi": -37, "cool_heat": 0, "bg_cfg": [0,50,2,50,0,20,0], "type": 29 } } } <<< error { "code": -1, "msg": "参数错误" } ~~~ ## 批量配置 ~~~[api] post:/api/control_device_bat *string:sn_list=["741100000011"]#设备序号 *string:data={}#控制的参数 *int:type=53#设备类型 <<< success // 返回的每个设备参数的数组 <<< error { "code": -1, "msg": "参数错误" } ~~~ ## 智能配置 ~~~[api] post:/api/control_device_bat *string:sn_list=["741100000011"]#设备序号 *string:data={}#控制的参数 *int:type=53#设备类型 <<< success // 返回的每个设备配置参数的数组 <<< error { "code": -1, "msg": "参数错误" } ~~~ ## 设备红外 ~~~[api] post:/api/get_ir_libs *string:sn=741100000011#设备序号 <<< success // 参考具体接口参数 <<< error { "code": -1, "msg": "参数错误" } ~~~ ## 设置红外 ~~~[api] post:/api/set_ir_libs *string:sn=741100000011#设备序号 *string:data={}#设备功能 <<< success // 参考具体接口参数 <<< error { "code": -1, "msg": "参数错误" } ~~~ ## 红外功能 ~~~[api] get:/api/get_ir_limit *string:sn=741100000011#设备序号 *string:data={}#填写获取的相关参数 <<< success // 参考具体接口参数 <<< error { "code": -1, "msg": "参数错误" } ~~~ ## 平板功能 ~~~[api] post:/api/flat *string:data={"sn":"741100000011"}#相关参数 <<< parameter // 设备列表获取 sn => method => get offset => 10 // p偏移量 count => 1 // 条数 <<< parameter // 设备锁定 sn => 设备序号 method => set_lock_info 方法 power_off_and_lock => boolean 是否关机上锁 due_date => 到期时间时间戳 dev_pwd => 温控器解锁密码 <<< parameter // 历史记录 sn => 设备序号 method => get_temp_history // 方法 year => 年 month => 月 // 实际月份减一 day => 日 address => 设备地址 <<< parameter // 设备配置 sn => 设备序号 method => set // 方法 address => [1,2] // 地址数组 data => {} // 配置相关的字段和参数 <<< success // 参考具体接口参数 <<< error { "code": -1, "msg": "参数错误" } ~~~