Devices
Get the Status of a Device Component
Get the status of all attributes of a specified component.
The results may be filtered if the requester only has permission to view a subset of the component's capabilities.
If the OAuth token used in this API call is for a SmartApp that created the Device, it implicitly has permission for this API.
get/devices/{deviceId}/components/{componentId}/status
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesr:devices:*
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Successful return current status of device component's attributes.
Component Status required
A map of capabilityId to capability status.
Example response
{
"switch": {
"switch": {
"value": "on"
}
},
"switchLevel": {
"level": {
"value": 90
}
}
}Changes
No recorded changes to this operation across all 8 revisions of this API.