Skip to main content

DevicePowerGet

Properties

NameTypeRequiredDescription
type_strType of the supported resources
id_strUnique identifier representing a specific resource instance
id_v1strClip v1 resource identifier
ownerResourceIdentifier
power_statePowerState

PowerState

Properties

NameTypeRequiredDescription
battery_stateBatteryStateStatus 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_levelintThe 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 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

Properties

NameTypeRequiredDescription
NORMALstr"normal"
LOWstr"low"
CRITICALstr"critical"

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →