/ Каталог / Песочница / home-assistant-vibecode-agent
● Сообщество Coolver ⚡ Сразу

home-assistant-vibecode-agent

автор Coolver · Coolver/home-assistant-vibecode-agent

Manage Home Assistant from your IDE — create automations, design dashboards, and deploy configs using natural language.

home-assistant-vibecode-agent is a Home Assistant add-on with MCP server integration that lets AI IDEs (Claude Code, Cursor, VS Code) autonomously manage smart home configurations. It can create automations, design Lovelace dashboards, install HACS components, manage add-ons, and validate configurations — all with git-based automatic backups and one-click rollback.

Зачем использовать

Ключевые функции

Живое демо

Как выглядит на практике

home-assistant-vibecode-agent-2.replay ▶ готово
0/0

Установка

Выберите клиент

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "home-assistant-vibecode-agent-2": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/Coolver/home-assistant-vibecode-agent"
      ]
    }
  }
}

Откройте Claude Desktop → Settings → Developer → Edit Config. Перезапустите после сохранения.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "home-assistant-vibecode-agent-2": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/Coolver/home-assistant-vibecode-agent"
      ]
    }
  }
}

Cursor использует ту же схему mcpServers, что и Claude Desktop. Конфиг проекта приоритетнее глобального.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "home-assistant-vibecode-agent-2": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/Coolver/home-assistant-vibecode-agent"
      ]
    }
  }
}

Щёлкните значок MCP Servers на боковой панели Cline, затем "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "home-assistant-vibecode-agent-2": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/Coolver/home-assistant-vibecode-agent"
      ]
    }
  }
}

Тот же формат, что и Claude Desktop. Перезапустите Windsurf для применения.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "home-assistant-vibecode-agent-2",
      "command": "TODO",
      "args": [
        "See README: https://github.com/Coolver/home-assistant-vibecode-agent"
      ]
    }
  ]
}

Continue использует массив объектов серверов, а не map.

~/.config/zed/settings.json
{
  "context_servers": {
    "home-assistant-vibecode-agent-2": {
      "command": {
        "path": "TODO",
        "args": [
          "See README: https://github.com/Coolver/home-assistant-vibecode-agent"
        ]
      }
    }
  }
}

Добавьте в context_servers. Zed перезагружается автоматически.

claude mcp add home-assistant-vibecode-agent-2 -- TODO 'See README: https://github.com/Coolver/home-assistant-vibecode-agent'

Однострочная команда. Проверить: claude mcp list. Удалить: claude mcp remove.

Сценарии использования

Реальные сценарии: home-assistant-vibecode-agent

How to create a Home Assistant automation with natural language

👤 Smart home enthusiasts who prefer describing what they want over writing YAML ⏱ ~10 min beginner

Когда использовать: You want to automate something in your home but don't want to write YAML manually.

Предварительные требования
  • Home Assistant with the add-on installed — Add repository https://github.com/coolver/home-assistant-vibecode-agent and install
  • MCP client configured — Configure Claude Code or Cursor to connect to the add-on's MCP endpoint
Поток
  1. Describe your automation
    Create an automation: when I arrive home (phone GPS enters home zone), turn on the living room lights, set them to 70% brightness, and start playing my Spotify playlist on the kitchen speaker.✓ Скопировано
    → Automation YAML generated and validated
  2. Deploy and test
    Deploy this automation and trigger a test run.✓ Скопировано
    → Automation deployed with backup created and test results

Итог: A working Home Assistant automation created from a plain English description.

Подводные камни
  • Entity names don't match what you described — Ask the agent to list available entities first so you can reference the correct names

Design a custom Lovelace dashboard with AI

👤 Home Assistant users who want better dashboards without learning Lovelace YAML ⏱ ~20 min intermediate

Когда использовать: You want a beautiful, functional dashboard but find the manual editor limiting.

Предварительные требования
  • Vibecode agent running and connected — Install add-on and configure MCP client
Поток
  1. Describe the dashboard
    Design a dashboard for my bedroom: show temperature/humidity from the sensor, light controls with brightness sliders, a media player card for the Sonos, and a graph of temperature over the last 24 hours.✓ Скопировано
    → Lovelace YAML generated with all requested cards
  2. Iterate on design
    Move the media player to the top and add a dark theme that matches my bedroom colors.✓ Скопировано
    → Updated dashboard with reordered cards and custom theme

Итог: A polished Lovelace dashboard deployed to Home Assistant.

Подводные камни
  • Custom cards require HACS installation — Ask the agent to install required HACS components before adding custom cards

Комбинации

Сочетайте с другими MCP — эффект x10

home-assistant-vibecode-agent-2 + filesystem

Export and backup Home Assistant configurations to local files

Export all my automations and dashboard configs to ~/ha-backup/ for version control.✓ Скопировано

Инструменты

Что предоставляет этот MCP

ИнструментВходные данныеКогда вызыватьСтоимость
create_automation description or YAML Create or modify Home Assistant automations 0
update_dashboard dashboard config Create or update Lovelace dashboards 0
list_entities domain?: str List available Home Assistant entities 0
call_service domain: str, service: str, data?: obj Call a Home Assistant service (turn on lights, play media, etc.) 0
install_hacs component: str Install a HACS community component 0

Стоимость и лимиты

Во что обходится

Квота API
N/A — communicates with local Home Assistant instance
Токенов на вызов
200–1000 tokens per operation
Деньги
Free — open source add-on
Совет
List entities first to reduce trial-and-error when creating automations.

Безопасность

Права, секреты, радиус поражения

Минимальные скоупы: Home Assistant long-lived access token
Хранение учётных данных: HA access token configured in the add-on settings
Исходящий трафик: Communicates with your local Home Assistant instance only. HACS downloads from GitHub.

Устранение неполадок

Частые ошибки и исправления

Add-on can't connect to Home Assistant

Verify the long-lived access token is correct and hasn't expired. Check the add-on logs for connection errors.

Проверить: Check Home Assistant → Settings → Add-ons for the agent's status
Automation validation fails

The generated YAML may reference entities that don't exist. List entities first to verify names.

Проверить: list_entities to see all available entity IDs
HACS component not installing

Ensure HACS itself is installed in Home Assistant first. Check that the component name is correct.

Проверить: Verify HACS is accessible from Home Assistant sidebar

Альтернативы

home-assistant-vibecode-agent в сравнении

АльтернативаКогда использоватьКомпромисс
Home Assistant REST API directlyYou want direct API access without the MCP layerMore control but no AI-assisted YAML generation or validation

Ещё

Ресурсы

📖 Читать официальный README на GitHub

🐙 Открытые задачи

🔍 Все 400+ MCP-серверов и Skills