Device Notifications
Introduction to Device Notifications
A trait notification is an event published by the device to communicate transient information to the user (e.g. low battery, device locked/unlocked audits, etc.).
There are 2 different types of notifications:
- WARNING notifications are critical alerts that require user attention and potentially action to address. An example would be warningBatteryLevel event publishing when battery level is low or critical to warn user to replace batteries.
- INFO notifications are informational events published for user to know what is happening with their device. An example would be the infoUserAccessLockEvent notification publishing an audit event when a credential is presented to the lock.
Trait Notification Flows

Notification Reported Events
See device events for information on subscribing to webhooks or submitting event queries.
DEVICE_NOTIFICATION_REPORTED Event
Event that is published when the device publishes a notification regardless of the trait type (standard or bulk data) or notification type (info or warning).
{
"eventType": "DEVICE_NOTIFICATION_REPORTED",
"notifications": [
{
"category": "notification",
"notificationName": "warningBatteryLevel",
"notificationType": "WARNING",
"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": "batteryV1",
"message": "Device battery level is CRITICAL.",
"id": "92197db2-63a4-4832-9a20-59dd188b6504",
"details": {
"batteryLevel": "CRITICAL"
}
}
]
}DEVICE_NOTIFICATION_REPORTED Event Fields
Field Name | Description | Data Type |
eventType | the name of the event | String |
category | do not use this field, to be deprecated | String |
notificationName | the name of the notification that was published. See individual trait documentation for details | String |
notificationType | the type of notification (INFO or WARNING) | String |
type | do not use this field, to be deprecated | String |
createdAt | ISO8601 format UTC timestamp when event was published to Yonomi event log | DateTime |
sampledAt | ISO8601 format UTC timestamp when event occurred at the device | DateTime |
installationId | the uuid of the installation that has claimed the updated device | ID |
deviceId | the uuid of the device that was updated | ID |
traitName | Name of the trait that defines the updated state(s). See individual trait documentation for available traitNames. | String |
message | user friendly message explaining the notification | String |
id | the uuid assigned to the published event | ID |
details | Additional fields that apply specifically to that notification. See notification definition on individual trait documentation for applicable details. | Object |
What made this section unhelpful for you?
On this page
- Device Notifications