Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

mcp-hass

bởi al-one

Clawdbot Tools
2.3kLượt tải do clawskills.sh công bố
7Sao
1Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

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

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

AGENT
  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

ĐẦU RA

Bedroom Light is on at 50% brightness

Yêu cầu

  • 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)

Cài đặt

clawhub install al-one/mcp-hass

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết