Can we have the call to get an individual device's details match what is returned from the full devices call? In order to get things like device type, I have to make a call to the full device details and with over 100 devices, it can take over a minute to get the call to return.
Thanks.
"http://[hub_ip]/apps/api/937/devices?access_token=" returns:
{
"name": "Generic Zigbee Motion Sensor",
"label": "Master Bedroom Motion Sensor",
"type": "Generic Zigbee Motion Sensor",
"id": "30",
"date": "2019-10-07T14:09:42+0000",
"model": null,
"manufacturer": null,
"capabilities": [
"TemperatureMeasurement",
"Battery",
"MotionSensor",
"Configuration",
"Refresh",
"Sensor"
],
"attributes": {
"battery": "62",
"dataType": "NUMBER",
"values": null,
"motion": "inactive",
"temperature": "70.81"
},
"commands": [
{
"command": "configure"
},
{
"command": "refresh"
}
]
}
The call to get an individual device's details offers:
{
"id": "30",
"name": "Generic Zigbee Motion Sensor",
"label": "Master Bedroom Motion Sensor",
"attributes": [
{
"name": "battery",
"currentValue": 62,
"dataType": "NUMBER"
},
{
"name": "motion",
"currentValue": "inactive",
"dataType": "ENUM",
"values": [
"inactive",
"active"
]
},
{
"name": "temperature",
"currentValue": 70.81,
"dataType": "NUMBER"
}
],
"capabilities": [
"TemperatureMeasurement",
{
"attributes": [
{
"name": "temperature",
"dataType": null
}
]
},
"Battery",
{
"attributes": [
{
"name": "battery",
"dataType": null
}
]
},
"MotionSensor",
{
"attributes": [
{
"name": "motion",
"dataType": null
}
]
},
"Configuration",
"Refresh",
"Sensor"
],
"commands": [
"configure",
"refresh"
]
}