返回顶部
w

wledWLED控制器

Control WLED LED controllers via HTTP API. Use when a user asks to control WLED lights, LED strips, or ESP-based LED controllers. Supports power on/off, brightness, colors (RGB), effects, palettes, presets, and device status.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
2,008
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

wled

WLED 控制

通过 HTTP JSON API 控制 WLED LED 灯带和矩阵。

要求

  • - 同一网络中的 WLED 设备
  • 设备 IP 地址或主机名
  • Python 3(无需外部依赖)

使用方法

所有命令都需要使用 --host(或 -H)参数指定 WLED 设备的 IP 地址/主机名。

电源控制

bash
python3 scripts/wled.py -H power # 获取电源状态
python3 scripts/wled.py -H power on # 开启
python3 scripts/wled.py -H power off # 关闭

亮度

bash
python3 scripts/wled.py -H brightness # 获取当前亮度
python3 scripts/wled.py -H brightness 255 # 最大亮度
python3 scripts/wled.py -H brightness 128 # 50% 亮度

颜色

bash
python3 scripts/wled.py -H color 255 0 0 # 红色
python3 scripts/wled.py -H color 0 255 0 # 绿色
python3 scripts/wled.py -H color 0 0 255 # 蓝色
python3 scripts/wled.py -H color 255 255 255 # 白色

效果

bash
python3 scripts/wled.py -H effects # 列出所有效果及其ID
python3 scripts/wled.py -H effect 0 # 纯色
python3 scripts/wled.py -H effect 9 # 彩虹
python3 scripts/wled.py -H effect 9 -s 200 # 彩虹,快速
python3 scripts/wled.py -H effect 9 -i 128 # 彩虹,中等强度

调色板

bash
python3 scripts/wled.py -H palettes # 列出所有调色板及其ID
python3 scripts/wled.py -H palette 6 # 设置派对调色板

预设

bash
python3 scripts/wled.py -H presets # 列出已保存的预设
python3 scripts/wled.py -H preset 1 # 加载预设 #1

状态

bash
python3 scripts/wled.py -H status # 完整设备状态

参考

完整 API 文档请参见 references/api.md

配置

通过在 ~/.wled/config.json 创建配置文件,避免每次都传递 --host 参数:

json
{
bedroom: 192.168.1.100,
kitchen: 192.168.1.101,
living_room: wled-abc123.local
}

然后使用别名:
bash
python3 scripts/wled.py -H bedroom brightness 255
python3 scripts/wled.py -H kitchen color 255 0 0

或者设置 WLED_HOST 环境变量:
bash
export WLED_HOST=192.168.1.100
python3 scripts/wled.py brightness 255

查找您的 WLED 设备

通常可以通过以下方式找到 WLED 设备:

  • - 路由器管理面板(查找 ESP 设备)
  • mDNS/Bonjour:wled-.local
  • WLED 应用发现

静态 IP 推荐

IP 地址会随时间变化。为避免更新配置,请在 WLED 设备上设置静态 IP

选项 1:基于路由器(最简单)

  1. 1. 打开路由器管理面板
  2. 通过 MAC 地址查找 WLED 设备
  3. 保留/分配静态 IP

选项 2:在设备上设置

  1. 1. 访问 WLED 网页界面 http://<当前-ip>
  2. 进入设置 → WiFi 设置
  3. 手动设置静态 IP
  4. 保存并重启

使用 mDNS 主机名(例如 wled-abc123.local)也可以避免 IP 追踪——路由器会自动解析这些名称。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 wled-1776375198 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 wled-1776375198 技能

通过命令行安装

skillhub install wled-1776375198

下载

⬇ 下载 wled v0.1.0(免费)

文件大小: 6.46 KB | 发布时间: 2026-4-17 14:28

v0.1.0 最新 2026-4-17 14:28
Initial release: Control WLED LED controllers over HTTP with comprehensive device and lighting commands.

- Power on/off, brightness adjustment, and RGB color control supported.
- Change and list effects, palettes, and presets.
- Query full device status.
- Command-line tool with config file and environment variable for simplified device selection.
- No external dependencies required.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部