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.
通过 HTTP JSON API 控制 WLED LED 灯带和矩阵。
所有命令都需要使用 --host(或 -H)参数指定 WLED 设备的 IP 地址/主机名。
bash
python3 scripts/wled.py -H
python3 scripts/wled.py -H
python3 scripts/wled.py -H
bash
python3 scripts/wled.py -H
python3 scripts/wled.py -H
python3 scripts/wled.py -H
bash
python3 scripts/wled.py -H
python3 scripts/wled.py -H
python3 scripts/wled.py -H
python3 scripts/wled.py -H
bash
python3 scripts/wled.py -H
python3 scripts/wled.py -H
python3 scripts/wled.py -H
python3 scripts/wled.py -H
python3 scripts/wled.py -H
bash
python3 scripts/wled.py -H
python3 scripts/wled.py -H
bash
python3 scripts/wled.py -H
python3 scripts/wled.py -H
bash
python3 scripts/wled.py -H
完整 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 设备:
IP 地址会随时间变化。为避免更新配置,请在 WLED 设备上设置静态 IP:
选项 1:基于路由器(最简单)
选项 2:在设备上设置
使用 mDNS 主机名(例如 wled-abc123.local)也可以避免 IP 追踪——路由器会自动解析这些名称。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 wled-1776375198 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 wled-1776375198 技能
skillhub install wled-1776375198
文件大小: 6.46 KB | 发布时间: 2026-4-17 14:28