Enhance README.md for clarity and organization
- Forked from tevonsb/homeassistant-mcp and added relevant badges for license, Node.js, Docker Compose, and NPM versions. - Expanded the Table of Contents for easier navigation. - Clarified prerequisites by specifying required tools and their versions. - Improved installation instructions with formatted code blocks for better readability. - Enhanced troubleshooting section with clearer issue descriptions and solutions. - Updated command examples for consistency and added details for environment variable configuration.
This commit is contained in:
51
README.md
51
README.md
@@ -1,7 +1,31 @@
|
|||||||
# Model Context Protocol Server for Home Assistant
|
# Model Context Protocol Server for Home Assistant
|
||||||
|
|
||||||
|
*Forked from [tevonsb/homeassistant-mcp](https://github.com/tevonsb/homeassistant-mcp)*
|
||||||
|
|
||||||
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).
|
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).
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## Table of Contents
|
||||||
|
|
||||||
|
- [Key Features](#key-features)
|
||||||
|
- [Prerequisites](#prerequisites)
|
||||||
|
- [Installation](#installation)
|
||||||
|
- [Basic Setup](#basic-setup)
|
||||||
|
- [Docker Setup (Recommended)](#docker-setup-recommended)
|
||||||
|
- [Configuration](#configuration)
|
||||||
|
- [Development](#development)
|
||||||
|
- [Supported Commands](#supported-commands)
|
||||||
|
- [Natural Language Integration](#natural-language-integration)
|
||||||
|
- [Troubleshooting](#troubleshooting)
|
||||||
|
- [Project Status](#project-status)
|
||||||
|
- [Contributing](#contributing)
|
||||||
|
- [Resources](#resources)
|
||||||
|
- [License](#license)
|
||||||
|
|
||||||
## Key Features
|
## Key Features
|
||||||
|
|
||||||
- **Smart Device Control** 🎮
|
- **Smart Device Control** 🎮
|
||||||
@@ -21,9 +45,10 @@ A powerful bridge between your Home Assistant instance and Language Learning Mod
|
|||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- Node.js 20.10.0 or higher
|
- **Node.js** 20.10.0 or higher
|
||||||
- NPM package manager
|
- **NPM** package manager
|
||||||
- Running Home Assistant instance
|
- **Docker Compose** for containerization
|
||||||
|
- Running **Home Assistant** instance
|
||||||
- Home Assistant long-lived access token ([How to get token](https://community.home-assistant.io/t/how-to-get-long-lived-access-token/162159))
|
- Home Assistant long-lived access token ([How to get token](https://community.home-assistant.io/t/how-to-get-long-lived-access-token/162159))
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
@@ -44,20 +69,20 @@ npm run build
|
|||||||
|
|
||||||
### Docker Setup (Recommended)
|
### Docker Setup (Recommended)
|
||||||
|
|
||||||
1. Clone and prepare:
|
1. **Clone and prepare:**
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/jango-blockchained/homeassistant-mcp.git
|
git clone https://github.com/jango-blockchained/homeassistant-mcp.git
|
||||||
cd homeassistant-mcp
|
cd homeassistant-mcp
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Configure environment:
|
2. **Configure environment:**
|
||||||
```env
|
```env
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
HASS_HOST=your_home_assistant_url
|
HASS_HOST=your_home_assistant_url
|
||||||
HASS_TOKEN=your_home_assistant_token
|
HASS_TOKEN=your_home_assistant_token
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Launch with Docker Compose:
|
3. **Launch with Docker Compose:**
|
||||||
```bash
|
```bash
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
```
|
```
|
||||||
@@ -78,7 +103,7 @@ PORT=3000 # Optional, defaults to 3000
|
|||||||
npm run dev # Development mode
|
npm run dev # Development mode
|
||||||
npm run build # Build project
|
npm run build # Build project
|
||||||
npm run start # Production mode
|
npm run start # Production mode
|
||||||
npx jest --config=jest.config.js # Run tests
|
npx jest --config=jest.config.cjs # Run tests
|
||||||
```
|
```
|
||||||
|
|
||||||
## Supported Commands
|
## Supported Commands
|
||||||
@@ -220,14 +245,14 @@ npx jest --config=jest.config.js # Run tests
|
|||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
### Common Issues
|
### Common Issues
|
||||||
1. Node.js Version (`toSorted is not a function`)
|
1. **Node.js Version (`toSorted is not a function`)**
|
||||||
- Solution: Update to Node.js 20.10.0+
|
- **Solution:** Update to Node.js 20.10.0+
|
||||||
2. Connection Issues
|
2. **Connection Issues**
|
||||||
- Verify Home Assistant is running
|
- Verify Home Assistant is running
|
||||||
- Check HASS_HOST accessibility
|
- Check `HASS_HOST` accessibility
|
||||||
- Validate token permissions
|
- Validate token permissions
|
||||||
3. Entity Control Issues
|
3. **Entity Control Issues**
|
||||||
- Verify entity_id exists
|
- Verify `entity_id` exists
|
||||||
- Check entity domain matches command
|
- Check entity domain matches command
|
||||||
- Ensure parameter values are valid
|
- Ensure parameter values are valid
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user