/install control-usb-relay
When to Use
User wants to control a USB relay module to switch devices on/off or automate based on sensor input.
Core Rules
-
Verify Hardware First — Confirm relay is at
/dev/ttyUSB1and user is indialoutgroup. -
Always Initialize — Call
relay.connect()before any control. Wait 500ms for connection. -
Use Correct Protocol — ON:
A0 01 01 A2, OFF:A0 01 00 A1. Different modules may use different protocols. -
State May Drift —
get_status()tracks last command. May differ if manual override occurred. -
Disconnect on Exit — Always call
relay.disconnect()to release serial port.
Data Storage
No persistent storage. Relay state tracked in memory during session only.
External Endpoints
| Endpoint | Purpose |
|---|---|
/dev/ttyUSB1 |
Serial control |
Quick Reference
| Topic | File |
|---|---|
| Setup & examples | setup.md |
| Troubleshooting | setup.md |
Security Notes
- Physical device control — confirm with user before switching
- Some relays need external 5V/12V power supply
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install control-usb-relay - 安装完成后,直接呼叫该 Skill 的名称或使用
/control-usb-relay触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Control Usb Relay 是什么?
Control USB relay modules with on/off switching, state tracking, and automation support. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 184 次。
如何安装 Control Usb Relay?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install control-usb-relay」即可一键安装,无需额外配置。
Control Usb Relay 是免费的吗?
是的,Control Usb Relay 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Control Usb Relay 支持哪些平台?
Control Usb Relay 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux)。
谁开发了 Control Usb Relay?
由 jiahaoli(@lj-hao)开发并维护,当前版本 v1.0.2。