更新时间:2024-08-21 01:45:55下载pdf
本文介绍获取设备列表的 API。
获取设备信息列表。
GET: /v1.0/illumination/devices
参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
---|---|---|---|---|
projectId | String | uri | false | 项目 ID。 |
roomId | String | uri | true | 房间 ID。 |
roomType | Integer | uri | true | 房间类型。 |
page | Integer | uri | false | 当前页码。 |
pageSize | Integer | uri | false | 每页记录数量。 |
deviceStatus | List《String》 | uri | true | 设备状态。 |
参数名 | 类型 | 说明 |
---|---|---|
total | int | 返回的总条数。 |
list | DeviceBasicVO[] | 设备信息列表。 |
GET: /v1.0/illumination/devices
{
"pageSize": "10",
"page": "1",
"projectId": "1323671234234",
"roomId": "152372223482",
}
{
"tid": "f2919c24fbac11ed876d16e5066b4061",
"result": {
"list": [
{
"switchInfo": [
],
"masterGroupJoinStatus": 2,
"deviceStatuses": [
"normal"
],
"industryPurpose": {
},
"installTime": 1681962468804,
"switchStatus": false,
"ownerId": "59457509",
"deviceId": "6c4794741ec4f88c993***",
"deviceName": "网关测试",
"uuid": "a651b293c892b***",
"roomId": "1559640253681***",
"deviceStatus": "normal",
"capability": "zigbee/wifi",
"pointId": "",
"devicePurpose": {
},
"deviceMac": "",
"currentBrightness": 0,
"model": "",
"id": 2114488,
"deviceType": "gateway",
"deviceTypeValue": 1,
"productId": "wpr7snzwzxbsy***",
"deviceSaasId": "sa43837415438329***",
"categoryCode": "wf_zig_wg2",
"roomName": "测试",
"topCategory": "wgzk",
"online": true,
"devicePower": 0,
"category": "wg2",
"projectId": "1541976932755718***",
"properties": [
{
"dpName": "报警静音",
"dpId": 4,
"mode": "rw",
"dpValueStd": "false",
"propertyDetail": {
"type": "bool"
},
"dpCode": "switch_alarm_sound",
"property": {
"range": [
]
}
}
]
}
],
"total": 1
},
"t": 1685095574507,
"success": true
}
参考 错误码。
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈