DevicePowerGet
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| type_ | str | ❌ | Type of the supported resources |
| id_ | str | ❌ | Unique identifier representing a specific resource instance |
| id_v1 | str | ❌ | Clip v1 resource identifier |
| owner | ResourceIdentifier | ❌ | |
| power_state | PowerState | ❌ |
PowerState
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| battery_state | BatteryState | ❌ | Status of the power source of a device, only for battery powered devices. - normal – battery level is sufficient - low – battery level low, some features (e.g. software update) might stop working, please change battery soon - critical – battery level critical, device can fail any moment |
| battery_level | int | ❌ | The current battery state in percent, only for battery powered devices. |
BatteryState
Status of the power source of a device, only for battery powered devices.
normal– battery level is sufficientlow– battery level low, some features (e.g. software update) might stop working, please change battery sooncritical– battery level critical, device can fail any moment
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| NORMAL | str | ✅ | "normal" |
| LOW | str | ✅ | "low" |
| CRITICAL | str | ✅ | "critical" |
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs