更新时间:2023-06-15 05:05:32
本文介绍查询设备当前状态的 API。
查询设备当前状态,目前只支持红外空调设备。
GET: /v2.0/iot-03/automations/infrared/ac/{device_id}/status
| 参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
|---|---|---|---|---|
| device_id | String | uri | true | 设备 ID |
| 参数名 | 类型 | 说明 |
|---|---|---|
| result | AcStatusExtsRes | 返回结果 |
result 说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| power_open | Boolean | 空调是否开启。
|
| power_name | String | 空调开启状态名称 |
| mode | Integer | 模式 |
| mode_name | String | 模式名称 |
| temperature | Integer | 温度 |
| temperature_name | String | 温度名称 |
| fan | Integer | 风扇 |
| fan_name | String | 风速名称 |
GET: /v2.0/iot-03/automations/infrared/ac/6c819d650100a35f9e****/status
{
"result": {
"fan_name": "风速低",
"power_name": "开机",
"power_open": true,
"mode": 1,
"temperature_name": "温度22℃",
"fan": 1,
"temperature": 22,
"mode_name": "模式制热"
},
"t": 1635734252399,
"success": true
}
参考 错误码。
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈