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 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
7,187
星标
11
全站下载量排名
#3,916
全站前 36% · 「AI 智能体」前 33%
平台累计下载星标评论
ClawHub ↗6,72010-
SkillHub ↗7,18711—

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

这个技能是做什么的

主文说明可查询设备状态并控制智能家居实体;使用前需在 Home Assistant 启用 MCP 集成并配置访问凭据。

资料发布于 2026-10-27

可以用来做什么

  • 查看智能家居设备状态或控制实体

什么时候用

  • 需要通过 Home Assistant 查询状态或执行设备操作时

示例提示词

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

查看客厅灯当前状态,并询问可用的控制操作

月度数据趋势

累计下载7,187
3,4785,4707,4622026-03 · 累计下载 3,7532026-05 · 累计下载 4,9202026-06 · 累计下载 5,2012026-07 · 累计下载 5,6952026-08 · 累计下载 6,0372026-09 · 累计下载 6,4302026-10 · 累计下载 7,18726-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-107,187—11
2026-096,430—11
2026-086,037+6.0%11
2026-075,695+9.5%11
2026-065,201+5.7%11
2026-054,920—10
2026-033,753—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),按月更新。口径说明见数据方法。