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
累計下載
3194
星標
3
全站排名
#3,566
全站前 71% · 「生活服務」前 74%
平台累計安裝累計下載星標評論
ClawHub ↗10331943-

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

它介紹裝置狀態查詢、區域與流程列表,以及對照明、插座和溫度等允許能力執行開關或調節操作;具體可用操作取決於裝置能力白名單和帳戶配置。實際控制會影響家庭環境,執行前應確認目標裝置、動作和使用者授權。

資料釋出於 2026-10-29

可以用來做什麼

  • 檢視 Homey 裝置、區域及其能力狀態。
  • 按允許的能力控制燈光、插座或溫度設定。
  • 檢查自動化流程並在獲准時觸發指定流程。

什麼時候用

  • 需要檢視 Homey 中裝置或區域的當前狀態時。
  • 需要控制已明確指定的智慧家居裝置時。
  • 觸發流程或改變溫度等設定前,需要確認目標、結果和授權範圍時。

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

列出這套 Homey 中的裝置與可讀狀態,不改變任何設定。
在明確授權的前提下,找到指定房間的燈並說明將執行的操作;先不要實際操作。

月度資料趨勢

累計下載3194
2915306532152026-07 · 累計下載 29362026-08 · 累計下載 30712026-09 · 累計下載 319426-0726-09
星標3
2342026-07 · 星標 32026-08 · 星標 32026-09 · 星標 326-0726-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093194—3
2026-083071+4.6%3
2026-072936—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),按月更新。口徑說明見資料方法。