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
Key fields
Notes
Related

Arming mode changed

Arming mode changed detection.arming.changed

Key fields

FieldTypeNotes
modeenumhome Home; away Away; disarm Disarm

Notes

Standard pushes use capabilityEvent and this page’s msgType; some models may also use legacy msg_type—see device.capability.list and message query.

Subscribe to capabilityEvent in setMessageCallback. msgType is detection.arming.changed (same as Event types). Push payload: Common payload and Receive alarm messages; this page summarizes outputData only. Requires Alarm permission. Device or channel level (may include channelId).

compose: Legacy arming codes (e.g. home/leave/no_defend or legacy Home/Away/Disarm msg_type) merge to catalog msgType detection.arming.changed. The platform maps outputData.mode to the string enum in the table above—do not parse legacy payloads wholesale or as ints. See Event message types. Current mode property: Arming mode.

{
 "msgType": "detection.arming.changed",
 "deviceId": "TESTIPC000012345",
 "productId": "56WGTET2",
 "channelId": "0",
 "outputData": { "mode": "away" },
 "time": 1673406989,
 "alarmId": "116257862023505xxxx"
}

Related

  • Arming mode changed (capability reference)
  • Arming
  • Receive alarm messages (capabilities)
  • Receive alarm messages (guide)
  • Search messages by type
  • Event types