Get started
  • English
  • 简体中文
Official Site
Get started
  • English
  • 简体中文
Official Site
  • Get started
  • Concepts
  • Guides
  • Device capabilities & events
    • Browse by device type
    • Device capabilities
    • Events overview
      • Event types
      • Device status
      • Binding and authorization
      • Detection and alarms
      • Doorbell and lock
      • Service events
      • Overview and common payload
      • Event message types
      • Event message format
    • Permission codes
    • Capability error codes
    • Alarm and capability messages
    • Capability FAQ
    • Legacy ability and push types
  • API reference
  • SDK and tools
  • Solutions
  • Platform and support
On this page
1. General alarm messages (legacy push)
Scene change message:
Motion detection message:
Intrusion detection message:
2. model device alarm messages (device info or QR label includes productId)
motion detection message:
person detection message:
intrusion detection message:
3. Device or channel online/offline messages
Device or channel online message:
Device or channel offline message:
4. Capability catalog events (capabilityEvent)

Event message format

Event message format examples

Sections 1–3 below are legacy alarm/iot/deviceStatus callback samples (did/cid/desc); msgType enums are in Event message types (legacy table). Capability catalog events (capabilityEvent, deviceId/outputData) are in 4. Capability catalog events and Overview and common payload. Archived copies of sections 1–3: legacy payload format.

1. General alarm messages (legacy push)

Scene change message:

{
 "id": 2447736561,
 "appId": "lcdxxxxxxxxx", // Developer appId
 "did": "TESTQWERXXXX", // Device serial number
 "cid": 0, // Channel number
 "msgType": "videoMotion", // Message type
 "type": 1,
 "time": 1475052555, // Alarm time
 "utcTime": 1475052555, // UTC alarm time
 "cname": "Front Door", // Device channel name
 "remark": "",
 "token": "f2dc8c09eeae4b5bad6abf522c93d825", // Linked cloud recording token
 "subType": "Alarm",
 "skip": {},
 "action": "start",
 "desc": {}
}

Notes:

  1. Only devices with platForm 4 include a token field on alarm messages.

  2. The desc object holds different fields per message type.

Motion detection message:

{
 "id": 2447736570,
 "appId": "lcdxxxxxxxxx", // Developer appId
 "did": "TESTQWERXXXX", // Device serial number
 "cid": 0, // Channel number
 "msgType": "mobileDetect", // Message type
 "type": 167,
 "time": 1475052555, // Alarm time
 "utcTime": 1475052555, // UTC alarm time
 "cname": "Front Door", // Device channel name
 "remark": "",
 "token": "f2dc8c09eeae4b5bad6abf522c93d825", // Linked cloud recording token
 "subType": "Alarm",
 "skip": {},
 "action": "start",
 "desc": {}
}

Intrusion detection message:

{
 "id": 2447736563,
 "appId": "lcdxxxxxxxxx", // Developer appId
 "did": "TESTQWERXXXX", // Device serial number
 "cid": 0, // Channel number
 "msgType": "crossRegionDetection", // Message type
 "type": 10211,
 "time": 1475052555, // Alarm time
 "utcTime": 1475052555, // UTC alarm time
 "cname": "Front Door", // Device channel name
 "remark": "",
 "token": "f2dc8c09eeae4b5bad6abf522c93d825", // Linked cloud recording token
 "subType": "Alarm",
 "skip": {},
 "action": "start",
 "desc": {
 "region": "Region 1" // Intrusion region name
 }
}

2. model device alarm messages (device info or QR label includes productId)

motion detection message:

{
 "msgType": "iotEvent", // alarm message
 "appId": "lcdxxxxxxxxx", // Developer appId
 "userId": "user001",
 "did": "TESTQWERXXXX", // Device serial number
 "pid": "B2HP68AA", // product ID, 
 "dname": "Front Door Camera", // Device name
 "channelId": "0", // Channel number
 "alarmId": "1162578620235051004", // Message event ID
 "time": "20250901195200", // Alarm time
 "utcTime": "20250901T115200", // UTC alarm time
 "token": "f2dc8c09eeae4b5bad6abf522c93d825", // Linked cloud recording token
 "content": {
 "event": "32000", // Thing-model event code; 32000 = motion detection
 "localTime": "20250901195200", // Event local time
 "outputData": {}
 }
}

person detection message:

{
 "msgType": "iotEvent", // alarm message
 "appId": "lcdxxxxxxxxx", // Developer appId
 "userId": "user001",
 "did": "TESTQWERXXXX", // Device serial number
 "pid": "B2HP68AA", // product ID, 
 "dname": "Front Door Camera", // Device name
 "channelId": "0", // Channel number
 "alarmId": "1162578620235051004", // Message event ID
 "time": "20250901195200", // Alarm time
 "utcTime": "20250901T115200", // UTC alarm time
 "token": "f2dc8c09eeae4b5bad6abf522c93d825", // Linked cloud recording token
 "content": {
 "event": "33000", // Thing-model event code; 33000 = person detection
 "localTime": "20250901195200", // Event local time
 "outputData": {}
 }
}

intrusion detection message:

{
 "msgType": "iotEvent", // alarm message
 "appId": "lcdxxxxxxxxx", // Developer appId
 "userId": "user001",
 "did": "TESTQWERXXXX", // Device serial number
 "pid": "YHVYZA5Q", // product ID, 
 "dname": "Front Door Camera", // Device name
 "channelId": "0", // Channel number
 "alarmId": "1162578620235051004", // Message event ID
 "time": "20250901195200", // Alarm time
 "utcTime": "20250901T115200", // UTC alarm time
 "token": "f2dc8c09eeae4b5bad6abf522c93d825", // Linked cloud recording token
 "content": {
 "event": "312200", // Thing-model event code; 312200 = region intrusion
 "localTime": "20250901195200", // Event local time
 "outputData": {}
 }
}

3. Device or channel online/offline messages

Device or channel online message:

{
 "id": -1,
 "appId": "lcdxxxxxxxxx", // Developer appId
 "did": "TESTQWERXXXX", // Device serial number
 "cid": -1, // Channel; -1 = device online, otherwise channel online
 "pid": "B2HP68AA", // product ID; model devices only
 "msgType": "online", // Message type
 "type": 11,
 "time": 1475052555, // Alarm time
 "utcTime": 1475052555, // UTC alarm time
 "cname": "Front Door", // Channel name
 "dname": "Front Door Camera", // Device name
 "skip": {},
 "iotFlag": "false",
 "userId": 10001
}

Device or channel offline message:

{
 "id": -1,
 "appId": "lcdxxxxxxxxx", // Developer appId
 "did": "TESTQWERXXXX", // Device serial number
 "cid": -1, // Channel; -1 = device offline, otherwise channel offline
 "pid": "B2HP68AA", // product ID; model devices only
 "msgType": "offline", // Message type
 "type": 12,
 "time": 1475052555, // Alarm time
 "utcTime": 1475052555, // UTC alarm time
 "cname": "Front Door", // Channel name
 "dname": "Front Door Camera", // Device name
 "skip": {},
 "iotFlag": "false",
 "userId": 10001
}

4. Capability catalog events (capabilityEvent)

After subscribing to capabilityEvent via setMessageCallback, msgType equals the capability eventId and business fields are in outputData. Index: Event types; push payload: Overview and common payload. Full field tables are on each capability event page (e.g. Algorithm package download result). Setup: Receive device messages · Receive alarm messages.

{
 "msgType": "algorithm.package.downloadResult",
 "deviceId": "TESTIPC000012345",
 "productId": "56WGTET2",
 "outputData": {
 "type": "1",
 "dwnResult": {
 "ret": "1",
 "url": "https://example/pkg.bin"
 }
 },
 "time": 1673406989,
 "localTime": "20230111T111629",
 "alarmId": "116257862023505xxxx"
}
Event message types
Permission codes