AUDIO
Listen to this page
0:00
Chapters
manage_light — room lighting
The minimal reference plugin: a voice/text tool without routes, UI or sidecars. One tool, two actions, switchable rooms.
Installation
Enabled/disabled from the Plugins screen. The installer exposes it as option 4 (after esphome, google_docs, cameras). Light switching maps to whatever the household backend is — the bundled implementation shells out to an external CLI (e.g. a zigbee/Light house tool) so no service stack is required.
Usage
Voice examples:
- "turn on the lights in the kitchen"
- "turn off the light in the bedroom"
Direct API:
POST /api/v1/tools/manage_light {"room": "kitchen", "action": "off"}
| parameter | values |
|---|---|
room |
room name as configured in the household ("kitchen", "bedroom", …) |
action |
on / off |
The manifest example used in the documentation and the agent prompts is this plugin — it demonstrates:
- a minimal
manifest.jsonwith anactionenum (../plugins-api); {success, message, data}result shaping the agent quotes by voice;- child_process integration for third-party executables (
exec/spawn); - scope
devices:lights:write,minRole: user(../architecture).
Troubleshooting
- Tool not offered by the agent → check the plugin is enabled and the
user's role satisfies
minRole; sharpen the manifest description if matching is poor. - Lights do not react → the external executable configured in the plugin
must exist in the core container's PATH; test the exact call manually
(
execlogs to the core container's stdout).
Last updated: November 2026