Samsung · Schema
DeviceComponent
A functional component of a SmartThings device.
Consumer ElectronicsDeveloper PlatformIoTMobileSmart HomeSmart TVWearables
Properties
| Name | Type | Description |
|---|---|---|
| id | string | Component ID (e.g., main, sub). |
| label | string | Human-readable component label. |
| capabilities | array | Capabilities this component supports. |
| categories | array | Device category classifications. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/DeviceComponent",
"title": "DeviceComponent",
"type": "object",
"description": "A functional component of a SmartThings device.",
"properties": {
"id": {
"type": "string",
"description": "Component ID (e.g., main, sub)."
},
"label": {
"type": "string",
"description": "Human-readable component label."
},
"capabilities": {
"type": "array",
"description": "Capabilities this component supports.",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Capability ID (e.g., switch, lock)."
},
"version": {
"type": "integer",
"description": "Capability version."
}
}
}
},
"categories": {
"type": "array",
"description": "Device category classifications.",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Category name."
},
"categoryType": {
"type": "string",
"enum": [
"manufacturer",
"user"
]
}
}
}
}
}
}