openhue
它能做什么
这项技能让你的 AI 从终端控制你的飞利浦 Hue 智能灯。适合拥有 Hue 桥接器、希望由 AI 管理照明的人。
适用场景
- ✓你让 AI 开关某个房间灯光的时候。
- ✓你想调暗灯光或改变其颜色或色温的时候。
- ✓你想启用 Hue 场景,例如电影模式的时候。
技能链接
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/smart-home/openhue/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把客厅灯光调到 40%,并设置为暖白色。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能运行 OpenHue 命令行工具,它通过本地网络与你的 Hue 桥接器通信。首次配对时,你需要按一次桥接器上的按钮。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
OpenHue CLI
Control Philips Hue lights and scenes via a Hue Bridge from the terminal.
Prerequisites
# Linux (pre-built binary — releases ship tarballs, not bare binaries)
curl -sL "https://github.com/openhue/openhue-cli/releases/latest/download/openhue_Linux_x86_64.tar.gz" \
| tar -xz -C ~/.hermes/cache/scratch openhue \
&& install -m 0755 ~/.hermes/cache/scratch/openhue ~/.local/bin/openhue
# (use openhue_Linux_arm64.tar.gz on ARM64)
# macOS
brew install openhue/cli/openhue-cli
First run requires pressing the button on your Hue Bridge to pair. The bridge must be on the same local network.
When to Use
- "Turn on/off the lights"
- "Dim the living room lights"
- "Set a scene" or "movie mode"
- Controlling specific Hue rooms, zones, or individual bulbs
- Adjusting brightness, color, or color temperature
Common Commands
List Resources
openhue get light # List all lights
openhue get room # List all rooms
openhue get scene # List all scenes
Control Lights
# Turn on/off
openhue set light "Bedroom Lamp" --on
openhue set light "Bedroom Lamp" --off
# Brightness (0-100)
openhue set light "Bedroom Lamp" --on --brightness 50
# Color temperature (warm to cool: 153-500 mirek)
openhue set light "Bedroom Lamp" --on --temperature 300
# Color (by name or hex)
openhue set light "Bedroom Lamp" --on --color red
openhue set light "Bedroom Lamp" --on --rgb "#FF5500"
Control Rooms
# Turn off entire room
openhue set room "Bedroom" --off
# Set room brightness
openhue set room "Bedroom" --on --brightness 30
Scenes
openhue set scene "Relax" --room "Bedroom"
openhue set scene "Concentrate" --room "Office"
Quick Presets
# Bedtime (dim warm)
openhue set room "Bedroom" --on --brightness 20 --temperature 450
# Work mode (bright cool)
openhue set room "Office" --on --brightness 100 --temperature 250
# Movie mode (dim)
openhue set room "Living Room" --on --brightness 10
# Everything off
openhue set room "Bedroom" --off
openhue set room "Office" --off
openhue set room "Living Room" --off
Notes
- Bridge must be on the same local network as the machine running Hermes
- First run requires physically pressing the button on the Hue Bridge to authorize
- Colors only work on color-capable bulbs (not white-only models)
- Light and room names are case-sensitive — use
openhue get lightto check exact names - Works great with cron jobs for scheduled lighting (e.g. dim at bedtime, bright at wake)
常见问题
桥接器需要联网吗?
需要。技能说明 Hue 桥接器必须与你的电脑处于同一个本地网络中。
如何安装这个工具?
技能列出了 Linux 的二进制文件下载方式,以及 macOS 的 Homebrew 安装方式。
我可以控制哪些内容?
技能涵盖灯光、房间、场景、亮度、色温和颜色。
详情
热度
- GitHub 星标
- 260k
- 排名
- #567
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-merge-conflict-arbiter
260k以中立第三方的身份,解决两个智能体分支之间的 git 合并冲突,为代码仓库生成一个合并结果。
antigravity-cli
260k指导你安装、更新和排查 Antigravity 命令行工具,包括其插件、登录和沙盒。
blackbox
260k让你的智能体把编程任务交给 Blackbox AI 命令行工具,它会运行多个 AI 模型并挑选最佳结果。
dynamic-workflow
260k教你的智能体把大量相似的工作保存为脚本批量运行,使只有经过验证的结果才返回主对话。