Skip to content

device.error

Something the device could not do with what it was sent (a command, or data it was given), as the device reports it in its error log. Emitted by zk-push 2.4, one per error row the clock uploads.

Schema id: urn:houradvantage:events:3:device.error

Fields

FieldTypeRequiredDescription
codestringyesThe device’s error code, as text (“-1”); "" when it sent none.
messagestringyesThe device’s error message; "" when it sent none.
command_idstringThe id of the command it concerns, as the device gave it (the gateway’s command id, as text). Absent when the device names no command.
vendorobjectWhat the device said in its own terms, under one key naming the vendor or package (“zk”, “brightlink”). Not part of this contract: see the package’s documentation. Absent when the package adds nothing.

Example

{
"code": "-1",
"message": "template invalid",
"command_id": "42",
"vendor": {
"zk": {
"origin": "cmd",
"detail": ""
}
}
}

JSON Schema

device.error.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:houradvantage:events:3:device.error",
"title": "device.error: data",
"description": "Something the device could not do with what it was sent (a command, or data it was given), as the device reports it in its error log. Emitted by zk-push 2.4, one per error row the clock uploads.",
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "The device's error code, as text (\"-1\"); \"\" when it sent none."
},
"message": {
"type": "string",
"description": "The device's error message; \"\" when it sent none."
},
"command_id": {
"type": "string",
"description": "The id of the command it concerns, as the device gave it (the gateway's command id, as text). Absent when the device names no command."
},
"vendor": {
"description": "What the device said in its own terms, under one key naming the vendor or package (\"zk\", \"brightlink\"). Not part of this contract: see the package's documentation. Absent when the package adds nothing.",
"type": "object",
"minProperties": 1,
"maxProperties": 1,
"additionalProperties": {
"type": "object"
}
}
},
"required": [
"code",
"message"
],
"examples": [
{
"code": "-1",
"message": "template invalid",
"command_id": "42",
"vendor": {
"zk": {
"origin": "cmd",
"detail": ""
}
}
}
]
}