PowerSourceV1
Information regarding the power source of the device.
Trait Type: Standard
Reported States
Note: See Overview: Device Reported State for more information on reported state flows.
State Definitions
powerSource state
Indicates the power source the device is currently on.
Data Type: enum
Valid Values
Enumerated Value | Description |
BATTERY | Device is battery powered. |
LINE_POWER | Device has hardwired power source. |
POWER_OVER_ETHERNET | Device is powered over ethernet according to 802.3af standard. |
POWER_OVER_ETHERNET_PLUS | Device is powered over ethernet according to 802.3at standard. |
UNKNOWN | Device has no power source specified. |
UNSUPPORTED | Device has not yet reported a value for this field. |
Device State Query GQL Examples
Request Example
query Device {
device(deviceId: "9a8f6104-6c50-476e-90ee-16b9a2dafc8d") {
id
traits {
... on PowerSourceV1DeviceTrait {
name
state {
powerSource {
reported {
value
}
}
}
}
}
}
}
Response Example
{
"data": {
"device": {
"id": "9a8f6104-6c50-476e-90ee-16b9a2dafc8d",
"traits": [
{
"name": "PowerSourceV1",
"state": {
"powerSource": {
"reported": {
"value": "BATTERY"
}
}
}
}
]
}
}
}Notification Events
Note: See Overview: Device Notifications for more information on notfication event flows.
infoJumpStartPowerEvent
Information on events related to device being powered on via the usb-c port.
Details Fields
Not applicable to this event.
Event Example
{
"eventType": "DEVICE_NOTIFICATION_REPORTED",
"notifications": [
{
"category": "notification",
"notificationName": "infoJumpStartPowerEvent",
"notificationType": "INFO",
"type": "notification reported",
"createdAt": "2024-12-20T14:49:55.000Z",
"sampledAt": "2024-12-20T14:49:39.663Z",
"installationId": "819cd607-aede-482e-9aa0-8b65d420e300",
"deviceId": "9a8f6104-6c50-476e-90ee-16b9a2dafc8d",
"traitName": "PowerSourceV1",
"message": "An unknown power source has been plugged into device's USB-C Port.",
"id": "92197db2-63a4-4832-9a20-59dd188b6504",
"details": {}
}
]
}What made this section unhelpful for you?
On this page
- PowerSourceV1