power.sleep.imminent (Sleep imminent event)
power.sleep.imminent: Sleep imminent event
power.sleep.imminent · device scope · message query permission Alarm
What it does
Reported when the device is about to sleep. msgType is power.sleep.imminent. After subscribing to capabilityEvent. See Receive device messages, setMessageCallback, Event catalog, and Overview and common payload. Common follow-ups: Delay sleep, Wake, or read Sleep status.
Reported fields
outputData has no business fields (may be {}). Platform fields: Overview and common payload.
Example
{
"msgType": "power.sleep.imminent",
"deviceId": "TESTIPC000012345",
"productId": "56WGTET2",
"outputData": {},
"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. Sleep and wake.
