DeviceGet
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| type_ | DeviceGetType | ❌ | |
| id_ | str | ❌ | Unique identifier representing a specific resource instance |
| id_v1 | str | ❌ | Clip v1 resource identifier |
| owner | ResourceIdentifier | ❌ | |
| product_data | ProductData | ❌ | |
| metadata | DeviceGetMetadata | ❌ | |
| usertest | DeviceGetUsertest | ❌ | |
| services | List[ResourceIdentifier] | ❌ | References all services providing control and state of the device. |
DeviceGetType
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| DEVICE | str | ✅ | "device" |
DeviceGetMetadata
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| name | str | ❌ | Human readable name of a resource |
| archetype | ProductArchetype | ❌ | The default archetype given by manufacturer. Can be changed by user. |
DeviceGetUsertest
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| status | UsertestStatus | ❌ | |
| usertest | bool | ❌ | Activates or extends user usertest mode of device for 120 seconds. false deactivates usertest mode. In usertest mode, devices report changes in state faster and indicate state changes on device LED (if applicable) |
UsertestStatus
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| SET | str | ✅ | "set" |
| CHANGING | str | ✅ | "changing" |
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs