name: openhue description: 通过 OpenHue CLI 控制飞利浦 Hue 灯光和场景。 homepage: https://www.openhue.io/cli metadata: { “openclaw”: { “emoji”: “💡”, “requires”: { “bins”: [“openhue”] }, “install”: [ { “id”: “brew”, “kind”: “brew”, “formula”: “openhue/cli/openhue-cli”, “bins”: [“openhue”], “label”: “安装 OpenHue CLI (brew)”, }, ], }, }
OpenHue CLI
使用 openhue 通过 Hue 桥接器控制飞利浦 Hue 灯光和场景。
使用场景
✅ 在以下情况使用此技能:
- “打开/关闭灯光”
- “调暗客厅灯光”
- “设置场景” 或 “电影模式”
- 控制特定的 Hue 房间或区域
- 调整亮度、颜色或色温
不适用场景
❌ 在以下情况不要使用此技能:
- 非 Hue 品牌的智能设备 → 不支持
- HomeKit 场景或快捷指令 → 请使用苹果生态系统
- 电视或娱乐系统控制
- 恒温器或暖通空调
- 智能插座(除非是 Hue 智能插座)
常用命令
列出资源
openhue get light # 列出所有灯光
openhue get room # 列出所有房间
openhue get scene # 列出所有场景
控制灯光
# 打开/关闭
openhue set light "卧室台灯" --on
openhue set light "卧室台灯" --off
# 亮度 (0-100)
openhue set light "卧室台灯" --on --brightness 50
# 色温 (暖到冷: 153-500 mirek)
openhue set light "卧室台灯" --on --temperature 300
# 颜色 (按名称或十六进制)
openhue set light "卧室台灯" --on --color red
openhue set light "卧室台灯" --on --rgb "#FF5500"
控制房间
# 关闭整个房间
openhue set room "卧室" --off
# 设置房间亮度
openhue set room "卧室" --on --brightness 30
场景
# 激活场景
openhue set scene "放松" --room "卧室"
openhue set scene "专注" --room "办公室"
快捷预设
# 睡前模式 (昏暗暖光)
openhue set room "卧室" --on --brightness 20 --temperature 450
# 工作模式 (明亮冷光)
openhue set room "办公室" --on --brightness 100 --temperature 250
# 电影模式 (昏暗)
openhue set room "客厅" --on --brightness 10
注意事项
- 桥接器必须在本地网络上
- 首次运行需要在 Hue 桥接器上按下按钮进行配对
- 颜色功能仅适用于支持彩色的灯泡(不适用于纯白色灯泡)