用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/taracodlabs/aiden --skill openhue命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | openhue |
| description | Control Philips Hue lights via OpenHue CLI + Hue Bridge API |
| category | smart-home |
| version | 1.0.0 |
| origin | aiden |
| license | Apache-2.0 |
| tags | hue, philips, smart-home, lights, openhue, cli, iot, automation, rgb, brightness |
Control Philips Hue lights using the OpenHue CLI or the local Hue Bridge REST API. Works entirely on your local network — no cloud required.
# Install via winget
winget install openhue.cli
# Or via npm
npm install -g openhue-cli
# Verify
openhue --version
# Discover the Hue Bridge on your network
openhue discover
# Pair (press the button on the Bridge within 30 seconds, then run)
openhue pair --host 192.168.1.x # use IP from discover output
# Save credentials
openhue configure --host 192.168.1.x --api-key YOUR_API_KEY
openhue get lights
# Turn specific light on/off (by ID or name)
openhue set light "Living Room 1" --on true
openhue set light "Living Room 1" --on false
# Turn all lights off
openhue set lights --on false
# Brightness 0-100
openhue set light "Desk Lamp" --brightness 70
# Set color by hue/saturation (hue 0-360, saturation 0-100)
openhue set light "Desk Lamp" --hue 240 --saturation 80 --brightness 80
# Set color temperature in Kelvin (2000K warm to 6500K cool)
openhue set light "Desk Lamp" --color-temp 3000
# List available scenes
openhue get scenes
# Activate a scene in a room
openhue set scene "Relax" --room "Living Room"
$bridge = "192.168.1.x"
$apiKey = $env:HUE_API_KEY
$baseUrl = "https://$bridge/clip/v2"
$headers = @{ "hue-application-key" = $apiKey }
# List all lights
$lights = (Invoke-RestMethod -Uri "$baseUrl/resource/light" -Headers $headers -SkipCertificateCheck).data
$lights | Select-Object id, @{N="name";E={$_.metadata.name}}, @{N="on";E={$_.on.on}}
# Turn a specific light on
$lightId = $lights[0].id
$body = @{ on = @{ on = $true } } | ConvertTo-Json
Invoke-RestMethod -Uri "$baseUrl/resource/light/$lightId" -Method Put -Headers $headers -Body $body -SkipCertificateCheck
"Turn off all the lights in the bedroom"
→ Use step 4: openhue set lights --room "Bedroom" --on false
"Set my desk lamp to a cool blue for focus mode"
→ Use step 5: --hue 220 --saturation 90 --brightness 75 for a cool blue light.
"Activate the Movie scene in the living room"
→ Use step 6: openhue set scene "Movie" --room "Living Room".
-SkipCertificateCheck is needed for direct API calls — the Bridge uses a self-signed certificate~/.openhue/ — do not share this directory