The skill for control Home Assistant smart home devices and query states using MCP protocol.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install mcp-hass或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install mcp-hass⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/mcp-hass/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- 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"] }, "primaryEnv": "HASS_ACCESS_TOKEN", "install": [ { "id": "node", "kind": "node", "package": "mcporter", "bins": ["mcporter"], "label": "Install mcporter (node)", }, ], }, } ---
Control Home Assistant smart home and query states using MCP protocol.
Enable MCP server in Home Assistant:
# 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-parametersWhen 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:
mcporter config add home-assistant \
--transport http \
--url "${HASS_BASE_URL:-http://homeassistant.local:8123}/api/mcp" \
--header "Authorization=Bearer \${HASS_ACCESS_TOKEN}"
mcportermcporter does not exist, use npx -y mcporter instead.安装 🏠 Home Assistant via MCP protocol 后,可以对 AI 说这些话来触发它
Help me get started with 🏠 Home Assistant via MCP protocol
Explains what 🏠 Home Assistant via MCP protocol does, walks through the setup, and runs a quick demo based on your current project
Use 🏠 Home Assistant via MCP protocol to control Home Assistant smart home devices and query states using MC...
Invokes 🏠 Home Assistant via MCP protocol with the right parameters and returns the result directly in the conversation
What can I do with 🏠 Home Assistant via MCP protocol in my data & analytics workflow?
Lists the top use cases for 🏠 Home Assistant via MCP protocol, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/mcp-hass/ 目录(个人级,所有项目可用),或 .claude/skills/mcp-hass/(项目级)。重启 AI 客户端后,用 /mcp-hass 主动调用,或让 AI 根据上下文自动发现并使用。
🏠 Home Assistant via MCP protocol 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
🏠 Home Assistant via MCP protocol 可免费安装使用。请查阅仓库了解许可证信息。
The skill for control Home Assistant smart home devices and query states using MCP protocol.
🏠 Home Assistant via MCP protocol 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using 🏠 Home Assistant via MCP protocol
Identifies repetitive steps in your workflow and sets up 🏠 Home Assistant via MCP protocol to handle them automatically