# getDeviceListWithIDs ^11.2
获取指定设备id的设备列表
# 请求参数
| Prop | Type | Default | Comment |
|---|---|---|---|
applianceCodes | Array | N/A | 设备id列表 |
# 接口调用示例
this.$bridge
.getDeviceListWithIDs({
applianceCodes: ['184717953490987', '184717953486616']
})
.then(res => this.$toast(res))
.catch(err => this.$toast(err))
1
2
3
4
5
6
2
3
4
5
6
# 返回参数
- 成功时返回
| Prop | Type | Default | Description |
|---|---|---|---|
code | Number | N/A | 0 |
msg | String | N/A | 返回消息 |
list | Array | N/A | 设备列表 |
- list items 对象属性
| Prop | Type | Default | Description |
|---|---|---|---|
isOnline | String | N/A | 设备是否在线,"1":在线,"0":离线 |
deviceId | String | N/A | 设备ID |
deviceName | String | N/A | 设备名 |
deviceType | String | N/A | 设备类型 |
deviceTypeName | String | N/A | 设备类型名称 |
deviceSubType | String | N/A | 设备子类型 |
deviceSn | String | N/A | 设备SN |
deviceSn8 | String | N/A | 设备SN8码 |
deviceIcon | String | N/A | 设备图标URL |
smartProductId | String | N/A | 智能产品ID |
roomId | String | N/A | 所属房间ID |
roomName | String | N/A | 所属房间名称 |
homeId | String | N/A | 家庭ID |
homeName | String | N/A | 家庭名 |
homeGroupName | String | N/A | 家庭组名 |
floorId | String | N/A | 楼层ID |
floorName | String | N/A | 楼层名称 |
brand | String | N/A | 品牌 |
popupType | Number | N/A | 弹窗类型 |
ssid | String | N/A | 用于蓝牙名称 |
mac | String | N/A | 设备的mac地址,mesh ble 等设备才会有该字段 |
- 失败时返回
| Prop | Type | Default | Description |
|---|---|---|---|
code | Number | N/A | 错误码 |