power.mode.changed (Power mode changed)
power.mode.changed: Power mode changed
power.mode.changed · device scope · message query permission Alarm
What it does
Reported when the power mode changes. msgType is power.mode.changed (compose event: multiple idents map to this leaf). After subscribing to capabilityEvent, push and pull use the same structure. See Receive device messages, setMessageCallback, Event catalog, and Overview and common payload.
Reported fields
outputData fields vary by model ident and may be {} (for example only electric, or empty); the table below is the common e_powerModeChange shape.
| Name | Description | Type | Required | Values |
|---|---|---|---|---|
mode | Mode (after switch). | enum | no | 0 auto; 1 power saving mode; 2 ultra power saving mode; 3 normal; 4 performance; 5 high performance; 6 custom; 7 standard; 8 continuous recording; 9 vlog recording; 10 long endurance |
battery | Battery level. Range 0–100, step 1, unit %. | int | no | 0–100, step 1, unit % |
electric | Battery level. Range 0–100, step 1, unit %. | int | no | 0–100, step 1, unit % |
Example
{
"msgType": "power.mode.changed",
"deviceId": "TESTIPC000012345",
"productId": "56WGTET2",
"outputData": {
"mode": "1",
"battery": 72
},
"time": 1673406989,
"localTime": "20230111T111629",
"alarmId": "116257862023505xxxx"
}
Minimum permission
The administrator does not need an extra permission on a device they bound. A shared device needs the alarm message permission. A bound sub-user does not. A sub-account needs Alarm. list / search filters out events you are not allowed to see. Power saving / supply mode.
