Nanoleaf 智能灯板极速控制助手
简介
基于 Picoleaf CLI 的 Nanoleaf 灯板控制方案,支持本地网络极速调节亮度、色彩与色温,打造沉浸式智能照明体验。
原始描述
Control Nanoleaf light panels via the Picoleaf CLI. Use for turning Nanoleaf on/off, adjusting brightness, setting colors (RGB/HSL), changing color temperature, or any Nanoleaf lighting control.
通过你的 Agent 添加
安装目录:nanoleaf/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
本 Skill 是 Picoleaf CLI 的文档型封装,专用于通过命令行精确控制 Nanoleaf 智能灯板。使用前需完成三步配置:通过 mDNS 或路由器查找设备 IP、物理按压电源键 5-7 秒生成访问令牌、创建 ~/.picoleafrc 配置文件。配置完成后,用户可通过简洁的命令实现开关机 (picoleaf on/off)、亮度调节 (picoleaf brightness 0-100)、RGB/HSL 色彩设置 (picoleaf rgb 0 100 255)、以及 1200-6500K 色温调节。支持使用 && 链式组合命令,一键切换复杂灯光场景。
显著优点
作为纯文档型资产,本 Skill 具有极高的透明度和安全性,无代码执行风险。功能覆盖全面,从基础开关到专业级色彩管理一应俱全。基于本地局域网通信(端口 16021),响应延迟极低且无需依赖云服务,隐私保护完善。命令设计直观,学习成本极低,同时支持脚本化集成,可轻松接入 Home Assistant 等智能家居自动化流程。物理接触式令牌生成机制兼顾了便利性与安全性。
潜在缺点
功能实现依赖外部 picoleaf CLI 工具,需要用户手动从 GitHub Releases 下载安装,增加了初始部署复杂度。控制范围严格限定在本地网络,无法实现原生远程控制(需额外配置 VPN 或内网穿透)。作为 T3 来源的个人开源项目,长期维护更新和兼容性保障存在不确定性。此外,初始配置需要一定的网络知识(如理解 mDNS、INI 配置文件格式),对非技术用户不够友好。
适合的目标群体
主要面向三类用户:一是拥有 Nanoleaf 硬件且偏好命令行效率的技术爱好者;二是需要将灯光控制集成到自动化脚本、Cron 任务或 CI/CD 流程中的开发者;三是注重隐私、希望完全本地化管理智能家居的高级用户。对于习惯手机 App 图形界面、无 Nanoleaf 设备、或缺乏基础网络配置知识的普通消费者,本 Skill 并不适用。
使用风险
依赖可靠性:需手动安装第三方二进制文件,虽开源可查但需防范供应链攻击,建议校验 release 签名。配置安全:~/.picoleafrc 包含设备访问令牌,若权限设置不当(如 644)可能导致本地其他用户读取,建议使用 chmod 600 保护。兼容性风险:Nanoleaf 固件更新可能破坏第三方 API 兼容性,导致部分功能失效。网络边界:虽然本地通信避免了公网暴露,但若家庭网络被入侵,攻击者可直接控制照明设备,建议配合网络隔离(IoT VLAN)使用。
技能正文
name: nanoleaf
description: Control Nanoleaf light panels via the Picoleaf CLI. Use for turning Nanoleaf on/off, adjusting brightness, setting colors (RGB/HSL), changing color temperature, or any Nanoleaf lighting control.
homepage: https://github.com/tessro/picoleaf
metadata: {"clawdbot":{"emoji":"🌈","requires":{"bins":["picoleaf"]},"install":[{"id":"brew","kind":"brew","tap":"paulrosania/command-home","formula":"paulrosania/command-home/picoleaf","bins":["picoleaf"],"label":"Install 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":"Install Picoleaf (binary)"}]}}
Picoleaf CLI
Use picoleaf to control Nanoleaf light panels.
Setup
- Find Nanoleaf IP: Check router or use mDNS:
dns-sd -Z _nanoleafapi - Generate token: Hold power button 5-7 sec until LED flashes, then within 30 sec run:
curl -iLX POST http://<ip>:16021/api/v1/new - Create config file
~/.picoleafrc:host=<ip>:16021 access_token=<token>
Power
picoleaf on- Turn onpicoleaf off- Turn off
Brightness
picoleaf brightness <0-100>- Set brightness percentage
Colors
picoleaf rgb <r> <g> <b>- Set RGB color (0-255 each)picoleaf hsl <hue> <sat> <light>- Set HSL colorpicoleaf temp <1200-6500>- Set color temperature in Kelvin
Examples
- Warm dim light:
picoleaf on && picoleaf brightness 30 && picoleaf temp 2700 - Bright blue:
picoleaf on && picoleaf brightness 100 && picoleaf rgb 0 100 255 - Turn off:
picoleaf off
Notes
- Default port is 16021
- Token generation requires physical access to the Nanoleaf controller
- Multiple commands can be chained with
&&
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。