Skip to content

command.unanswered

The gateway’s own event: a command handed to a device was lost. The gateway emits it once per command, and the step goes unanswered, which fails its action (action.result). A command is lost when the device answered a command handed out after it (a package whose results come in order, [commands] results in its package.toml), when its package says the device restarted (M.restarted), or when an app gave up on it (cancelling its action with give_up). A command is never lost by how long it takes: no answer within any time is not a reason. A package that says a lost write is safe to hand out again has it handed out once more, without this event; lost twice it is unanswered. An answer that comes later still completes the command and gives a command.result. The envelope’s endpoint, device and package are the device’s.

Schema id: urn:houradvantage:events:3:command.unanswered

Fields

FieldTypeRequiredDescription
command_idintegeryesThe command’s id, as command.result and the action’s steps give it.
actionstringyesThe command’s name, as the package names it.
sent_atstring or null (date-time)yesWhen the command was handed to the device, RFC 3339 UTC.

Example

{
"command_id": 42,
"action": "reboot",
"sent_at": "2026-01-15T08:00:00Z"
}

JSON Schema

command.unanswered.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:houradvantage:events:3:command.unanswered",
"title": "command.unanswered: data",
"description": "The gateway's own event: a command handed to a device was lost. The gateway emits it once per command, and the step goes unanswered, which fails its action (action.result). A command is lost when the device answered a command handed out after it (a package whose results come in order, `[commands] results` in its package.toml), when its package says the device restarted (`M.restarted`), or when an app gave up on it (cancelling its action with give_up). A command is never lost by how long it takes: no answer within any time is not a reason. A package that says a lost write is safe to hand out again has it handed out once more, without this event; lost twice it is unanswered. An answer that comes later still completes the command and gives a command.result. The envelope's endpoint, device and package are the device's.",
"type": "object",
"properties": {
"command_id": {
"type": "integer",
"description": "The command's id, as command.result and the action's steps give it."
},
"action": {
"type": "string",
"description": "The command's name, as the package names it."
},
"sent_at": {
"description": "When the command was handed to the device, RFC 3339 UTC.",
"type": [
"string",
"null"
],
"format": "date-time"
}
},
"required": [
"command_id",
"action",
"sent_at"
],
"examples": [
{
"command_id": 42,
"action": "reboot",
"sent_at": "2026-01-15T08:00:00Z"
}
]
}