跳到正文
TakoAPI
返回技能列表

mcp-hass

由 al-one 提供

Clawdbot Tools
2.3k下载量由 clawskills.sh 提供
7星标
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

The skill for control Home Assistant smart home devices and query states using MCP protocol.

描述

该技能的功能

Controls Home Assistant smart home devices and queries device states using the MCP protocol. Supports turning devices on and off, adjusting light brightness and color, and setting fan speed percentages.

Lets agents invoke Home Assistant actions directly without building custom API wrappers or managing authentication headers manually.

何时使用

  • Turning off all lights in a specific room at bedtime
  • Querying which devices are currently active across the home
  • Dimming living room lights to a set level for a movie
  • Adjusting bedroom fan speed based on preference
  • Checking and changing device states through a chat interface

示例工作流

输入

User asks: 'Turn on the bedroom light and set it to 50% brightness'

智能体
  1. 1

    Calls home-assistant.HassTurnOn with name 'Bedroom Light'

  2. 2

    Calls home-assistant.HassLightSet with name 'Bedroom Light' and brightness 50

  3. 3

    Calls home-assistant.GetLiveContext to confirm the updated state

输出

Bedroom Light is on at 50% brightness

前置要求

  • Home Assistant instance with MCP integration enabled (Settings > Devices & services > Add Integration > Model Context Protocol)
  • HASS_ACCESS_TOKEN: long-lived access token generated from your Home Assistant user profile
  • HASS_BASE_URL: base URL of your Home Assistant instance (e.g. http://homeassistant.local:8123)

安装

clawhub install al-one/mcp-hass

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接