Documentation Index
Fetch the complete documentation index at: https://docs.heylua.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
lua devices manages the registered devices your agent can command and receive triggers from — IoT sensors, label printers, smart-home gear, kiosks, etc. The command lets you list, enable, disable, remove, and test devices and their triggers without writing any code.
For defining devices in code, see the Devices tab. For building your own device client, see Build Your Own.
Subcommands
| Action | What it does |
|---|---|
list | List all registered devices (optionally filter by --group). |
status | Print online/offline/disabled state and last-seen time for a device. |
enable | Re-enable a previously disabled device. |
disable | Stop the agent from issuing commands to a device (offline mode). |
remove | Unregister a device. Use --force to skip the confirmation. |
test | Send a test command to a device. Prompts interactively or use --payload. |
test-trigger | Fire a test trigger as if it came from the device. |
Options
| Option | Description |
|---|---|
--device-name <name> | Device name. Required for most non-interactive actions. |
--group <name> | Filter device list by group (use with list). |
--payload <json> | JSON payload for test / test-trigger (default: {}). |
--timeout <ms> | Command timeout in milliseconds (default: 30000). |
--force | Skip confirmation prompts (used with remove). |
Examples
Test Command vs Test Trigger
| Command | Direction | When to use |
|---|---|---|
test | Agent → device | Verify your agent can send commands to a device and that the device responds. |
test-trigger | Device → agent | Verify your agent reacts correctly when a trigger fires from a device. |
Common Workflow
After registering a new device:Related
- Devices Overview
- Self-Describing Commands
- Device Triggers
- Agent Tools for Devices
- Logs Command — filter by
--type deviceor--type device-trigger

