DevCats

Home Assistant Assist

AI 智慧體v1.1.1
作者:DevCats更新於 2026-05-17共 4 個版本 · 最新版本釋出於 2026-02-23homeassistant-assist@clawhub_developmentcats/homeassistant-assist
任務自動化工具呼叫#Smart Home

據 AlphaMoat 統計,截至 2026-09,Home Assistant Assist 累計下載 4,783 次、獲 6 個星標,在全部 5,078 個 AI 技能中排名第 1,974 位,在「AI 智慧體」分類(969 個)中排名第 373 位。

累計安裝
167
累計下載
4783
星標
6
全站排名
#1,974
全站前 39% · 「AI 智慧體」前 39%
平台累計安裝累計下載星標評論
ClawHub ↗154478364
SkillHub ↗16747616—

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

這個技能是做什麼的

該技能將自然語言請求傳送給 Home Assistant,由 Assist 解析意圖、匹配裝置並執行操作。它擁有較廣的裝置控制能力,需要長期存取令牌;應使用權限最小化的專用令牌、HTTPS 連線,並為含糊或高風險操作增加確認。除非有額外保護,不應用於門鎖、警報器或車庫門等裝置。 需要 curl、HASS_SERVER 與 HASS_TOKEN;依序處理裝置請求並檢查錯誤、歧義和失敗目標,不預設每個裝置操作均成功。

資料釋出於 2026-10-27

可以用來做什麼

  • 查詢或控制 Home Assistant 中的智慧裝置
  • 為裝置請求提供自然語言指令
  • 檢查 Assist 回傳的執行結果

什麼時候用

  • 需要透過 Home Assistant Assist API 與智慧家居裝置互動時
  • 先明確裝置和預期動作;高風險或含糊請求應確認後再執行,並妥善保護令牌設定

示例提示詞

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

先確認目標裝置和具體動作,再透過 Assist 執行這項低風險操作;如果裝置或動作不明確,請先詢問,不要控制門鎖、警報器或車庫門。

月度資料趨勢

累計下載4783
2834388149272026-03 · 累計下載 29782026-05 · 累計下載 37742026-06 · 累計下載 39752026-07 · 累計下載 43522026-08 · 累計下載 45862026-09 · 累計下載 478326-0326-09
星標6
5672026-03 · 星標 62026-05 · 星標 62026-06 · 星標 62026-07 · 星標 62026-08 · 星標 62026-09 · 星標 626-0326-09

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

月份累計下載環比星標
2026-094783—6
2026-084586+5.4%6
2026-074352+9.5%6
2026-063975+5.3%6
2026-053774—6
2026-032978—6

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

3.5 KB · ClawHub v1.1.1
---
name: homeassistant-assist
description: Control Home Assistant smart home devices using the Assist (Conversation) API. Use this skill when the user wants to control smart home entities - lights, switches, thermostats, covers, vacuums, media players, or any other smart device. Passes natural language directly to Home Assistant's built-in NLU for fast, token-efficient control.
homepage: https://github.com/DevelopmentCats/homeassistant-assist
metadata:
  openclaw:
    emoji: "🏠"
    requires:
      bins: ["curl"]
      env: ["HASS_SERVER", "HASS_TOKEN"]
展開全部(共 123 行)
    primaryEnv: "HASS_TOKEN"
---

# Home Assistant Assist

Control smart home devices by passing natural language to Home Assistant's Assist (Conversation) API. **Fire and forget** — trust Assist to handle intent parsing, entity resolution, and execution.

## When to Use This Skill

Use this skill when the user wants to **control or query any smart home device**. If it's in Home Assistant, Assist can handle it.

## How It Works

Pass the user's request directly to Assist:

```bash
curl -s -X POST "$HASS_SERVER/api/conversation/process" \
  -H "Authorization: Bearer $HASS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text": "USER REQUEST HERE", "language": "en"}'
```

**Trust Assist.** It handles:
- Intent parsing
- Fuzzy entity name matching
- Area-aware commands
- Execution
- Error responses

## Handling Responses

**Just relay what Assist says.** The `response.speech.plain.speech` field contains the human-readable result.

- `"Turned on the light"` → Success, tell the user
- `"Sorry, I couldn't understand that"` → Assist couldn't parse it
- `"Sorry, there are multiple devices called X"` → Ambiguous name

**Don't over-interpret.** If Assist says it worked, it worked. Trust the response.

## When Assist Returns an Error

Only if Assist returns an error (`response_type: "error"`), you can **suggest HA-side improvements**:

| Error | Suggestion |
|-------|------------|
| `no_intent_match` | "HA didn't recognize that command" |
| `no_valid_targets` | "Try checking the entity name in HA, or add an alias" |
| Multiple devices | "There may be duplicate names — consider adding unique aliases in HA" |

These are **suggestions for improving HA config**, not skill failures. The skill did its job — it passed the request to Assist.

## Setup

Set environment variables in OpenClaw config:

```json
{
  "env": {
    "HASS_SERVER": "https://your-homeassistant-url",
    "HASS_TOKEN": "your-long-lived-access-token"
  }
}
```

Generate a token: Home Assistant → Profile → Long-Lived Access Tokens → Create Token

## API Reference

### Endpoint

```
POST /api/conversation/process
```

**Note:** Use `/api/conversation/process`, NOT `/api/services/conversation/process`.

### Request

```json
{
  "text": "turn on the kitchen lights",
  "language": "en"
}
```

### Response

```json
{
  "response": {
    "speech": {
      "plain": {"speech": "Turned on the light"}
    },
    "response_type": "action_done",
    "data": {
      "success": [{"name": "Kitchen Light", "id": "light.kitchen"}],
      "failed": []
    }
  }
}
```

## Philosophy

- **Trust Assist** — It knows the user's HA setup better than we do
- **Fire and forget** — Pass the request, relay the response
- **Don't troubleshoot** — If something doesn't work, suggest HA config improvements
- **Keep it simple** — One API call, natural language in, natural language out

## Links

- [Home Assistant Conversation API Docs](https://developers.home-assistant.io/docs/intent_conversation_api/)

「AI 智慧體」分類下的熱門技能

DevCats 的其他技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。