KrauseFx

Homey - Home Automation

生活服务v1.0.0
作者:KrauseFx更新于 2026-05-11homey-cli
#Home Automation#Smart Home

据 AlphaMoat 统计,截至 2026-09,Homey - Home Automation 累计下载 3,194 次、获 3 个星标,在全部 5,078 个 AI 技能中排名第 3,566 位,在「生活服务」分类(246 个)中排名第 181 位。

累计安装
103
累计下载
3,194
星标
3
全站排名
#3,566
全站前 71% · 「生活服务」前 74%
平台累计安装累计下载星标评论
ClawHub ↗1033,1943-

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

它介绍设备状态查询、区域与流程列表,以及对照明、插座和温度等允许能力执行开关或调节操作;具体可用操作取决于设备能力白名单和账户配置。实际控制会影响家庭环境,执行前应确认目标设备、动作和用户授权。

资料发布于 2026-10-29

可以用来做什么

  • 查看 Homey 设备、区域及其能力状态。
  • 按允许的能力控制灯光、插座或温度设置。
  • 检查自动化流程并在获准时触发指定流程。

什么时候用

  • 需要查看 Homey 中设备或区域的当前状态时。
  • 需要控制已明确指定的智能家居设备时。
  • 触发流程或改变温度等设置前,需要确认目标、结果和授权范围时。

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

列出这套 Homey 中的设备与可读状态,不改变任何设置。
在明确授权的前提下,找到指定房间的灯并说明将执行的操作;先不要实际操作。

月度数据趋势

累计下载3,194
2,9153,0653,2152026-07 · 累计下载 2,9362026-08 · 累计下载 3,0712026-09 · 累计下载 3,19426-0726-09
星标3
2342026-07 · 星标 32026-08 · 星标 32026-09 · 星标 326-0726-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,194—3
2026-083,071+4.6%3
2026-072,936—3

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.3 KB · ClawHub v1.0.0
---
name: homey-cli
description: 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.
---

# Homey CLI

Safe, agent-friendly CLI for controlling Homey home automation hubs.

## What This Skill Provides
展开全部(共 132 行)

- **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

```bash
cd skills/homey-cli
npm install
```

### 2. Create Homey App Credentials

1. Go to https://tools.developer.homey.app/tools/app
2. Create a new app with:
   - **Callback URL**: `http://localhost:8787/callback`
   - Note your **Client ID** and **Client Secret**

### 3. Configure Environment

Create `.env` file:

```bash
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
bash run.sh auth login
```

Follow the OAuth flow in your browser. Tokens are stored in `~/.config/homey-cli/`.

## Usage

### List Homeys

```bash
bash run.sh homey list
```

### Select Active Homey

```bash
bash run.sh homey use <homeyId>
```

### Device Operations

```bash
# 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 <deviceId>

# Read capability value
bash run.sh devices read <deviceId> onoff

# Control devices
bash run.sh devices on <deviceId>
bash run.sh devices off <deviceId>
bash run.sh devices dim <deviceId> 0.4
bash run.sh devices color <deviceId> #FF8800
bash run.sh devices temperature <deviceId> 21.5
```

### Flow Operations

```bash
# List flows
bash run.sh flows list

# Trigger flow
bash run.sh flows trigger <flowId>
```

### Complete Inventory

```bash
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 <deviceId>`
- "Dim living room to 50%" → Find device, use `devices dim <deviceId> 0.5`
- "What's the temperature in the bedroom?" → Find device, use `devices read <deviceId> measure_temperature`
- "List all my lights" → Use `devices list --json` and 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_CAPABILITIES` or check if it's a read-only capability

「生活服务」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。