搜索

PythonReactSEOPDF
OpenClaw

philips-hue

Local control of Philips Hue lights via API v1.

aprilox0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install aprilox/philips-hue

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Philips Hue Skill

Local control of Philips Hue lights via API v1.

Installation & Configuration

1. Prerequisites
  • A Philips Hue Bridge on the same local network.
  • curl, jq, and python3 installed on your system.
2. Configure .env file

Create a .env file in the skill directory:

BRIDGE_IP=192.168.1.XX  # Your bridge IP
USERNAME=your_api_key   # Obtained after pairing
3. Pairing (Obtain an API key)

If you don't have a USERNAME, follow these steps:

  1. Press the physical button on your Hue Bridge.
  2. Run a test command; the script will guide you or you can use a setup tool to register "OpenClaw" as a new devicetype.

Usage

The hue.sh script is designed to be fast and flexible. It allows combining multiple actions in a single command.

Basic Commands
# Turn On / Off
./hue.sh light 1 on
./hue.sh light 1 off

# See status of all lights
./hue.sh status
Advanced Control (Chaining)

You can combine color, hex codes, and brightness:

# Turn on in blue at 50% brightness
./hue.sh light 1 on color blue bri 50

# Use HTML Hex codes (e.g., #3399FF)
./hue.sh light 1 color "#3399FF"

# Change color only
./hue.sh light 1 color red

# Precise setting (Brightness 0-100, Hue 0-65535, Sat 0-254)
./hue.sh light 1 bri 80 sat 200 hue 15000
Supported Colors
  • Named: red, blue, green, yellow, orange, pink, purple, white, warm, cold.
  • Hex: Any HTML color code starting with # (e.g., "#FF5733"). Always wrap in quotes.

Skill Structure

  • hue.sh: The control engine (Shell).
  • .env: Your secrets (IP and API Key).
  • SKILL.md: This documentation.

💡 Tip: For ultra-fast access, add a reminder of these commands in your TOOLS.md file at the root of your workspace.

来源信息

Source
github
Repository
openclaw/skills
Path
skills/aprilox/philips-hue
Version
—
Commit
e6ec577012ed9b404bb18bb72b94e661dd4fb594
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# Philips Hue Skill

Local control of Philips Hue lights via API v1.

## Installation & Configuration

### 1. Prerequisites
- A Philips Hue Bridge on the same local network.
- `curl`, `jq`, and `python3` installed on your system.

### 2. Configure .env file
Create a `.env` file in the skill directory:
```bash
BRIDGE_IP=192.168.1.XX  # Your bridge IP
USERNAME=your_api_key   # Obtained after pairing
```

### 3. Pairing (Obtain an API key)
If you don't have a `USERNAME`, follow these steps:
1. Press the physical button on your Hue Bridge.
2. Run a test command; the script will guide you or you can use a setup tool to register "OpenClaw" as a new devicetype.

## Usage

The `hue.sh` script is designed to be fast and flexible. It allows combining multiple actions in a single command.

### Basic Commands
```bash
# Turn On / Off
./hue.sh light 1 on
./hue.sh light 1 off

# See status of all lights
./hue.sh status
```

### Advanced Control (Chaining)
You can combine color, hex codes, and brightness:
```bash
# Turn on in blue at 50% brightness
./hue.sh light 1 on color blue bri 50

# Use HTML Hex codes (e.g., #3399FF)
./hue.sh light 1 color "#3399FF"

# Change color only
./hue.sh light 1 color red

# Precise setting (Brightness 0-100, Hue 0-65535, Sat 0-254)
./hue.sh light 1 bri 80 sat 200 hue 15000
```

### Supported Colors
- **Named:** `red`, `blue`, `green`, `yellow`, `orange`, `pink`, `purple`, `white`, `warm`, `cold`.
- **Hex:** Any HTML color code starting with `#` (e.g., `"#FF5733"`). Always wrap in quotes.

## Skill Structure
- `hue.sh`: The control engine (Shell).
- `.env`: Your secrets (IP and API Key).
- `SKILL.md`: This documentation.

---
💡 **Tip:** For ultra-fast access, add a reminder of these commands in your `TOOLS.md` file at the root of your workspace.

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.