
tevonsb/homeassistant-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Home Assistant用のMCPサーバー
概要
サーバーはMCPプロトコルを使用して、LLMアプリケーションとローカルのHome Assistantインスタンスへのアクセスを共有します。 Home Assistantインスタンスと言語学習モデル(LLM)をつなぐ強力な橋渡しであり、Model Context Protocol(MCP)を通じてスマートホームデバイスの自然言語制御と監視を可能にします。このサーバーは、デバイス制御からシステム管理まで、Home Assistantエコシステム全体を管理するための包括的なAPIを提供します。 - 🎮 : 自然言語で任意のHome Assistantデバイスを制御 - 🔄 : Server-Sent Events(SSE)による即時更新 - 🤖 : 自動化の作成、更新、管理 - 📊 : デバイス状態の追跡・クエリ - 🔐 : トークンベースの認証およびレート制限 - 📱 : HTTP対応クライアントで動作 サーバーには強力なServer-Sent Events(SSE)システムが含まれており、Home Assistantインスタンスからリアルタイムのアップデートを提供します。
概要(AI 翻訳)
サーバーはMCPプロトコルを使用して、LLMアプリケーションとローカルのHome Assistantインスタンスへのアクセスを共有します。
Home Assistantインスタンスと言語学習モデル(LLM)をつなぐ強力な橋渡しであり、Model Context Protocol(MCP)を通じてスマートホームデバイスの自然言語制御と監視を可能にします。このサーバーは、デバイス制御からシステム管理まで、Home Assistantエコシステム全体を管理するための包括的なAPIを提供します。
特徴
- 🎮 デバイス制御:自然言語を通じて任意のホームアシスタントデバイスを制御
- 🔄 リアルタイム更新:サーバー送信イベント(SSE)による即時更新
- 🤖 自動化管理:自動化の作成、更新、管理
- 📊 状態監視:デバイスの状態を追跡・照会
- 🔐 Secure:トークンベースの認証およびレート制限
- 📱 Mobile Ready:HTTP対応クライアントで動作
SSEとのリアルタイムアップデート
サーバーには強力なサーバー送信イベント(SSE)システムが含まれており、Home Assistantインスタンスからリアルタイムの更新を提供します。これにより、以下のことが可能になります:
- 🔄 任意のデバイスに対して即時の状態変更を取得
- 📡 自動化トリガーと実行の監視
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Model Context Protocol Server for Home Assistant
The server uses the MCP protocol to share access to a local Home Assistant instance with an LLM application.
A powerful bridge between your Home Assistant instance and Language Learning Models (LLMs), enabling natural language control and monitoring of your smart home devices through the Model Context Protocol (MCP). This server provides a comprehensive API for managing your entire Home Assistant ecosystem, from device control to system administration.
Features
- 🎮 Device Control: Control any Home Assistant device through natural language
- 🔄 Real-time Updates: Get instant updates through Server-Sent Events (SSE)
- 🤖 Automation Management: Create, update, and manage automations
- 📊 State Monitoring: Track and query device states
- 🔐 Secure: Token-based authentication and rate limiting
- 📱 Mobile Ready: Works with any HTTP-capable client
Real-time Updates with SSE
The server includes a powerful Server-Sent Events (SSE) system that provides real-time updates from your Home Assistant instance. This allows you to:
- 🔄 Get instant state changes for any device
- 📡 Monitor automation triggers and executions
- 🎯 Subscribe to specific domains or entities
- 📊 Track service calls and script executions
Quick SSE Example
const eventSource = new EventSource(
'http://localhost:3000/subscribe_events?token=YOUR_TOKEN&domain=light'
);
eventSource.onmessage = (event) => {
const data = JSON.parse(event.data);
console.log('Update received:', data);
};
See SSE_API.md for complete documentation of the SSE system.
Table of Contents
- Key Features
- Prerequisites
- Installation
- Configuration
- Development
- API Reference
- Natural Language Integration
- Troubleshooting
- Project Status
- Contributing
- Resources
- License
Key Features
Core Functionality 🎮
- Smart Device Control
- 💡 Lights: Brightness, color temperature, RGB color
インストール
npx jest --config=jest.config.cjs