mcpField
O
openhue

openhue

github.com/openclaw其他393.3k5.2k 次安装今天更新
代码仓库

关于 openhue

通过 Hue Bridge 控制 Philips Hue 灯具、房间和场景的命令行技能,适用于 Hue 设备。可执行开关、亮度、色温和场景等基本操作。

主要功能

  1. 01列出灯具、房间和场景
  2. 02开关灯具或整个房间
  3. 03调节亮度和色温
  4. 04为房间启用指定场景

适用场景

  1. 01调暗房间以观看电影
  2. 02将房间设置为工作预设
  3. 03启用指定照明场景

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/openclaw/openclaw --skill openhue

安装后在 Claude Code 中输入/openhue确认已加载。

详细介绍

OpenHue CLI

使用 openhue 通过 Hue Bridge 控制 Philips Hue 灯具和场景。

适用场景

适用于:

  • “打开/关闭灯”
  • “调暗客厅的灯”
  • “设置场景”或“电影模式”
  • 控制特定的 Hue 房间或区域
  • 调整亮度、颜色或色温

不适用场景

不适用于:

  • 非 Hue 智能设备(其他品牌)→ 不受支持
  • HomeKit 场景或快捷指令 → 使用 Apple 的 Home App 或 Shortcuts
  • 电视或娱乐系统控制
  • 恒温器或 HVAC
  • 智能插座(Hue 智能插座除外)

常用命令

列出资源
openhue get light       # List all lights
openhue get room        # List all rooms
openhue get scene       # List all scenes
控制灯具
# 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"
控制房间
# Turn off entire room
openhue set room "Bedroom" --off

# Set room brightness
openhue set room "Bedroom" --on --brightness 30
场景
# Activate scene
openhue set scene "Relax" --room "Bedroom"
openhue set scene "Concentrate" --room "Office"

快速预设

# 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

说明

  • Bridge 必须接入本地网络
  • 首次运行时,需要按下 Hue Bridge 上的按钮进行配对
  • 颜色仅适用于支持彩色的灯泡(不适用于仅支持白光的灯泡)

评论

支持 Markdown