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


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



Connection type of power source.


Name of the power source.


Is the power source available and in use.


Is the power source present.


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.


Is the health field accurate.

current capacity

Current percentage capacity.


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.


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

Back to the previous page.