SKILL.md
readonly只读
name
openhue
description
通过 OpenHue CLI 控制飞利浦 Hue 灯和场景。
OpenHue CLI
使用 openhue 通过 Hue 桥接器控制飞利浦 Hue 灯和场景。
何时使用
在以下情况下使用:
- "打开/关闭灯"
- "调暗客厅灯光"
- "设置场景"或"电影模式"
- 控制特定的 Hue 房间或区域
- 调整亮度、颜色或色温
何时不使用
在以下情况下不要使用:
- 非 Hue 智能设备(其他品牌)-> 不支持
- HomeKit 场景或快捷指令 -> 使用苹果生态系统
- 电视或娱乐系统控制
- 恒温器或暖通空调
- 智能插座(除非是 Hue 智能插座)
常用命令
列出资源
openhue get light # 列出所有灯
openhue get room # 列出所有房间
openhue get scene # 列出所有场景
控制灯
# 打开/关闭
openhue set light "Bedroom Lamp" --on
openhue set light "Bedroom Lamp" --off
# 亮度 (0-100)
openhue set light "Bedroom Lamp" --on --brightness 50
# 色温 (暖到冷: 153-500 微倒度)
openhue set light "Bedroom Lamp" --on --temperature 300
# 颜色 (按名称或十六进制)
openhue set light "Bedroom Lamp" --on --color red
openhue set light "Bedroom Lamp" --on --rgb "#FF5500"
控制房间
# 关闭整个房间
openhue set room "Bedroom" --off
# 设置房间亮度
openhue set room "Bedroom" --on --brightness 30
场景
# 激活场景
openhue set scene "Relax" --room "Bedroom"
openhue set scene "Concentrate" --room "Office"
快速预设
# 就寝时间 (调暗暖光)
openhue set room "Bedroom" --on --brightness 20 --temperature 450
# 工作模式 (明亮冷光)
openhue set room "Office" --on --brightness 100 --temperature 250
# 电影模式 (调暗)
openhue set room "Living Room" --on --brightness 10
注意事项
- 桥接器必须在本地网络中
- 首次运行需要按下 Hue 桥接器上的按钮进行配对
- 颜色仅适用于支持彩色的灯泡(非纯白灯泡)






