Openhue
通過 OpenHue CLI 控制 Philips Hue 燈光、房間和場景。開關燈光、調節亮度、顏色、色溫以及激活場景。
技能元數據
| 來源 | 捆綁(默認安裝) |
| 路徑 | skills/smart-home/openhue |
| 版本 | 1.0.0 |
| 作者 | community |
| 許可證 | MIT |
| 標籤 | Smart-Home, Hue, Lights, IoT, Automation |
參考:完整 SKILL.md
信息
以下是 Hermes 在觸發此技能時加載的完整技能定義。這是技能激活時代理所看到的指令。
OpenHue CLI
通過終端從 Hue Bridge 控制 Philips Hue 燈光和場景。
前提條件
# Linux (pre-built binary)
curl -sL https://github.com/openhue/openhue-cli/releases/latest/download/openhue-linux-amd64 -o ~/.local/bin/openhue && chmod +x ~/.local/bin/openhue
# macOS
brew install openhue/cli/openhue-cli
首次運行需要按下 Hue Bridge 上的按鈕進行配對。Bridge 必須位於同一本地網絡上。
何時使用
- “打開/關閉燈光”
- “調暗客廳燈光”
- “設置場景”或“電影模式”
- 控制特定的 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
場景
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
# Everything off
openhue set room "Bedroom" --off
openhue set room "Office" --off
openhue set room "Living Room" --off
注意事項
- Bridge 必須與運行 Hermes 的機器位於同一本地網絡上
- 首次運行需要物理按下 Hue Bridge 上的按鈕以進行授權
- 顏色僅適用於支持顏色的燈泡(不適用於僅白光型號)
- 燈光和房間名稱區分大小寫 — 使用
openhue get light檢查確切名稱 - 與 cron 任務配合使用可實現定時照明(例如,就寢時調暗,醒來時調亮)