1.6、获取终端设备
地址:/app/v1/userDeviceAll
请求方式:POST
根据id对数据进行分页查询,每次查询100条设备数据,再次查询时传入上次查询的最后一条Id再次查询100条数据。当查询的结果有100条时可以再次执行查询,直到查询的结果小于100条时查询完完全部数据。
参数:
{
"id":"",
"sign":""
}
返回值:
{
"code":200,
"message":"success",
"data":[
{
"id":"cTKO",
"name":"开关灯6-1",
"hide":false,
"state":0,
"areaId":"",
"labelId":"",
"created":"1634351615_19",
"modified":1634351615,
"productId":"FY_TYPE_lightpower",
"modularId":"CVltJA94",
"orderWeight":19,
"groupOnProperties":{
},
"groupingMap":null,
"gatewaySnCode":"F6DDE4EE06DEDAE0",
"modularTypeId":"aydr0610da",
"properties":{
"0101":{
"propertyId":"0101",
"funcId":"01",
"value":"01",
"type":"BOOL",
"startingAddress":"1"
}
}
},
{
"id":"GNY7",
"name":"单通道灯",
"hide":false,
"state":0,
"areaId":"",
"labelId":"",
"grouping":"1",
"created":"1634374547_25",
"modified":1634374547,
"productId":"FY_TYPE_lightbrightness",
"modularId":"A2AajbSr",
"orderWeight":25,
"groupOnProperties":{
"0101":"false",
"properties":{
"0201":"100"
}
},
"groupingMap":null,
"gatewaySnCode":"F6DDE4EE06DEDAE0",
"modularTypeId":"fyd102",
"properties":{
"0201":{
"propertyId":"0201",
"funcId":"01",
"value":"",
"type":"INT",
"startingAddress":"1"
}
}
},
{
"id":"xnk4",
"name":"三通道调色灯",
"hide":false,
"state":0,
"areaId":"",
"labelId":"",
"grouping":"1",
"created":"1634374867_26",
"modified":1634374867,
"productId":"FY_TYPE_lightthreeColor",
"modularId":"A2AajbSr",
"orderWeight":26,
"groupOnProperties":{
"0101":"false",
"properties":{
"0202":"100",
"0203":"100",
"0204":"100"
}
},
"groupingMap":null,
"gatewaySnCode":"F6DDE4EE06DEDAE0",
"modularTypeId":"fyd102",
"properties":{
"0202":{
"propertyId":"0202",
"funcId":"01",
"value":"",
"type":"INT",
"startingAddress":"2"
},
"0203":{
"propertyId":"0203",
"funcId":"01",
"value":"",
"type":"INT",
"startingAddress":"3"
},
"0204":{
"propertyId":"0204",
"funcId":"01",
"value":"",
"type":"INT",
"startingAddress":"4"
}
}
}
]
}
| 参数名 | 数据类型 | 数据长度 | 是否可为空 | 数据说明 | 备注 |
|---|---|---|---|---|---|
| id | string | ||||
| body | map | zigbee中的内容,根据不同的zigbee设备数据不同, | |||
| body.${key}.name | string | 否 | 当zigbee属于按键时,name的值为按键的名称, | ||
| name | string | 设备名称 | |||
| hide | Bool | 是否隐藏 | |||
| state | int | 设备状态 | |||
| areaId | string | 区域编号 | |||
| labelId | string | 标签编号 | |||
| grouping | string | 模块的分组 | 当有设备属于dmx调光时才有值 | ||
| created | string | 创建时间 | 时间戳 | ||
| modified | Datetime | 修改时间 | 时间戳 | ||
| productId | string | 产品编号 | 显示的产品编号 | ||
| modularId | string | 模块编号 | |||
| orderWeight | int | 排序编号 | 先添加的最小 | ||
| groupOnProperties | 对象 | 服务组 | |||
| 0101 | string | 服务电源 | 服务电源对应的值,true表示开,false表示关 | ||
| properties | 对象 | 属性 | |||
| ${key}:${value} | string | 属性开的值 | 服务开始后对应的属性开对应的值 | ||
| groupingMap | map | 分组 | 在dmx调光时候的分组信息 | ||
| gatewaySnCode | string | 网关编号 | |||
| modularTypeId | string | 模块型号 | 绑定的模块的型号 | ||
| properties | 对象 | 属性信息 | |||
| propertyId | 属性编号 | ||||
| funcId | 功能编号 | ||||
| value | string | 当前值 | |||
| type | string | 数据类型 | |||
| startingAddress | string | 模块通道 | 绑定的模块的通道号 | ||
作者:泛云智能 创建时间:2021-10-15 16:12
最后编辑:泛云智能 更新时间:2021-10-21 14:45
最后编辑:泛云智能 更新时间:2021-10-21 14:45