power source

power source Structure: A power source.

power source structure
name string
state power state: optional
present boolean: optional
health power health: optional
confidence power confidence: optional
current capacity power source capacity: optional
charging boolean: optional
seconds remaining integer: optional

Description

A power source is typically an internal or external battery or specialised power supply. Specialised power supplies include uninterruptible power supply (UPS) devices.

Fields

type

Connection type of power source.

name

Name of the power source.

state

Is the power source available and in use.

present

Is the power source present.

health

Is the power source is good health.

Power sources such as batteries degrade with age and use. Some power sources are able to detect this process and provide a guide as to the health of the battery.

confidence

Is the health field accurate.

current capacity

Current percentage capacity.

charging

Is the power source being charged.

seconds remaining

Estimated seconds remaining until fully charged or empty.

If the power source is being charged, the seconds remaining refer to the time remaining until fully charged.

If the power source is being used, the seconds remaining refer to the time remaining until the power source is empty.

This value may not be present for all power sources.

Related

power source serial power source USB power source network power source internal power source unknown