Device battery level changed

Webhook triggers when device battery level changes. This webhook is triggered for lock and keypad devices.

Body

Name Type Description
data Data detailed information about what changed
event string event name: “device-battery-level-changed”
timestamp datetime exact time when the webhook was sent to the receiver
userIdentity string receiver of the webhook (user identity)

Data

Name Type Description
batteryLevel number current battery level of the device
deviceId number id of the device
deviceType Device type device type
eventTime datetime exact time when the battery level changed

Examples

Sample webhook after device battery level changed

{
    "event": "device-battery-level-changed",
    "timestamp": "2022-11-09T14:15:30.244Z",
    "userIdentity": "<user-identity>",
    "data": {
        "deviceId": 12345,
        "deviceType": 2,
        "eventTime": "2022-11-09T14:15:28.327Z",
        "batteryLevel": 80
    }
}