名称: nanoleaf
描述: 通过 Picoleaf CLI 控制 Nanoleaf 灯板。可用于开关灯、调节亮度、设置颜色(RGB/HSL)、调整色温或进行任何 Nanoleaf 灯光控制。
主页: https://github.com/tessro/picoleaf
元数据: {"clawdbot":{"emoji":"🌈","requires":{"bins":["picoleaf"]},"install":[{"id":"brew","kind":"brew","tap":"paulrosania/command-home","formula":"paulrosania/command-home/picoleaf","bins":["picoleaf"],"label":"安装 Picoleaf CLI (brew)"},{"id":"binary","kind":"shell","command":"curl -sL https://github.com/tessro/picoleaf/releases/latest/download/picoleaf_1.4.0_linux_amd64.tar.gz | tar xz -C ~/.local/bin","bins":["picoleaf"],"label":"安装 Picoleaf (二进制包)"}]}}
使用 picoleaf 命令控制 Nanoleaf 灯板。
dns-sd -Z _nanoleafapicurl -iLX POST http://<ip>:16021/api/v1/new~/.picoleafrc:ini
host=<ip>:16021
access_token=<token>picoleaf on - 开灯picoleaf off - 关灯picoleaf brightness <0-100> - 设置亮度百分比picoleaf rgb <r> <g> <b> - 设置 RGB 颜色(每个值范围 0-255)picoleaf hsl <hue> <sat> <light> - 设置 HSL 颜色picoleaf temp <1200-6500> - 设置色温(单位:开尔文)picoleaf on && picoleaf brightness 30 && picoleaf temp 2700picoleaf on && picoleaf brightness 100 && picoleaf rgb 0 100 255picoleaf off&& 连接执行