Skip to content

Device

Overview

System modules provide system-level information.

device.id

  • Description: This attribute represents the identity corresponding to the device itself.

device.model

  • Description: This attribute indicates the type corresponding to the device itself.

device.version.hardware

  • Description: This attribute indicates the current hardware version number of the system.

device.version.firmware

  • Description: This attribute indicates the current firmware version number.

device.in_nightstand_mode()

  • Description: Check whether the device is currently in night mode.
  • Return Value: False (device is not in night mode) or True (device is in night mode).

Usage examples

import device

# Get device ID
dev_id = device.id

# Get device type
dev_model = device.model

# Get the device hardware version number
hd_ver = device.version.hardware

# Get the system version number
dev_ver = device.version.firmware

# Get the real-time status of the device
in_nightstand = device.in_nightstand_mode()