set_key
Assign or replace an action on an OpenDeck key, dial, or touch slot; configure its title, image, and settings, with changes staged for confirmation.
Instructions
Place an action on a key or dial, replacing whatever is there. For dials use dial with an action that supports Encoder. For a Multi/Toggle Action, set it here, then add_child. Staged only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | Slot: r1c1 (row/column, 1-based), key13, touch1, dial1 or infobar1. | |
| image | No | Key image: a file path, an http(s) URL, or a data: URL; 'default' restores the action's own. | |
| title | No | Text drawn on the key; \n for a new line. | |
| action | Yes | Action uuid or name (see list_actions). | |
| device | Yes | Device id or name, e.g. 'ulanzi-d200h' (see get_overview). | |
| profile | No | Profile id; defaults to the device's selected profile. | |
| settings | No | The action's settings object (see describe_action). | |
| title_style | No | Title look: show (bool), colour (#RRGGBB), size (int), family (font), style (Regular|Bold|Italic|Bold Italic), alignment (top|middle|bottom), underline (bool), stroke_colour, stroke_size, background_colour. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |