/install homeassistant-mcp
Home Assistant MCP Skill
Description
This skill provides structured access to Home Assistant via its native MCP (Model Context Protocol) integration. It provides tools and context for interacting with devices, sensors, and cameras in the smart home.
Credentials
The MCP server endpoint is http://220.0.0.5:8123/api/mcp.
Ensure the connection is configured with the correct Long-Lived Access Token.
Best Practices
-
Camera Snapshots: MCP tools for cameras (video_garage, homeassistant___XXXXX) DO NOT WORK! Always use
execwithcurlto the REST API to get camera snapshots:curl -s -H "Authorization: Bearer \x3CTOKEN>" "http://220.0.0.5:8123/api/camera_proxy/camera.\x3Centity_id>" -o /home/clawd/.openclaw/workspace/\x3Cfilename>.jpgAfter fetching, verify it's a JPEG withfile, then display it using theMEDIA:\x3Cpath>directive. -
Garage Operations:
- The garage ESPHome logic is inverted:
HassTurnOff= OPEN,HassTurnOn= CLOSE. - Wait 30-50 seconds after a command before checking the position.
- True garage door position is determined by endstops, not just
current_position: 0or state. - Ignore
Garage 2 Motionas it produces false positives.
- The garage ESPHome logic is inverted:
-
Device Control:
- NEVER turn devices on or off without explicit user request.
- Do not use the
homeassistant__forcedtool.
-
Status Checks:
- Use
homeassistant__GetLiveContextto get a snapshot of all exposed entities. - If MCP tools timeout, fallback to the REST API:
curl -H "Authorization: Bearer \x3CTOKEN>" http://220.0.0.5:8123/api/states/\x3Centity_id>
- Use
Key Entities
Review /home/clawd/.openclaw/workspace/memory/home-assistant-entities.md for a full list of areas and key entities.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install homeassistant-mcp - 安装完成后,直接呼叫该 Skill 的名称或使用
/homeassistant-mcp触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Homeassistant Mcp 是什么?
Provides structured access to Home Assistant devices, sensors, and cameras via MCP, with specific handling for cameras, garage doors, and device control. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 99 次。
如何安装 Homeassistant Mcp?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install homeassistant-mcp」即可一键安装,无需额外配置。
Homeassistant Mcp 是免费的吗?
是的,Homeassistant Mcp 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Homeassistant Mcp 支持哪些平台?
Homeassistant Mcp 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Homeassistant Mcp?
由 dsnkzdeny(@dsnkzdeny)开发并维护,当前版本 v1.0.0。