openhue – skill Lập trình cho agent AI
Điều khiển đèn Philips Hue, cảnh sáng và phòng qua OpenHue CLI.
Cài skill openhue bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/openhue-f7134.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /openhue – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/openhue-f7134.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $openhue – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/openhue-f7134.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /openhue – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/openhue-f7134.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /openhue – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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-cliFirst 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 scenesControl 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 30Scenes
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" --offNotes
- 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)
Skill liên quan
- case-review – Đánh giá cổng chất lượng cho gói hồ sơ reverse-engineering hoặc đánh giá: mức độ sẵn…
- cc-skill-backend-patterns – Mẫu kiến trúc backend, thiết kế API, tối ưu cơ sở dữ liệu và thực hành tốt phía server…
- cc-skill-coding-standards – Tiêu chuẩn mã nguồn, thực hành tốt nhất và mẫu chung cho phát triển TypeScript…
- cc-skill-continuous-learning – Biến một phiên gỡ lỗi đã hoàn thành hoặc lần người dùng sửa lại nhiều lần thành một quy…
- python-observability – Mẫu observability cho Python gồm logging có cấu trúc, metrics và distributed tracing…
- hivemind – Điều phối các worker opencode miễn phí từ Claude Code để giảm chi phí token. Dùng khi…
- cc-skill-security-review – Hướng dẫn rà soát các thực hành bảo mật và lỗ hổng tiềm ẩn; không có checklist nào đảm…
- python-packaging – Tạo gói Python có thể phân phối với cấu trúc dự án đúng chuẩn, setup.py/pyproject.toml…