Alone

🏠 Home Assistant via MCP protocol

AI 智慧體v1.0.1
作者:Alone更新於 2026-05-11共 2 個版本 · 最新版本釋出於 2026-02-11mcp-hass@clawhub_al-one/mcp-hass
任務自動化工具呼叫#Smart Home

據 AlphaMoat 統計,截至 2026-10,🏠 Home Assistant via MCP protocol 累計下載 7,187 次、獲 11 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 3,916 位,在「AI 智慧體」分類(1,632 個)中排名第 529 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
7187
星標
11
全站下載量排名
#3,916
全站前 36% · 「AI 智慧體」前 33%
平台累計下載星標評論
ClawHub ↗672010-
SkillHub ↗718711—

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

這個技能是做什麼的

主文說明可查詢裝置狀態並控制智慧家居實體;使用前需在 Home Assistant 啟用 MCP 整合並配置訪問憑證。

資料釋出於 2026-10-27

可以用來做什麼

  • 檢視智慧家居裝置狀態或控制實體

什麼時候用

  • 需要透過 Home Assistant 查詢狀態或執行裝置操作時

示例提示詞

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

檢視客廳燈當前狀態,並詢問可用的控制操作

月度資料趨勢

累計下載7187
3478547074622026-03 · 累計下載 37532026-05 · 累計下載 49202026-06 · 累計下載 52012026-07 · 累計下載 56952026-08 · 累計下載 60372026-09 · 累計下載 64302026-10 · 累計下載 718726-0326-0926-10
星標11
810112026-03 · 星標 82026-05 · 星標 102026-06 · 星標 112026-07 · 星標 112026-08 · 星標 112026-09 · 星標 112026-10 · 星標 1126-0326-0926-10

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。 該技能有同名的其他版本,調整前的資料歸屬當前下載量最大的這一個。

月份累計下載環比星標
2026-107187—11
2026-096430—11
2026-086037+6.0%11
2026-075695+9.5%11
2026-065201+5.7%11
2026-054920—10
2026-033753—8

SKILL.md 原文

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

2.6 KB · ClawHub v1.0.1
---
name: mcp-hass
description: The skill for control Home Assistant smart home devices and query states using MCP protocol.
homepage: https://home-assistant.io/integrations/mcp
metadata:
  {
    "openclaw":
      {
        "emoji": "🏠",
        "requires": { "anyBins": ["mcporter", "npx"], "env": ["HASS_ACCESS_TOKEN", "HASS_BASE_URL"] },
展開全部(共 76 行)
        "primaryEnv": "HASS_ACCESS_TOKEN",
        "install":
          [
            {
              "id": "node",
              "kind": "node",
              "package": "mcporter",
              "bins": ["mcporter"],
              "label": "Install mcporter (node)",
            },
          ],
      },
  }
---

# Home Assistant
Control Home Assistant smart home and query states using MCP protocol.

## Prerequisites
Enable MCP server in Home Assistant:
- Browse to your Home Assistant instance.
- Go to  Settings > Devices & services.
- In the bottom right corner, select the [+ Add Integration](https://my.home-assistant.io/redirect/config_flow_start?domain=mcp) button.
- From the list, select Model Context Protocol.
- Follow the instructions on screen to complete the setup.

## Usage
```shell
# Get states
mcporter call home-assistant.GetLiveContext

# Turn on the device
mcporter call home-assistant.HassTurnOn(name: "Bedroom Light")
mcporter call home-assistant.HassTurnOn(name: "Light", area: "Bedroom")

# Turn off the device
mcporter call home-assistant.HassTurnOff(name: "Bedroom Light")
mcporter call home-assistant.HassTurnOff(area: "Bedroom", domain: ["light"])

# Control light
# brightness: The percentage of the light, where 0 is off and 100 is fully lit.
# color: Name of color
mcporter call home-assistant.HassLightSet(name: "Bedroom Light", brightness: 50)

# Control fan
# percentage: The percentage of the fan, where 0 is off and 100 is full speed.
mcporter call home-assistant.HassFanSetSpeed(name: "Fan", area: "Bedroom", percentage: 80)
```

Execute the following command to learn about specific usage methods:
- `mcporter list home-assistant --schema --all-parameters`

## Config
When prompted that the MCP server does not exist, remind the user to configure the `HASS_BASE_URL` and `HASS_ACCESS_TOKEN` environment variables by executing the following command to add the configuration:
```shell
mcporter config add home-assistant \
  --transport http \
  --url "${HASS_BASE_URL:-http://homeassistant.local:8123}/api/mcp" \
  --header "Authorization=Bearer \${HASS_ACCESS_TOKEN}"
```

## About `mcporter`
- When command `mcporter` does not exist, use `npx -y mcporter` instead.
- https://github.com/steipete/mcporter/raw/refs/heads/main/docs/call-syntax.md
- https://github.com/steipete/mcporter/raw/refs/heads/main/docs/cli-reference.md

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

Alone 的其他技能

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