更新时间:2023-06-20 14:54:05下载pdf
本文介绍获取空调的当前状态的 API。
根据传入的遥控器 ID 查询该空调当前的状态。
GET: /v2.0/infrareds/{infrared_id}/remotes/{remote_id}/ac/status
| 参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
|---|---|---|---|---|
| infrared_id | String | uri | true | 设备 ID |
| remote_id | String | uri | true | 遥控器 ID |
| 参数名 | 类型 | 说明 |
|---|---|---|
| result | AcStatusResultVO |
result 说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| power | String | 电源 |
| mode | String | 模式 |
| temp | String | 温度 |
| wind | String | 风速 |
| remote_id | String | 遥控器 ID |
GET: /v2.0/infrareds/vdevo15345926009****/remotes/d5s65ca55/ac/status
{
"result": {
"temp": "25",
"mode": "4",
"power": "1",
"wind": "0"
},
"t": 1630913243979,
"success": true
}
参考 错误码。
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈