Skip to content

device.back

The gateway’s own event: a device came back after an absence longer than its endpoint’s back_after_minutes. It is told once per return, when the device is let in again. Nothing looks for absences: a return is told when the device calls. The endpoint’s policy package’s back hook is called after it is stored. The envelope’s tenant, endpoint, group and device name the device.

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

Fields

FieldTypeRequiredDescription
device_idintegeryesThe gateway’s own number for the device in its register.
last_seenstring (date-time)yesWhen it was last seen before it came back.
absent_forintegeryesHow long it was away, in seconds.

Example

{
"device_id": 17,
"last_seen": "2026-09-28T17:02:11Z",
"absent_for": 864000
}

JSON Schema

device.back.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:houradvantage:events:3:device.back",
"title": "device.back: data",
"description": "The gateway's own event: a device came back after an absence longer than its endpoint's back_after_minutes. It is told once per return, when the device is let in again. Nothing looks for absences: a return is told when the device calls. The endpoint's policy package's back hook is called after it is stored. The envelope's tenant, endpoint, group and device name the device.",
"type": "object",
"properties": {
"device_id": {
"type": "integer",
"description": "The gateway's own number for the device in its register."
},
"last_seen": {
"type": "string",
"format": "date-time",
"description": "When it was last seen before it came back."
},
"absent_for": {
"type": "integer",
"description": "How long it was away, in seconds."
}
},
"required": [
"device_id",
"last_seen",
"absent_for"
],
"examples": [
{
"device_id": 17,
"last_seen": "2026-09-28T17:02:11Z",
"absent_for": 864000
}
]
}