/install homey-cli
Homey CLI
Safe, agent-friendly CLI for controlling Homey home automation hubs.
What This Skill Provides
- Device control: Turn devices on/off, dim lights, change colors, set temperatures
- Device inspection: List devices, check status, read capabilities
- Zone management: List zones and devices per zone
- Flow control: List and trigger flows
- Inventory: Get complete hub overview
Setup
1. Install Dependencies
cd skills/homey-cli
npm install
2. Create Homey App Credentials
- Go to https://tools.developer.homey.app/tools/app
- Create a new app with:
- Callback URL:
http://localhost:8787/callback - Note your Client ID and Client Secret
- Callback URL:
3. Configure Environment
Create .env file:
export HOMEY_CLIENT_ID="your-client-id"
export HOMEY_CLIENT_SECRET="your-client-secret"
export HOMEY_REDIRECT_URL="http://localhost:8787/callback"
4. Login
bash run.sh auth login
Follow the OAuth flow in your browser. Tokens are stored in ~/.config/homey-cli/.
Usage
List Homeys
bash run.sh homey list
Select Active Homey
bash run.sh homey use \x3ChomeyId>
Device Operations
# List all devices
bash run.sh devices list
# List devices as JSON
bash run.sh devices list --json
# Get specific device
bash run.sh devices get \x3CdeviceId>
# Read capability value
bash run.sh devices read \x3CdeviceId> onoff
# Control devices
bash run.sh devices on \x3CdeviceId>
bash run.sh devices off \x3CdeviceId>
bash run.sh devices dim \x3CdeviceId> 0.4
bash run.sh devices color \x3CdeviceId> #FF8800
bash run.sh devices temperature \x3CdeviceId> 21.5
Flow Operations
# List flows
bash run.sh flows list
# Trigger flow
bash run.sh flows trigger \x3CflowId>
Complete Inventory
bash run.sh inventory --json
Safety Model
Write operations are capability-allowlisted for safety:
- Default allowed:
onoff,dim,light_hue,light_saturation,light_temperature,target_temperature - Override via:
export HOMEY_CLI_ALLOWED_CAPABILITIES=onoff,dim,target_temperature
Destructive operations (delete devices, modify flows, change app settings) are not supported.
Common Queries
When users ask:
- "Turn on the kitchen lights" → List devices, find match, use
devices on \x3CdeviceId> - "Dim living room to 50%" → Find device, use
devices dim \x3CdeviceId> 0.5 - "What's the temperature in the bedroom?" → Find device, use
devices read \x3CdeviceId> measure_temperature - "List all my lights" → Use
devices list --jsonand filter by class/capabilities
Configuration Storage
- Tokens:
~/.config/homey-cli/credentials.json - Active Homey:
~/.config/homey-cli/config.json
Troubleshooting
- Auth errors: Re-run
bash run.sh auth login - Device not found: Check device name/ID with
bash run.sh devices list - Capability not allowed: Add to
HOMEY_CLI_ALLOWED_CAPABILITIESor check if it's a read-only capability
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install homey-cli - 安装完成后,直接呼叫该 Skill 的名称或使用
/homey-cli触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Homey - Home Automation 是什么?
Control Homey home automation hub via CLI. Use when you need to control smart home devices (lights, thermostats, sockets, etc.), check device status, list zones, trigger flows, or perform any Homey automation tasks. Supports on/off, dimming, color changes, temperature control, and device inspection. Safe, capability-allowlisted operations only. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2159 次。
如何安装 Homey - Home Automation?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install homey-cli」即可一键安装,无需额外配置。
Homey - Home Automation 是免费的吗?
是的,Homey - Home Automation 完全免费(开源免费),可自由下载、安装和使用。
Homey - Home Automation 支持哪些平台?
Homey - Home Automation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Homey - Home Automation?
由 KrauseFx(@krausefx)开发并维护,当前版本 v1.0.0。