device.options
Options read from the device, named as the device names them. Emitted by zk-push 2.4 when the clock answers the get_options command (beside the command’s command.result, whose result carries the same values as text).
Schema id: urn:houradvantage:events:3:device.options
Fields
| Field | Type | Required | Description |
|---|---|---|---|
command_id | string | yes | The id of the command that asked, as text (the command’s id in command.result). |
options | object | yes | Option name to value, both as the device spells them; the values are text. A name the device does not have is left out, so the object can be empty. |
Example
{ "command_id": "42", "options": { "VOLUME": "70", "LockOn": "10" }}JSON Schema
device.options.json
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "urn:houradvantage:events:3:device.options", "title": "device.options: data", "description": "Options read from the device, named as the device names them. Emitted by zk-push 2.4 when the clock answers the get_options command (beside the command's command.result, whose result carries the same values as text).", "type": "object", "properties": { "command_id": { "type": "string", "description": "The id of the command that asked, as text (the command's id in command.result)." }, "options": { "description": "Option name to value, both as the device spells them; the values are text. A name the device does not have is left out, so the object can be empty.", "type": "object", "additionalProperties": { "type": "string" } } }, "required": [ "command_id", "options" ], "examples": [ { "command_id": "42", "options": { "VOLUME": "70", "LockOn": "10" } } ]}