AH

andreassolberg/homey-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

6 stars 4 forks 质量 54 趋势 6

Athom Homey MCP (英语)

概览

一个模式背景协议(MCP)服务器,用于与Homey Pro智能家庭系统相融合. 这个服务器通过MCP协议提供Homey设备,区域,变量和逻辑的访问. - : 检索并搜索所有 Homey 设备 - : 列出您家中的所有区域 - : 访问 Homey 变量 - : 检索关于逻辑流的信息 - : 温度传感器的专门功能 - : 自动数据缓存以更好的性能 复制示例文件并填入您的值 : - HomeY Token: 您的Homey API 令牌(从 Homey 开发工具中获取) - HomeY ID: 您的Homey ID( 在 Homey Pro 设置中找到) 与 Claude Desktop 或其他 MCP 兼容的客户端一起使用服务器: 在您的 Claude desktop config.json 中添加以下内容 : - 区(可选): 按区域名称过滤设备 根据名称或属性搜索设备 .

概述(AI 翻译)

一个模式背景协议(MCP)服务器,用于与Homey Pro智能家庭系统相融合. 这个服务器通过MCP协议提供Homey设备,区域,变量和逻辑的访问.

□ * * * * 特点

  • 装置:检索和搜查所有家用设备
  • 区域:列出家中的所有区域
  • ** 变量**: 访问家用变量
  • Logic:检索关于逻辑流动的信息
  • 温度:温度传感器的专门功能
  • ** 缓存**:自动数据缓存以提高性能

# # # 项目结构

# # 设置

  1. 克隆和安装依赖性

  2. 配置环境变量

复制示例文件并填入您的值 :

编辑.env并添加:

  • HOMEY_TOKEN: 您的 Homey API 令牌( 从 Homey 开发工具获取此值)
  • HOMEY_ID:你的Homey ID(在Homey Pro设置中发现)
  1. 测试设置

□🔧用.

作为 MCP 服务器

与 Claude Desktop 或其他 MCP 兼容的客户端一起使用服务器:

作为独立的脚本

在测试和开发方面:

使用 Claude 桌面

在您的 [[T3] 中添加以下内容:

# # # 可用的工具

get_homey_devices

所有设备或过滤器通过区域.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Homey MCP Server

A Model Context Protocol (MCP) server for integrating with Homey Pro smart home system. This server provides access to Homey devices, zones, variables, and logic through the MCP protocol.

🏠 Features

  • Devices: Retrieve and search all Homey devices
  • Zones: List all zones in your home
  • Variables: Access to Homey variables
  • Logic: Retrieve information about logic flows
  • Temperature: Specialized functions for temperature sensors
  • Cache: Automatic data caching for better performance

📁 Project Structure

homey-mcp/
├── src/                     # Main source code
│   ├── server.js           # MCP server main file
│   ├── homey.js           # Homey API client
│   ├── entities.js        # Data models (Device, Zone, Variable, etc.)
│   └── index.js           # Standalone test script
├── scripts/                # Test and verification scripts
│   ├── test-mcp.sh        # Main test script
│   ├── verify-mcp.sh      # Quick verification
│   ├── test-temperature.sh # Test temperature functions
│   ├── interactive-test.sh # Interactive testing
│   ├── status-check.sh    # Status check
│   └── final-verification.sh # Comprehensive test
├── config/                 # Configuration files
│   └── .env.example       # Example environment variables
├── cache/                  # Cache files (auto-generated)
│   ├── devices.json
│   ├── zones.json
│   ├── variables.json
│   └── logic.json
├── .env                    # Your environment variables
├── package.json
├── claude_desktop_config.json # Claude Desktop configuration
└── README.md

🚀 Setup

1. Clone and install dependencies

git clone 
cd homey-mcp
npm install

2. Configure environment variables

Copy the example file and fill in your values:

cp config/.env.example .env

Edit .env and add:

  • HOMEY_TOKEN: Your Homey API token (get this from Homey Developer Tools)
  • HOMEY_ID: Your Homey ID (found in Homey Pro settings)

3. Test the setup

# Test basic functionality
npm start

# Test MCP server
npm run mcp

🔧 Usage

As MCP Server

The server can be used with Claude Desktop or other MCP-compatible clients:

npm run mcp

As Standalone Script

For testing and development:

npm start

With Claude Desktop

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "homey": {
      "command": "node",
      "args": ["/path/to/homey-mcp/src/server.js"],
      "env": {
        "HOMEY_TOKEN": "your_token_here",
        "HOMEY_ID": "your_homey_id_here"
      }
    }
  }
}

🛠️ Available Tools

get_homey_devices

Get all devices or filter by zone.

Parameters:

  • zone (optional): Filter devices by zone name

search_homey_devices

Search for devices based on name or properties.

Parameters:

  • query: Search text

get_homey_zones

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "homey": { "command": "node", "args": ["/path/to/homey-mcp/src/server.js"], "env": { "HOMEY_TOKEN": "your_token_here", "HOMEY_ID": "your_homey_id_here" } } } }