The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs: Home Assistant moves to the plugin catalog
teknium10f7a95f16dd8
diff --git a/skills/autonomous-ai-agents/hermes-agent/references/configuration.md b/skills/autonomous-ai-agents/hermes-agent/references/configuration.mdindex 63733b4cfcc..e2a831a66e7 100644--- a/skills/autonomous-ai-agents/hermes-agent/references/configuration.md+++ b/skills/autonomous-ai-agents/hermes-agent/references/configuration.md@@ -54,7 +54,7 @@ Full enumeration: `TOOLSETS` dict in `toolsets.py` (`_HERMES_CORE_TOOLS` is the| `kanban` | Multi-agent work-queue tools (gated to workers) || `debugging` | Extra introspection tools (off by default) || `safe` | Minimal low-risk toolset for locked-down sessions |-| `spotify`, `homeassistant`, `discord`, `discord_admin`, `feishu_doc`, `feishu_drive`, `yuanbao` | Service integrations (gated on their credentials) |+| `spotify`, `discord`, `discord_admin`, `feishu_doc`, `feishu_drive`, `yuanbao` | Service integrations (gated on their credentials). `homeassistant` (`ha_*` tools) is not built in: it comes from the `homeassistant` catalog plugin (`hermes plugins install homeassistant`) |Tool changes take effect on `/reset` (new session) — never mid-conversation, to preserve prompt caching.diff --git a/website/docs/developer-guide/adding-platform-adapters.md b/website/docs/developer-guide/adding-platform-adapters.mdindex cfe6c706f7e..e859aee5cbd 100644--- a/website/docs/developer-guide/adding-platform-adapters.md+++ b/website/docs/developer-guide/adding-platform-adapters.md@@ -229,6 +229,47 @@ When you call `ctx.register_platform()`, the following integration points are ha| `hermes tools` / `hermes skills` | Plugin platforms in per-platform config || Token lock (multi-profile) | Use `acquire_scoped_lock()` in your `connect()` || Orphaned config warning | Descriptive log when plugin is missing |+| Service-event authorization | `trusted_inbound=True` skips user allowlists/pairing (see below) |+| Display defaults | `display_tier` picks the built-in tool-progress/streaming tier |+| Profile clone credential strip | `shared_env_prefixes` keeps tool-shared keys when the adapter is not in use |++### Service adapters: `trusted_inbound`, `display_tier`, `shared_env_prefixes`++Three optional `ctx.register_platform(...)` / `PlatformEntry` fields exist for adapters that bridge a+service rather than a chat network. The [Home Assistant plugin](https://github.com/NousResearch/hermes-homeassistant)+is the reference consumer.++| Field | Type / default | Effect |+|---|---|---|+| `trusted_inbound` | `bool = False` | Every inbound event comes from the service the adapter authenticated to with its own credential; there is no human sender. The gateway's user allowlists and DM pairing do not apply to this platform. Home Assistant's event bus is the consumer. **Never set it for a chat platform** — it would let anyone who can message the bot drive the agent. |+| `display_tier` | `str = ''` | One of `'high'`, `'medium'`, `'low'`, `'minimal'`: the built-in per-platform display defaults tier (tool progress, streaming, interim messages) used when the user has no `display.platforms.<name>` override. Empty keeps the generic plugin default. Home Assistant uses `'minimal'`. |+| `shared_env_prefixes` | `tuple[str, ...] = ()` | Env prefixes the platform shares with a non-channel capability, such as the same plugin's tools (Home Assistant: `('HASS_',)`). [Profile clones](../user-guide/profiles.md) strip keys under these prefixes only when the source profile actually runs the adapter, so a profile that only uses the tools keeps its credentials. |++```python+import dataclasses++def register(ctx):+ kwargs = dict(+ name="my_service",+ label="My Service",+ adapter_factory=MyServiceAdapter,+ check_fn=check_requirements,+ )+ # Feature-detect: older cores reject unknown register_platform kwargs.+ from gateway.platform_registry import PlatformEntry+ known = {f.name for f in dataclasses.fields(PlatformEntry)}+ for key, value in (+ ("trusted_inbound", True),+ ("display_tier", "minimal"),+ ("shared_env_prefixes", ("MY_SERVICE_",)),+ ):+ if key in known:+ kwargs[key] = value+ ctx.register_platform(**kwargs)+```++Feature-detect these fields with `dataclasses.fields(PlatformEntry)` as above so the plugin stays loadable on+older Hermes cores that predate them.## Standalone send-path extensionsdiff --git a/website/docs/developer-guide/architecture.md b/website/docs/developer-guide/architecture.mdindex 85fc06e3910..1ceb6e1a6a0 100644--- a/website/docs/developer-guide/architecture.md+++ b/website/docs/developer-guide/architecture.md@@ -122,8 +122,9 @@ hermes-agent/│├── plugins/platforms/ # Bundled platform plugins: telegram, discord, slack,│ # whatsapp, matrix, mattermost, email, sms, dingtalk,-│ # feishu, wecom, homeassistant, irc, line, teams,-│ # google_chat, buzz, ntfy, photon, raft, simplex+│ # feishu, wecom, irc, line, teams, google_chat,+│ # buzz, ntfy, photon, raft, simplex+│ # (Home Assistant: `homeassistant` catalog plugin)│├── acp_adapter/ # ACP server (VS Code / Zed / JetBrains)├── cron/ # Scheduler (jobs.py, scheduler.py)diff --git a/website/docs/developer-guide/cron-internals.md b/website/docs/developer-guide/cron-internals.mdindex 65954980117..1c26cba011c 100644--- a/website/docs/developer-guide/cron-internals.md+++ b/website/docs/developer-guide/cron-internals.md@@ -350,7 +350,7 @@ Most platforms also accept an optional thread/topic as a third segment: `platfor| Email | `email`, `email:<address>` | `email:[email protected]` || Weixin | `weixin`, `weixin:<wxid>` | `weixin:wxid_abc123` || Mattermost | `mattermost` or `mattermost:<channel_id>` | Bare name delivers to Mattermost home |-| Home Assistant | `homeassistant` or `homeassistant:<conversation>` | Bare name delivers to HA conversation |+| Home Assistant (plugin) | `homeassistant` or `homeassistant:<notify target>` | Bare name delivers to `HASS_HOME_CHANNEL`; needs the `homeassistant` catalog plugin || DingTalk | `dingtalk` or `dingtalk:<chat_id>` | Bare name delivers to DingTalk || WeCom | `wecom` or `wecom:<chat_id>` | Bare name delivers to WeCom || BlueBubbles | `bluebubbles` or `bluebubbles:<chat_guid>` | Bare name delivers to iMessage via BlueBubbles |diff --git a/website/docs/developer-guide/gateway-internals.md b/website/docs/developer-guide/gateway-internals.mdindex 5333ba3576e..6c7c4980ceb 100644--- a/website/docs/developer-guide/gateway-internals.md+++ b/website/docs/developer-guide/gateway-internals.md@@ -161,7 +161,6 @@ plugins/platforms/ # plugin-packaged adapters (one dir each)├── line/adapter.py # LINE Messaging API├── teams/adapter.py # Microsoft Teams├── irc/adapter.py # IRC (canonical scoped-lock example)-├── homeassistant/adapter.py # Home Assistant conversation integration└── … # google_chat, ntfy, photon, raft, simplex, …gateway/platforms/ # core base + legacy direct adaptersdiff --git a/website/docs/getting-started/quickstart.md b/website/docs/getting-started/quickstart.mdindex a015bc630d8..6e921e288b9 100644--- a/website/docs/getting-started/quickstart.md+++ b/website/docs/getting-started/quickstart.md@@ -264,7 +264,7 @@ Only after the base chat works. Pick what you need:hermes gateway setup # Interactive platform configuration```-Connect [Telegram](../user-guide/messaging/telegram.md), [Discord](../user-guide/messaging/discord.md), [Slack](../user-guide/messaging/slack.md), [WhatsApp](../user-guide/messaging/whatsapp.md), [Signal](../user-guide/messaging/signal.md), [Email](../user-guide/messaging/email.md), or [Home Assistant](../user-guide/messaging/homeassistant.md), or [Microsoft Teams](../user-guide/messaging/teams.md).+Connect [Telegram](../user-guide/messaging/telegram.md), [Discord](../user-guide/messaging/discord.md), [Slack](../user-guide/messaging/slack.md), [WhatsApp](../user-guide/messaging/whatsapp.md), [Signal](../user-guide/messaging/signal.md), [Email](../user-guide/messaging/email.md), [Home Assistant](../user-guide/messaging/homeassistant.md) (plugin), or [Microsoft Teams](../user-guide/messaging/teams.md).### Automation and toolsdiff --git a/website/docs/guides/cron-troubleshooting.md b/website/docs/guides/cron-troubleshooting.mdindex fbb96320da2..29090c4d4b0 100644--- a/website/docs/guides/cron-troubleshooting.md+++ b/website/docs/guides/cron-troubleshooting.md@@ -72,7 +72,7 @@ Delivery targets are case-sensitive and require the correct platform to be confi| `local` | Write access to `~/.hermes/cron/output/` || `origin` | Delivers to the chat where the job was created |-Other supported platforms include `mattermost`, `homeassistant`, `dingtalk`, `feishu`, `wecom`, `weixin`, `bluebubbles`, `qqbot`, and `webhook`. You can also target a specific chat with `platform:chat_id` syntax (e.g., `telegram:-1001234567890`).+Other supported platforms include `mattermost`, `homeassistant` (plugin), `dingtalk`, `feishu`, `wecom`, `weixin`, `bluebubbles`, `qqbot`, and `webhook`. You can also target a specific chat with `platform:chat_id` syntax (e.g., `telegram:-1001234567890`).If delivery fails, the job still runs — it just won't send anywhere. Check `hermes cron list` for updated `last_error` field (if available).diff --git a/website/docs/integrations/index.md b/website/docs/integrations/index.mdindex 01c8bdbfe3d..eef29e5be73 100644--- a/website/docs/integrations/index.md+++ b/website/docs/integrations/index.md@@ -90,7 +90,7 @@ Speech-to-text supports eight providers: local faster-whisper (free, runs on-devHermes runs as a gateway bot on 27+ messaging platforms, all configured through the same `gateway` subsystem:-- **[Telegram](../user-guide/messaging/telegram.md)**, **[Discord](../user-guide/messaging/discord.md)**, **[Slack](../user-guide/messaging/slack.md)**, **[WhatsApp](../user-guide/messaging/whatsapp.md)**, **[Signal](../user-guide/messaging/signal.md)**, **[Matrix](../user-guide/messaging/matrix.md)**, **[Mattermost](../user-guide/messaging/mattermost.md)**, **[Email](../user-guide/messaging/email.md)**, **[SMS](../user-guide/messaging/sms.md)**, **[DingTalk](../user-guide/messaging/dingtalk.md)**, **[Feishu/Lark](../user-guide/messaging/feishu.md)**, **[WeCom](../user-guide/messaging/wecom.md)**, **[WeCom Callback](../user-guide/messaging/wecom-callback.md)**, **[Weixin](../user-guide/messaging/weixin.md)**, **[BlueBubbles](../user-guide/messaging/bluebubbles.md)**, **[Buzz](../user-guide/messaging/buzz.md)**, **[QQ Bot](../user-guide/messaging/qqbot.md)**, **[Yuanbao](../user-guide/messaging/yuanbao.md)**, **[Home Assistant](../user-guide/messaging/homeassistant.md)**, **[Microsoft Teams](../user-guide/messaging/teams.md)**, **[Microsoft Teams Meetings](../user-guide/messaging/teams-meetings.md)**, **[Microsoft Graph Webhook](../user-guide/messaging/msgraph-webhook.md)**, **[Google Chat](../user-guide/messaging/google_chat.md)**, **[LINE](../user-guide/messaging/line.md)**, **[ntfy](../user-guide/messaging/ntfy.md)**, **[SimpleX](../user-guide/messaging/simplex.md)**, **[Open WebUI](../user-guide/messaging/open-webui.md)**, **[Webhooks](../user-guide/messaging/webhooks.md)**+- **[Telegram](../user-guide/messaging/telegram.md)**, **[Discord](../user-guide/messaging/discord.md)**, **[Slack](../user-guide/messaging/slack.md)**, **[WhatsApp](../user-guide/messaging/whatsapp.md)**, **[Signal](../user-guide/messaging/signal.md)**, **[Matrix](../user-guide/messaging/matrix.md)**, **[Mattermost](../user-guide/messaging/mattermost.md)**, **[Email](../user-guide/messaging/email.md)**, **[SMS](../user-guide/messaging/sms.md)**, **[DingTalk](../user-guide/messaging/dingtalk.md)**, **[Feishu/Lark](../user-guide/messaging/feishu.md)**, **[WeCom](../user-guide/messaging/wecom.md)**, **[WeCom Callback](../user-guide/messaging/wecom-callback.md)**, **[Weixin](../user-guide/messaging/weixin.md)**, **[BlueBubbles](../user-guide/messaging/bluebubbles.md)**, **[Buzz](../user-guide/messaging/buzz.md)**, **[QQ Bot](../user-guide/messaging/qqbot.md)**, **[Yuanbao](../user-guide/messaging/yuanbao.md)**, **[Home Assistant](../user-guide/messaging/homeassistant.md)** (plugin), **[Microsoft Teams](../user-guide/messaging/teams.md)**, **[Microsoft Teams Meetings](../user-guide/messaging/teams-meetings.md)**, **[Microsoft Graph Webhook](../user-guide/messaging/msgraph-webhook.md)**, **[Google Chat](../user-guide/messaging/google_chat.md)**, **[LINE](../user-guide/messaging/line.md)**, **[ntfy](../user-guide/messaging/ntfy.md)**, **[SimpleX](../user-guide/messaging/simplex.md)**, **[Open WebUI](../user-guide/messaging/open-webui.md)**, **[Webhooks](../user-guide/messaging/webhooks.md)**See the [Messaging Gateway overview](../user-guide/messaging/index.md) for the platform comparison table and setup guide.@@ -114,7 +114,7 @@ Each platform's setup page walks through what to do once you're there.## Home Automation-- **[Home Assistant](../user-guide/messaging/homeassistant.md)** — Control smart home devices via four dedicated tools (`ha_list_entities`, `ha_get_state`, `ha_list_services`, `ha_call_service`). The Home Assistant toolset activates automatically when `HASS_TOKEN` is configured.+- **[Home Assistant](../user-guide/messaging/homeassistant.md)** — Control smart home devices via four dedicated tools (`ha_list_entities`, `ha_get_state`, `ha_list_services`, `ha_call_service`) and react to real-time state changes through the gateway. Ships as the `homeassistant` catalog plugin (`hermes plugins install homeassistant`); its toolset activates automatically when `HASS_TOKEN` is configured.## Pluginsdiff --git a/website/docs/reference/environment-variables.md b/website/docs/reference/environment-variables.mdindex 59c7fd61ebe..caf1cd5e372 100644--- a/website/docs/reference/environment-variables.md+++ b/website/docs/reference/environment-variables.md@@ -541,8 +541,9 @@ These are set automatically by the Docker terminal backend when `proxy.enabled:| `MATRIX_MAX_MEDIA_BYTES` | Maximum Matrix media upload/download size in bytes (default: `104857600`) || `MATRIX_RECOVERY_KEY` | Recovery key for cross-signing verification after device key rotation. Recommended for E2EE setups with cross-signing enabled. || `MATRIX_RECOVERY_KEY_OUTPUT_FILE` | Optional one-time path for a generated Matrix recovery key. Created with mode `0600` and never overwritten. |-| `HASS_TOKEN` | Home Assistant Long-Lived Access Token (enables HA platform + tools) |-| `HASS_URL` | Home Assistant URL (default: `http://homeassistant.local:8123`) |+| `HASS_TOKEN` | Home Assistant plugin: Long-Lived Access Token (enables the HA platform + tools; requires the `homeassistant` catalog plugin, see [Home Assistant](../user-guide/messaging/homeassistant.md)) |+| `HASS_URL` | Home Assistant plugin: Home Assistant URL (default: `http://homeassistant.local:8123`) |+| `HASS_HOME_CHANNEL` | Home Assistant plugin: default notify target for a bare `deliver: homeassistant` (cron, webhooks) || `WEBHOOK_ENABLED` | Enable the webhook platform adapter (`true`/`false`) || `WEBHOOK_PORT` | HTTP server port for receiving webhooks (default: `8644`) || `WEBHOOK_SECRET` | Global HMAC secret for webhook signature validation (used as fallback when routes don't specify their own) |diff --git a/website/docs/reference/tools-reference.md b/website/docs/reference/tools-reference.mdindex 04d0cf3c2d8..e955b9d2c4d 100644--- a/website/docs/reference/tools-reference.md+++ b/website/docs/reference/tools-reference.md@@ -8,7 +8,7 @@ description: "Authoritative reference for Hermes built-in tools, grouped by toolThis page documents Hermes' built-in tools, grouped by toolset. Availability varies by platform, credentials, and enabled toolsets.-**Quick counts (current registry):** ~100 tools — 10 browser tools (core) + 2 CDP-gated browser tools + 5 browser-vault tools + `browser_exec`, 4 file tools, 4 Home Assistant tools, 2 terminal tools (`terminal`, `process_manage`), 11 desktop-GUI tools (`read_terminal`, `close_terminal`, `desktop_preview`, `drive_preview`, `annotate_preview`, `read_window_below`, `focus_pane`, `react_to_message`, `gui_tour`, `show_tip`, `apply_layout` — desktop-app sessions only), 2 web tools, 5 Feishu tools, 7 Spotify tools (registered by the bundled `spotify` plugin), 5 Yuanbao tools, 14 kanban tools (registered when the kanban dispatcher spawns the agent), 1 project tool (`desktop_project`; desktop/GUI sessions), 2 Discord tools, 3 video tools (`video_generate`, `xai_video_edit`, `xai_video_extend`), and a handful of standalone tools (`memory`, `clarify`, `delegate_task`, `execute_code`, `cronjob_manage`, `session_search`, `skill_view`/`skill_manage`/`skills_list`, `text_to_speech`, `image_generate`, `vision_analyze`, `video_analyze`, `todo_list`, `computer_use`, `x_search`).+**Quick counts (current registry):** ~100 tools — 10 browser tools (core) + 2 CDP-gated browser tools + 5 browser-vault tools + `browser_exec`, 4 file tools, 2 terminal tools (`terminal`, `process_manage`), 11 desktop-GUI tools (`read_terminal`, `close_terminal`, `desktop_preview`, `drive_preview`, `annotate_preview`, `read_window_below`, `focus_pane`, `react_to_message`, `gui_tour`, `show_tip`, `apply_layout` — desktop-app sessions only), 2 web tools, 5 Feishu tools, 7 Spotify tools (registered by the bundled `spotify` plugin), 5 Yuanbao tools, 14 kanban tools (registered when the kanban dispatcher spawns the agent), 1 project tool (`desktop_project`; desktop/GUI sessions), 2 Discord tools, 3 video tools (`video_generate`, `xai_video_edit`, `xai_video_extend`), and a handful of standalone tools (`memory`, `clarify`, `delegate_task`, `execute_code`, `cronjob_manage`, `session_search`, `skill_view`/`skill_manage`/`skills_list`, `text_to_speech`, `image_generate`, `vision_analyze`, `video_analyze`, `todo_list`, `computer_use`, `x_search`).:::tip MCP ToolsIn addition to built-in tools, Hermes can load tools dynamically from MCP servers. MCP tools appear with the prefix `mcp__<server>__` (e.g., `mcp__github__create_issue` for the `github` MCP server). See [MCP Integration](../user-guide/features/mcp.md) for configuration.@@ -119,15 +119,6 @@ Scoped to the Feishu document-comment handler. Drives comment read/write operatiFor local files, a full unredacted read (including all pages of the same file version) or a successful `write_file` supplies a whole-file baseline. Reading a smaller region afterward does not discard that baseline while the bytes remain unchanged. A changed file, an unread file, or a view with hidden/redacted or clamped content still needs a full current read before replacement; `patch` remains available for targeted edits. Writes made through terminal commands or `execute_code` do not establish a `write_file` baseline.-## `homeassistant` toolset--| Tool | Description | Requires environment |-|------|-------------|----------------------|-| `ha_call_service` | Call a Home Assistant service to control a device. Use ha_list_services to discover available services and their parameters for each domain. | — |-| `ha_get_state` | Get the detailed state of a single Home Assistant entity, including all attributes (brightness, color, temperature setpoint, sensor readings, etc.). | — |-| `ha_list_entities` | List Home Assistant entities. Optionally filter by domain (light, switch, climate, sensor, binary_sensor, cover, fan, etc.) or by area name (living room, kitchen, bedroom, etc.). | — |-| `ha_list_services` | List available Home Assistant services (actions) for device control. Shows what actions can be performed on each device type and what parameters they accept. Use this to discover how to control devices found via ha_list_entities. | — |-## `computer_use` toolset| Tool | Description | Requires environment |@@ -137,6 +128,8 @@ For local files, a full unredacted read (including all pages of the same file ve:::note**Honcho tools** (`honcho_profile`, `honcho_search`, `honcho_context`, `honcho_reasoning`, `honcho_conclude`) are no longer built-in. They are available via the Honcho memory provider plugin from the plugin catalog (`hermes plugins install honcho`). See [Memory Providers](../user-guide/features/memory-providers.md) for installation and usage.++**Home Assistant tools** (`ha_list_entities`, `ha_get_state`, `ha_list_services`, `ha_call_service`, toolset `homeassistant`) are no longer built-in. They come from the `homeassistant` catalog plugin (`hermes plugins install homeassistant`). See [Home Assistant](../user-guide/messaging/homeassistant.md).:::## `image_gen` toolsetdiff --git a/website/docs/reference/toolsets-reference.md b/website/docs/reference/toolsets-reference.mdindex 889b7a4d7dd..13a9ab6b2d8 100644--- a/website/docs/reference/toolsets-reference.md+++ b/website/docs/reference/toolsets-reference.md@@ -45,7 +45,7 @@ Or in-session:```/tools list/tools disable browser-/tools enable homeassistant+/tools enable spotify```## Core Toolsets@@ -65,7 +65,6 @@ Or in-session:| `feishu_doc` | `feishu_doc_read` | Read Feishu/Lark document content. Used by the Feishu document-comment intelligent-reply handler. || `feishu_drive` | `feishu_drive_add_comment`, `feishu_drive_list_comments`, `feishu_drive_list_comment_replies`, `feishu_drive_reply_comment` | Feishu/Lark drive comment operations. Scoped to the comment agent; not exposed on `hermes-cli` or other messaging toolsets. || `file` | `patch`, `read_file`, `search_files`, `write_file` | File reading, writing, searching, and editing. |-| `homeassistant` | `ha_call_service`, `ha_get_state`, `ha_list_entities`, `ha_list_services` | Smart home control via Home Assistant. Only available when `HASS_TOKEN` is set. || `computer_use` | `computer_use` | Background desktop control via cua-driver — does not steal cursor/focus. Works with any tool-capable model. macOS, Windows, and Linux; requires `cua-driver` on `$PATH`. || `context_engine` | (varies) | Runtime tools exposed by the active context-engine plugin (empty until a plugin populates it). || `image_gen` | `image_generate` | Text-to-image generation via FAL.ai (with opt-in OpenAI / xAI backends). |@@ -95,8 +94,8 @@ Platform toolsets define the complete tool configuration for a deployment target| Toolset | Differences from `hermes-cli` ||---------|-------------------------------|-| `hermes-cli` | Full toolset — the default for interactive CLI sessions. Includes file, terminal, web, browser, memory, skills, vision, image_gen, todo, tts, delegation, code_execution, cronjob, session_search, clarify, computer_use, Home Assistant, and the kanban tools (all check_fn-gated at runtime). |-| `hermes-acp` | Drops `clarify`, `cronjob`, `image_generate`, `text_to_speech`, `computer_use`, all four Home Assistant tools, and the kanban tools. Focused on coding tasks in IDE context. |+| `hermes-cli` | Full toolset — the default for interactive CLI sessions. Includes file, terminal, web, browser, memory, skills, vision, image_gen, todo, tts, delegation, code_execution, cronjob, session_search, clarify, computer_use, and the kanban tools (all check_fn-gated at runtime). |+| `hermes-acp` | Drops `clarify`, `cronjob`, `image_generate`, `text_to_speech`, `computer_use`, and the kanban tools. Focused on coding tasks in IDE context. || `hermes-api-server` | Drops `clarify`, `text_to_speech`, `computer_use`, and the kanban tools. Keeps everything else — suitable for programmatic access where user interaction isn't possible. || `hermes-cron` | Same as `hermes-cli`. || `hermes-telegram` | Same as `hermes-cli`. |@@ -116,10 +115,11 @@ Platform toolsets define the complete tool configuration for a deployment target| `hermes-wecom-callback` | Same as `hermes-cli`. || `hermes-weixin` | Same as `hermes-cli`. || `hermes-yuanbao` | Adds the five `yb_*` tools (DM/group/sticker) on top of `hermes-cli`. |-| `hermes-homeassistant` | Same as `hermes-cli` (the Home Assistant tools are already present by default and activate when `HASS_TOKEN` is set). || `hermes-webhook` | Restricted safe subset — only `web_search`, `web_extract`, `vision_analyze`, and `clarify`. Webhook-triggered runs get no terminal, file, or browser access. || `hermes-gateway` | Internal gateway orchestrator toolset — union of every `hermes-<platform>` toolset; used when the gateway needs to accept any message source. |+Platforms provided by plugins get an implicit `hermes-<platform>` bundle that is not part of `hermes-gateway`. For example, `hermes-homeassistant` still resolves once the `homeassistant` catalog plugin is installed, but it is no longer a built-in toolset.+## Dynamic Toolsets### MCP server toolsets@@ -134,7 +134,7 @@ mcp_servers:args: ["-y", "@modelcontextprotocol/server-github"]```-This creates a `mcp-github` toolset you can reference in `--toolsets` or platform configs. The bare server name (`github`) works as an alias. If a server is named like a built-in toolset (`homeassistant`, `browser`), that name resolves to the built-in tools **plus** the server's `mcp__<server>__*` tools; neither side shadows the other.+This creates a `mcp-github` toolset you can reference in `--toolsets` or platform configs. The bare server name (`github`) works as an alias. If a server is named like a built-in toolset (`browser`, `web`), that name resolves to the built-in tools **plus** the server's `mcp__<server>__*` tools; neither side shadows the other.### Plugin toolsets@@ -162,7 +162,7 @@ custom_toolsets:A handful of tools have an additional availability check on top of toolset membership and are **not** turned on by `all`/`*` alone:-- **Capability-gated** tools (browser, `computer_use`, `code_execution`, Feishu, Home Assistant, cronjob) appear only when their backend/credential prerequisite is configured.+- **Capability-gated** tools (browser, `computer_use`, `code_execution`, Feishu, cronjob) appear only when their backend/credential prerequisite is configured.- **Workflow-gated** tools — the `kanban` toolset — are deliberately opt-in. `all`/`*` does **not** enable kanban; you must list `kanban` explicitly (or be a dispatcher-spawned worker with `HERMES_KANBAN_TASK` set). Kanban tools mutate shared board state, so they stay off by default even under `all`.## Relationship to `hermes tools`diff --git a/website/docs/user-guide/configuration.md b/website/docs/user-guide/configuration.mdindex 4af7149a3f0..c0a238e5731 100644--- a/website/docs/user-guide/configuration.md+++ b/website/docs/user-guide/configuration.md@@ -2387,7 +2387,7 @@ display:From the CLI, use the canonical path — `hermes config set display.platforms.telegram.streaming false`. The shorthand `hermes config set platforms.telegram.streaming false` is accepted too: because per-platform *display* settings (`streaming`, `show_reasoning`, `tool_progress`, …) are only ever read from `display.platforms`, `config set`/`get`/`unset` redirect that shorthand to the canonical key and print a note. Connection keys under the top-level `platforms.<name>` block (`token`, `enabled`, `reply_to_mode`, `extra`) are not redirected. Writing them under the nested prefix (`hermes config set gateway.platforms.telegram.enabled true`) is redirected to the top-level `platforms.telegram.enabled` with a note: the gateway reads both blocks, but the top-level one wins on shared keys, so a nested write would be silently shadowed by an existing top-level value.-Platforms without an override fall back to the global `tool_progress` value. Valid platform keys: `telegram`, `discord`, `slack`, `signal`, `whatsapp`, `matrix`, `mattermost`, `email`, `sms`, `homeassistant`, `dingtalk`, `feishu`, `wecom`, `weixin`, `bluebubbles`, `qqbot`. The legacy `display.tool_progress_overrides` key still loads for backward compatibility but is deprecated and migrated into `display.platforms` on first load.+Platforms without an override fall back to the global `tool_progress` value. Valid platform keys: `telegram`, `discord`, `slack`, `signal`, `whatsapp`, `matrix`, `mattermost`, `email`, `sms`, `dingtalk`, `feishu`, `wecom`, `weixin`, `bluebubbles`, `qqbot`, plus the name of any plugin platform (e.g. `homeassistant` from the Home Assistant plugin). The legacy `display.tool_progress_overrides` key still loads for backward compatibility but is deprecated and migrated into `display.platforms` on first load.Signal is listed as a valid platform key because the setting can be saved per platform, but the current Signal adapter cannot edit sent messages and does not render tool-progress bubbles. Keep Signal `tool_progress` set to `off`; use the CLI or an editing-capable messaging platform if you need to watch each tool call live.diff --git a/website/docs/user-guide/features/cron.md b/website/docs/user-guide/features/cron.mdindex bdd21427247..2771e48cb87 100644--- a/website/docs/user-guide/features/cron.md+++ b/website/docs/user-guide/features/cron.md@@ -561,7 +561,7 @@ When scheduling jobs, you specify where the output goes:| `"mattermost"` | Mattermost home channel | || `"email"` | Email | || `"sms"` | SMS via Twilio | |-| `"homeassistant"` | Home Assistant | |+| `"homeassistant"` | Home Assistant (plugin) | Uses `HASS_HOME_CHANNEL`; requires the [`homeassistant` plugin](../messaging/homeassistant.md) || `"dingtalk"` | DingTalk | || `"feishu"` | Feishu/Lark | || `"wecom"` | WeCom | |diff --git a/website/docs/user-guide/features/mcp.md b/website/docs/user-guide/features/mcp.mdindex 61d76c1c027..d29bca692f5 100644--- a/website/docs/user-guide/features/mcp.md+++ b/website/docs/user-guide/features/mcp.md@@ -775,7 +775,7 @@ If you change MCP config, use:/reload-mcp```-This reloads MCP servers from config and refreshes the available tool list. It is also the explicit way to re-probe availability-gated tools (Docker, `HASS_TOKEN`, OAuth…): a session's tool set is otherwise frozen, so a credential or daemon that appears mid-session is only picked up on `/reload-mcp`, `/new`, or context compaction. For runtime tool changes pushed by the server itself, see [Dynamic Tool Discovery](#dynamic-tool-discovery) above.+This reloads MCP servers from config and refreshes the available tool list. It is also the explicit way to re-probe availability-gated tools (Docker, plugin credentials such as `HASS_TOKEN`, OAuth…): a session's tool set is otherwise frozen, so a credential or daemon that appears mid-session is only picked up on `/reload-mcp`, `/new`, or context compaction. For runtime tool changes pushed by the server itself, see [Dynamic Tool Discovery](#dynamic-tool-discovery) above.A running messaging gateway (`hermes gateway run`) also watches `config.yaml` on its own: within about a minute of you removing an `mcp_servers` entry or setting `enabled: false`, that server's connection is torn down; a newly added entry is connected. A server whose first connect failed (an unreachable host, or an OAuth server on a headless box that had no token yet) is retried automatically on its connect cooldown schedule (30 s, doubling up to 10 min) once you fix the cause. No restart or `/reload-mcp` needed for the edit to take effect.diff --git a/website/docs/user-guide/features/tools.md b/website/docs/user-guide/features/tools.mdindex ad23c360617..67553fe7e1f 100644--- a/website/docs/user-guide/features/tools.md+++ b/website/docs/user-guide/features/tools.md@@ -14,7 +14,7 @@ Tools are functions that extend the agent's capabilities. They're organized into## Available Tools-Hermes ships with a broad built-in tool registry covering web search, browser automation, terminal execution, file editing, memory, delegation, scheduled tasks, Home Assistant, and more.+Hermes ships with a broad built-in tool registry covering web search, browser automation, terminal execution, file editing, memory, delegation, scheduled tasks, and more. Plugins add more tools — for example Home Assistant device control comes from the `homeassistant` catalog plugin.:::note**Honcho cross-session memory** is available as a memory provider plugin from the plugin catalog (`hermes plugins install honcho`), not as a built-in toolset. See [Memory Providers](./memory-providers.md#honcho).@@ -32,7 +32,7 @@ High-level categories:| **Agent orchestration** | `todo`, `clarify`, `execute_code`, `delegate_task` | Planning, clarification, code execution, and subagent delegation. || **Memory & recall** | `memory`, `session_search` | Persistent memory and session search. || **Automation** | `cronjob` | Scheduled tasks with create/list/update/pause/resume/run/remove actions. Outbound delivery is handled by cron's own delivery, the `hermes send` CLI, and the gateway notifier — not by an agent-callable tool. |-| **Integrations** | `ha_*`, MCP server tools | Home Assistant, MCP, and other integrations. |+| **Integrations** | MCP server tools, plugin tools | MCP and plugin integrations, e.g. Home Assistant (`ha_*`, from the [`homeassistant` catalog plugin](../messaging/homeassistant.md)). |For the authoritative code-derived registry, see [Built-in Tools Reference](../../reference/tools-reference.md) and [Toolsets Reference](../../reference/toolsets-reference.md).@@ -53,7 +53,7 @@ hermes toolshermes tools```-Common toolsets include `web`, `search`, `terminal`, `file`, `browser`, `vision`, `image_gen`, `skills`, `tts`, `todo`, `memory`, `session_search`, `cronjob`, `code_execution`, `delegation`, `clarify`, `homeassistant`, `messaging`, `spotify`, `discord`, `discord_admin`, `debugging`, and `safe`.+Common toolsets include `web`, `search`, `terminal`, `file`, `browser`, `vision`, `image_gen`, `skills`, `tts`, `todo`, `memory`, `session_search`, `cronjob`, `code_execution`, `delegation`, `clarify`, `messaging`, `spotify`, `discord`, `discord_admin`, `debugging`, and `safe`.See [Toolsets Reference](../../reference/toolsets-reference.md) for the full set, including platform presets such as `hermes-cli`, `hermes-telegram`, and dynamic MCP toolsets like `mcp-<server>`.diff --git a/website/docs/user-guide/messaging/homeassistant.md b/website/docs/user-guide/messaging/homeassistant.mdindex 2079654305c..8cb03c27401 100644--- a/website/docs/user-guide/messaging/homeassistant.md+++ b/website/docs/user-guide/messaging/homeassistant.md@@ -1,16 +1,36 @@---title: Home Assistant-description: Control your smart home with Hermes Agent via Home Assistant integration.+description: Control your smart home with Hermes Agent via the Home Assistant plugin from the plugin catalog.sidebar_label: Home Assistantsidebar_position: 5---# Home Assistant Integration-Hermes Agent integrates with [Home Assistant](https://www.home-assistant.io/) in two ways:+Hermes Agent integrates with [Home Assistant](https://www.home-assistant.io/) through the official **`homeassistant` plugin** from the [plugin catalog](../features/plugins.md). The plugin is maintained by Nous Research in [NousResearch/hermes-homeassistant](https://github.com/NousResearch/hermes-homeassistant) and is not part of Hermes core. It provides two things:1. **Gateway platform** — subscribes to real-time state changes via WebSocket and responds to events-2. **Smart home tools** — four LLM-callable tools for querying and controlling devices via the REST API+2. **Smart home tools** — four LLM-callable tools (the `homeassistant` toolset) for querying and controlling devices via the REST API++## Install++```bash+hermes plugins install homeassistant+```++Plugins are installed per profile. To use Home Assistant in another profile, install it there too:++```bash+hermes -p <profile> plugins install homeassistant+```++The plugin declares its own Python dependency (`aiohttp`), so there is no pip extra to install. The old `hermes-agent[homeassistant]` extra has been removed.++:::info Upgrading from a release that bundled Home Assistant+Nothing to do. Every profile that was already using Home Assistant — `HASS_TOKEN` in its `.env`, `platforms.homeassistant` enabled or configured in `config.yaml`, or the `homeassistant` toolset listed in `platform_toolsets` — gets the plugin installed automatically from the catalog by `hermes update` (for all profiles sharing the install). If that step could not run, Hermes installs it the first time the profile starts (agent or gateway start; this honours `security.allow_lazy_installs`). The outcome is reported in the terminal, the Desktop app and chat.++Your configuration carries over unchanged: the same `HASS_TOKEN` / `HASS_URL` variables, the same `homeassistant` platform name and `platforms.homeassistant` keys, the same `homeassistant` toolset and tool names, and the same cron `deliver: homeassistant:<notify target>` syntax.+:::## Setup@@ -32,10 +52,13 @@ HASS_TOKEN=your-long-lived-access-token# Optional: HA URL (default: http://homeassistant.local:8123)HASS_URL=http://192.168.1.100:8123++# Optional: default notify target for a bare `deliver: homeassistant`+HASS_HOME_CHANNEL=mobile_app_my_phone```:::info-The `homeassistant` toolset is automatically enabled when `HASS_TOKEN` is set. Both the gateway platform and the device control tools activate from this single token.+With the plugin installed, the `homeassistant` toolset is enabled automatically when `HASS_TOKEN` is set. Both the gateway platform and the device control tools activate from this single token.:::### 3. Start the Gateway@@ -48,7 +71,7 @@ Home Assistant will appear as a connected platform alongside any other messaging## Available Tools-Hermes Agent registers four tools for smart home control:+The plugin registers four tools for smart home control in the `homeassistant` toolset:### `ha_list_entities`@@ -137,6 +160,7 @@ platforms:homeassistant:enabled: trueextra:+ url: http://192.168.1.100:8123 # optional; same as HASS_URLwatch_domains:- climate- binary_sensor@@ -153,6 +177,7 @@ platforms:| Setting | Default | Description ||---------|---------|-------------|+| `url` | `HASS_URL`, else `http://homeassistant.local:8123` | Home Assistant base URL || `watch_domains` | *(none)* | Only watch these entity domains (e.g., `climate`, `light`, `binary_sensor`) || `watch_entities` | *(none)* | Only watch these specific entity IDs || `watch_all` | `false` | Set to `true` to receive **all** state changes (not recommended for most setups) |@@ -180,12 +205,25 @@ State changes are formatted as human-readable messages based on domain:Outbound messages from the agent are delivered as **Home Assistant persistent notifications** (via `persistent_notification.create`). These appear in the HA notification panel with the title "Hermes Agent".+The platform uses the `minimal` display defaults (no tool-progress or streaming chatter in notifications). Override them under `display.platforms.homeassistant` in `config.yaml` if you want more.++### Cron and Webhook Delivery++Scheduled jobs and webhook routes can deliver to Home Assistant:++```yaml+deliver: homeassistant:mobile_app_my_phone # explicit notify target+deliver: homeassistant # uses HASS_HOME_CHANNEL+```++The bare `homeassistant` form needs `HASS_HOME_CHANNEL` set to a default notify target. See [Scheduled Tasks](../features/cron.md) and [Webhooks](webhooks.md).+### Connection Management- **WebSocket** with 30-second heartbeat for real-time events- **Automatic reconnection** with backoff: 5s → 10s → 30s → 60s- **REST API** for outbound notifications (separate session to avoid WebSocket conflicts)-- **Authorization** — HA events are always authorized (no user allowlist needed, since the `HASS_TOKEN` authenticates the connection)+- **Authorization** — HA events are always authorized (no user allowlist or pairing needed: `HASS_TOKEN` authenticates the connection and there is no human sender)## Security@@ -253,13 +291,19 @@ Agent automatically:## Troubleshooting+**Platform or tools missing.**+Check that the plugin is installed and enabled in the active profile with+`hermes plugins list`. If it is missing, run `hermes plugins install homeassistant`+(or `hermes -p <profile> plugins install homeassistant`) and restart the gateway.+With `security.allow_lazy_installs` turned off, the automatic first-start install+is skipped and you must install the plugin yourself.+**Environment variables not picked up.**The adapter reads credentials from `~/.hermes/.env` (auto-merged at startup) orfrom `config.yaml`. Double-check the file lives under the active Hermes profilehome and that there's no stray quoting around the URL/token. Restart the gatewayafter editing — env changes are only applied on process start.-**REST auth failing (`401 Unauthorized`).**The token must be a *Long-Lived Access Token* created from your HA user profilepage (**Profile → Security → Long-lived access tokens**). Short-lived UIdiff --git a/website/docs/user-guide/messaging/index.md b/website/docs/user-guide/messaging/index.mdindex dd1126bb2b3..117c3ffae0a 100644--- a/website/docs/user-guide/messaging/index.md+++ b/website/docs/user-guide/messaging/index.md@@ -41,7 +41,7 @@ connected. An enabled platform can correctly show **Messaging gateway stopped**.| Signal | — | ✅ | ✅ | — | — | ✅ | — || SMS | — | — | — | — | — | — | — || Email | — | ✅ | ✅ | ✅ | — | — | — |-| Home Assistant | — | — | — | — | — | — | — |+| Home Assistant (plugin) | — | — | — | — | — | — | — || Mattermost | ✅ | ✅ | ✅ | ✅ | — | ✅ | ✅ || Matrix | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ || DingTalk | — | ✅ | ✅ | — | ✅ | — | ✅ |@@ -733,7 +733,7 @@ Each platform has its own toolset:| Signal | `hermes-signal` | Full tools including terminal || SMS | `hermes-sms` | Full tools including terminal || Email | `hermes-email` | Full tools including terminal |-| Home Assistant | `hermes-homeassistant` | Full tools + HA device control (ha_list_entities, ha_get_state, ha_call_service, ha_list_services) |+| Home Assistant (plugin) | `hermes-homeassistant` | Full tools + HA device control (ha_list_entities, ha_get_state, ha_call_service, ha_list_services) from the `homeassistant` catalog plugin || Mattermost | `hermes-mattermost` | Full tools including terminal || Matrix | `hermes-matrix` | Full tools including terminal || DingTalk | `hermes-dingtalk` | Full tools including terminal |@@ -975,7 +975,7 @@ Defaults to `false`. Only platforms whose adapter implements `delete_message` ho- [Signal Setup](signal.md)- [SMS Setup (Twilio)](sms.md)- [Email Setup](email.md)-- [Home Assistant Integration](homeassistant.md)+- [Home Assistant Integration](homeassistant.md) (plugin catalog)- [Mattermost Setup](mattermost.md)- [Matrix Setup](matrix.md)- [DingTalk Setup](dingtalk.md)diff --git a/website/docs/user-guide/messaging/webhooks.md b/website/docs/user-guide/messaging/webhooks.mdindex b53b6a08166..bc413bfe359 100644--- a/website/docs/user-guide/messaging/webhooks.md+++ b/website/docs/user-guide/messaging/webhooks.md@@ -86,7 +86,7 @@ Routes define how different webhook sources are handled. Each route is a named e| `script` | No | Filter/transform script under `~/.hermes/scripts/`. The webhook payload is passed as JSON on stdin. JSON object stdout replaces the payload before templating; text stdout is exposed as `script_output`; empty stdout, `[SILENT]`, or a nonzero exit code ignores the webhook. || `skills` | No | List of skill names to load for the agent run. || `toolsets` | No | List of toolset keys (e.g. `["terminal", "file", "web"]`) that **replaces** the platform-level webhook toolset for runs triggered by this route only. Manual config edit only — not settable via `hermes webhook subscribe`, so agent-created subscriptions cannot self-grant elevated tools. Names are validated the same way as `platform_toolsets` entries (unknown or platform-restricted names are dropped). See [Per-route toolsets](#per-route-toolsets). |-| `deliver` | No | Where to send the response: `github_comment`, `telegram`, `discord`, `slack`, `signal`, `sms`, `whatsapp`, `matrix`, `mattermost`, `homeassistant`, `email`, `dingtalk`, `feishu`, `wecom`, `weixin`, `bluebubbles`, `qqbot`, or `log` (default). |+| `deliver` | No | Where to send the response: `github_comment`, `telegram`, `discord`, `slack`, `signal`, `sms`, `whatsapp`, `matrix`, `mattermost`, `homeassistant` (plugin), `email`, `dingtalk`, `feishu`, `wecom`, `weixin`, `bluebubbles`, `qqbot`, or `log` (default). || `deliver_extra` | No | Additional delivery config — keys depend on `deliver` type (e.g. `repo`, `pr_number`, `chat_id`). Values support the same `{dot.notation}` templates as `prompt`. || `deliver_only` | No | If `true`, skip the agent entirely — the rendered `prompt` template becomes the literal message that gets delivered. Zero LLM cost, sub-second delivery. See [Direct Delivery Mode](#direct-delivery-mode) for use cases. Requires `deliver` to be a real target (not `log`). || `cron_job` | No | Fire an existing cron job (by ID or name) on each event instead of starting a fresh webhook agent session. The rendered `prompt` becomes transient per-run context; the job's own prompt, skills, model, and delivery settings apply. Mutually exclusive with `deliver_only`. See [Event-Triggered Cron Jobs](#event-triggered-cron-jobs). |@@ -350,7 +350,7 @@ The `deliver` field controls where the agent's response goes after processing th| `whatsapp` | Routes the response to WhatsApp. Uses the home channel, or specify `chat_id` in `deliver_extra`. || `matrix` | Routes the response to Matrix. Uses the home channel, or specify `chat_id` in `deliver_extra`. || `mattermost` | Routes the response to Mattermost. Uses the home channel, or specify `chat_id` in `deliver_extra`. |-| `homeassistant` | Routes the response to Home Assistant. Uses the home channel, or specify `chat_id` in `deliver_extra`. |+| `homeassistant` | Routes the response to Home Assistant (requires the [`homeassistant` plugin](homeassistant.md)). Uses the home channel (`HASS_HOME_CHANNEL`), or specify `chat_id` in `deliver_extra`. || `email` | Routes the response to Email. Uses the home channel, or specify `chat_id` in `deliver_extra`. || `dingtalk` | Routes the response to DingTalk. Uses the home channel, or specify `chat_id` in `deliver_extra`. || `feishu` | Routes the response to Feishu/Lark. Uses the home channel, or specify `chat_id` in `deliver_extra`. |diff --git a/website/docs/user-guide/profiles.md b/website/docs/user-guide/profiles.mdindex 003f8165eb1..50f8e260ee6 100644--- a/website/docs/user-guide/profiles.md+++ b/website/docs/user-guide/profiles.md@@ -157,7 +157,7 @@ before they bite.`google_chat_user_tokens/`, `<platform>_*`).Credentials that a messaging adapter shares with a non-channel capability — `HASS_TOKEN`/`HASS_URL`-(also the Home Assistant tool), `TWILIO_*` (also the telephony skill), `EMAIL_*` (also+(also the Home Assistant plugin's tools; plugin adapters declare these as `shared_env_prefixes`), `TWILIO_*` (also the telephony skill), `EMAIL_*` (alsomail-sending scripts) — are stripped **only when the source's gateway would run that adapter**(the platform is enabled in its `config.yaml`, or its credential set is complete and notexplicitly disabled). A source with `platforms.homeassistant.enabled: false` uses `HASS_TOKEN`diff --git a/website/docs/user-guide/sessions.md b/website/docs/user-guide/sessions.mdindex 7247c53d24e..0eeecea58b8 100644--- a/website/docs/user-guide/sessions.md+++ b/website/docs/user-guide/sessions.md@@ -94,7 +94,7 @@ Each session is tagged with its source platform:| `weixin` | Weixin (personal WeChat) || `bluebubbles` | Apple iMessage via BlueBubbles macOS server || `qqbot` | QQ Bot (Tencent QQ) via Official API v2 |-| `homeassistant` | Home Assistant conversation |+| `homeassistant` | Home Assistant events (plugin) || `webhook` | Incoming webhooks || `api-server` | API server requests || `acp` | ACP editor integration |diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/architecture.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/architecture.mdindex 51bafa46c83..dd72521a149 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/architecture.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/architecture.md@@ -120,7 +120,7 @@ hermes-agent/│ └── platforms/ # 20 个适配器:telegram、discord、slack、whatsapp、│ # signal、matrix、mattermost、email、sms、│ # dingtalk、feishu、wecom、wecom_callback、weixin、-│ # bluebubbles、qqbot、homeassistant、webhook、api_server、+│ # bluebubbles、qqbot、webhook、api_server、│ # yuanbao│├── acp_adapter/ # ACP 服务器(VS Code / Zed / JetBrains)diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/cron-internals.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/cron-internals.mdindex 9ccb812c6dc..df4d1037e00 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/cron-internals.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/cron-internals.md@@ -180,7 +180,7 @@ Cron 任务结果可投递到任何受支持的平台。| Email | `email`、`email:<address>` | `email:[email protected]` || Weixin | `weixin`、`weixin:<wxid>` | `weixin:wxid_abc123` || Mattermost | `mattermost` 或 `mattermost:<channel_id>` | 裸名投递到 Mattermost 主频道 |-| Home Assistant | `homeassistant` 或 `homeassistant:<conversation>` | 裸名投递到 HA 对话 |+| Home Assistant(插件) | `homeassistant` 或 `homeassistant:<notify target>` | 裸名投递到 `HASS_HOME_CHANNEL`;需要插件目录中的 `homeassistant` 插件 || DingTalk | `dingtalk` 或 `dingtalk:<chat_id>` | 裸名投递到钉钉 || WeCom | `wecom` 或 `wecom:<chat_id>` | 裸名投递到企业微信 || BlueBubbles | `bluebubbles` 或 `bluebubbles:<chat_guid>` | 裸名通过 BlueBubbles 投递到 iMessage |diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/gateway-internals.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/gateway-internals.mdindex 8e385859fe9..7b448a73908 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/gateway-internals.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/gateway-internals.md@@ -163,7 +163,6 @@ plugins/platforms/ # 插件打包的适配器(每个一个目├── line/adapter.py # LINE Messaging API├── teams/adapter.py # Microsoft Teams├── irc/adapter.py # IRC(作用域锁的标准示例)-├── homeassistant/adapter.py # Home Assistant 对话集成└── … # google_chat、ntfy、photon、raft、simplex 等gateway/platforms/ # 核心 base 与旧的直接适配器diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/quickstart.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/quickstart.mdindex f5a59e7eddb..aee1b315e83 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/quickstart.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/quickstart.md@@ -235,7 +235,7 @@ Agent 会代你执行终端命令并显示结果。hermes gateway setup # 交互式平台配置```-接入 [Telegram](../user-guide/messaging/telegram.md)、[Discord](../user-guide/messaging/discord.md)、[Slack](../user-guide/messaging/slack.md)、[WhatsApp](../user-guide/messaging/whatsapp.md)、[Signal](../user-guide/messaging/signal.md)、[Email](../user-guide/messaging/email.md)、[Home Assistant](../user-guide/messaging/homeassistant.md) 或 [Microsoft Teams](../user-guide/messaging/teams.md)。+接入 [Telegram](../user-guide/messaging/telegram.md)、[Discord](../user-guide/messaging/discord.md)、[Slack](../user-guide/messaging/slack.md)、[WhatsApp](../user-guide/messaging/whatsapp.md)、[Signal](../user-guide/messaging/signal.md)、[Email](../user-guide/messaging/email.md)、[Home Assistant](../user-guide/messaging/homeassistant.md)(插件)或 [Microsoft Teams](../user-guide/messaging/teams.md)。### 自动化与工具diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/cron-troubleshooting.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/cron-troubleshooting.mdindex 2362161e5e4..319c6374aee 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/cron-troubleshooting.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/cron-troubleshooting.md@@ -72,7 +72,7 @@ hermes cron list # 将 next_run 时间与本地时间对比| `local` | 对 `~/.hermes/cron/output/` 有写权限 || `origin` | 投递到创建该任务的聊天会话 |-其他支持的平台包括 `mattermost`、`homeassistant`、`dingtalk`、`feishu`、`wecom`、`weixin`、`bluebubbles`、`qqbot` 和 `webhook`。你也可以使用 `platform:chat_id` 语法指定特定聊天(例如 `telegram:-1001234567890`)。+其他支持的平台包括 `mattermost`、`homeassistant`(插件)、`dingtalk`、`feishu`、`wecom`、`weixin`、`bluebubbles`、`qqbot` 和 `webhook`。你也可以使用 `platform:chat_id` 语法指定特定聊天(例如 `telegram:-1001234567890`)。若投递失败,任务仍会执行——只是不会发送到任何地方。检查 `hermes cron list` 中的 `last_error` 字段(如有)。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/index.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/index.mdindex d9414ff2a69..22088e1427d 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/index.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/index.md@@ -82,13 +82,13 @@ Hermes 内置完整的浏览器自动化功能,提供多种后端选项,用Hermes 可作为 gateway(网关)机器人运行于 19+ 个消息平台,均通过同一 `gateway` 子系统配置:-- **[Telegram](../user-guide/messaging/telegram.md)**、**[Discord](../user-guide/messaging/discord.md)**、**[Slack](../user-guide/messaging/slack.md)**、**[WhatsApp](../user-guide/messaging/whatsapp.md)**、**[Signal](../user-guide/messaging/signal.md)**、**[Matrix](../user-guide/messaging/matrix.md)**、**[Mattermost](../user-guide/messaging/mattermost.md)**、**[Email](../user-guide/messaging/email.md)**、**[SMS](../user-guide/messaging/sms.md)**、**[DingTalk](../user-guide/messaging/dingtalk.md)**、**[Feishu/Lark](../user-guide/messaging/feishu.md)**、**[WeCom](../user-guide/messaging/wecom.md)**、**[WeCom Callback](../user-guide/messaging/wecom-callback.md)**、**[Weixin](../user-guide/messaging/weixin.md)**、**[BlueBubbles](../user-guide/messaging/bluebubbles.md)**、**[QQ Bot](../user-guide/messaging/qqbot.md)**、**[Yuanbao](../user-guide/messaging/yuanbao.md)**、**[Home Assistant](../user-guide/messaging/homeassistant.md)**、**[Microsoft Teams](../user-guide/messaging/teams.md)**、**[Webhooks](../user-guide/messaging/webhooks.md)**+- **[Telegram](../user-guide/messaging/telegram.md)**、**[Discord](../user-guide/messaging/discord.md)**、**[Slack](../user-guide/messaging/slack.md)**、**[WhatsApp](../user-guide/messaging/whatsapp.md)**、**[Signal](../user-guide/messaging/signal.md)**、**[Matrix](../user-guide/messaging/matrix.md)**、**[Mattermost](../user-guide/messaging/mattermost.md)**、**[Email](../user-guide/messaging/email.md)**、**[SMS](../user-guide/messaging/sms.md)**、**[DingTalk](../user-guide/messaging/dingtalk.md)**、**[Feishu/Lark](../user-guide/messaging/feishu.md)**、**[WeCom](../user-guide/messaging/wecom.md)**、**[WeCom Callback](../user-guide/messaging/wecom-callback.md)**、**[Weixin](../user-guide/messaging/weixin.md)**、**[BlueBubbles](../user-guide/messaging/bluebubbles.md)**、**[QQ Bot](../user-guide/messaging/qqbot.md)**、**[Yuanbao](../user-guide/messaging/yuanbao.md)**、**[Home Assistant](../user-guide/messaging/homeassistant.md)**(插件)、**[Microsoft Teams](../user-guide/messaging/teams.md)**、**[Webhooks](../user-guide/messaging/webhooks.md)**平台对比表和配置指南详见[消息 Gateway 概览](../user-guide/messaging/index.md)。## 家庭自动化-- **[Home Assistant](../user-guide/messaging/homeassistant.md)** — 通过四个专用工具(`ha_list_entities`、`ha_get_state`、`ha_list_services`、`ha_call_service`)控制智能家居设备。配置 `HASS_TOKEN` 后,Home Assistant 工具集将自动激活。+- **[Home Assistant](../user-guide/messaging/homeassistant.md)** — 通过四个专用工具(`ha_list_entities`、`ha_get_state`、`ha_list_services`、`ha_call_service`)控制智能家居设备,并通过 gateway 响应实时状态变更。以插件目录中的 `homeassistant` 插件形式提供(`hermes plugins install homeassistant`);配置 `HASS_TOKEN` 后,其工具集将自动激活。## 插件diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.mdindex 585dd92154c..12b6f5e8c74 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md@@ -403,8 +403,9 @@ description: "Hermes Agent 使用的所有环境变量完整参考"| `MATRIX_AUTO_THREAD` | 为房间消息自动创建线程(默认:`true`) || `MATRIX_DM_MENTION_THREADS` | 在私聊中被 `@mention` 时创建线程(默认:`false`) || `MATRIX_RECOVERY_KEY` | 设备密钥轮换后交叉签名验证的恢复密钥。推荐用于启用了交叉签名的 E2EE 设置。 |-| `HASS_TOKEN` | Home Assistant 长期访问 token(启用 HA 平台 + 工具) |-| `HASS_URL` | Home Assistant URL(默认:`http://homeassistant.local:8123`) |+| `HASS_TOKEN` | Home Assistant 插件:长期访问 token(启用 HA 平台 + 工具;需要插件目录中的 `homeassistant` 插件,见 [Home Assistant](../user-guide/messaging/homeassistant.md)) |+| `HASS_URL` | Home Assistant 插件:Home Assistant URL(默认:`http://homeassistant.local:8123`) |+| `HASS_HOME_CHANNEL` | Home Assistant 插件:裸名 `deliver: homeassistant`(cron、webhook)的默认通知目标 || `WEBHOOK_ENABLED` | 启用 webhook 平台适配器(`true`/`false`) || `WEBHOOK_PORT` | 接收 webhook 的 HTTP 服务器端口(默认:`8644`) || `WEBHOOK_SECRET` | webhook 签名验证的全局 HMAC 密钥(当路由未指定自己的密钥时作为回退) |diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/tools-reference.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/tools-reference.mdindex a520f3b248c..97999e88342 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/tools-reference.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/tools-reference.md@@ -8,7 +8,7 @@ description: "Hermes 内置工具权威参考,按工具集分组"本页记录 Hermes 的内置工具,按工具集分组。可用性因平台、凭据和已启用的工具集而异。-**当前注册表快速统计:** 约 71 个工具 —— 10 个浏览器工具(核心)+ 2 个 CDP 门控浏览器工具、4 个文件工具、4 个 Home Assistant 工具、2 个终端工具、2 个 Web 工具、5 个 Feishu 工具、7 个 Spotify 工具(由内置 `spotify` 插件注册)、5 个 Yuanbao 工具、9 个 kanban 工具(在 kanban 调度器生成 agent 时注册)、2 个 Discord 工具,以及若干独立工具(`memory`、`clarify`、`delegate_task`、`execute_code`、`cronjob`、`session_search`、`skill_view`/`skill_manage`/`skills_list`、`text_to_speech`、`image_generate`、`video_generate`、`vision_analyze`、`video_analyze`、`send_message`、`todo`、`computer_use`、`process`)。+**当前注册表快速统计:** 约 71 个工具 —— 10 个浏览器工具(核心)+ 2 个 CDP 门控浏览器工具、4 个文件工具、2 个终端工具、2 个 Web 工具、5 个 Feishu 工具、7 个 Spotify 工具(由内置 `spotify` 插件注册)、5 个 Yuanbao 工具、9 个 kanban 工具(在 kanban 调度器生成 agent 时注册)、2 个 Discord 工具,以及若干独立工具(`memory`、`clarify`、`delegate_task`、`execute_code`、`cronjob`、`session_search`、`skill_view`/`skill_manage`/`skills_list`、`text_to_speech`、`image_generate`、`video_generate`、`vision_analyze`、`video_analyze`、`send_message`、`todo`、`computer_use`、`process`)。:::tip MCP 工具除内置工具外,Hermes 还可从 MCP 服务器动态加载工具。MCP 工具以 `mcp_<server>_` 为前缀(例如,`github` MCP 服务器的 `mcp_github_create_issue`)。配置方法见 [MCP 集成](../user-guide/features/mcp.md)。@@ -90,15 +90,6 @@ description: "Hermes 内置工具权威参考,按工具集分组"| `search_files` | 搜索文件内容或按名称查找文件。用于替代终端中的 `grep`/`rg`/`find`/`ls`。基于 Ripgrep,比 shell 等效命令更快。内容搜索(`target='content'`):在文件内进行正则搜索。输出模式:带行号的完整匹配… | — || `write_file` | 将内容写入文件,完全替换现有内容。用于替代终端中的 `echo`/`cat heredoc`。自动创建父目录。**覆盖整个文件** —— 精准编辑请使用 `patch`。 | — |-## `homeassistant` 工具集--| 工具 | 描述 | 所需环境 |-|------|------|----------|-| `ha_call_service` | 调用 Home Assistant 服务以控制设备。使用 `ha_list_services` 发现各域的可用服务及其参数。 | — |-| `ha_get_state` | 获取单个 Home Assistant 实体的详细状态,包括所有属性(亮度、颜色、温度设定值、传感器读数等)。 | — |-| `ha_list_entities` | 列出 Home Assistant 实体。可按域(light、switch、climate、sensor、binary_sensor、cover、fan 等)或区域名称(客厅、厨房、卧室等)过滤。 | — |-| `ha_list_services` | 列出用于设备控制的可用 Home Assistant 服务(动作)。显示每种设备类型可执行的操作及其接受的参数。用于发现如何控制通过 `ha_list_entities` 找到的设备。 | — |-## `computer_use` 工具集| 工具 | 描述 | 所需环境 |@@ -107,6 +98,8 @@ description: "Hermes 内置工具权威参考,按工具集分组":::note**Honcho 工具**(`honcho_profile`、`honcho_search`、`honcho_context`、`honcho_reasoning`、`honcho_conclude`)不再是内置工具。它们由插件目录中的 Honcho 记忆提供者插件提供(`hermes plugins install honcho`)。安装和使用方法见 [Memory Providers](../user-guide/features/memory-providers.md)。++**Home Assistant 工具**(`ha_list_entities`、`ha_get_state`、`ha_list_services`、`ha_call_service`,工具集 `homeassistant`)不再是内置工具。它们由插件目录中的 `homeassistant` 插件提供(`hermes plugins install homeassistant`)。详见 [Home Assistant](../user-guide/messaging/homeassistant.md)。:::## `image_gen` 工具集diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/toolsets-reference.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/toolsets-reference.mdindex 6a0f7391dd6..d28af9a0e33 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/toolsets-reference.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/toolsets-reference.md@@ -45,7 +45,7 @@ hermes tools # curses UI to enable/disable per platfo```/tools list/tools disable browser-/tools enable homeassistant+/tools enable spotify```## 核心工具集@@ -63,7 +63,6 @@ hermes tools # curses UI to enable/disable per platfo| `feishu_doc` | `feishu_doc_read` | 读取飞书/Lark 文档内容。由飞书文档评论智能回复处理器使用。 || `feishu_drive` | `feishu_drive_add_comment`, `feishu_drive_list_comments`, `feishu_drive_list_comment_replies`, `feishu_drive_reply_comment` | 飞书/Lark 云盘评论操作。仅限评论 agent 使用;不在 `hermes-cli` 或其他消息工具集上暴露。 || `file` | `patch`, `read_file`, `search_files`, `write_file` | 文件读取、写入、搜索和编辑。 |-| `homeassistant` | `ha_call_service`, `ha_get_state`, `ha_list_entities`, `ha_list_services` | 通过 Home Assistant 进行智能家居控制。仅在设置 `HASS_TOKEN` 时可用。 || `computer_use` | `computer_use` | 通过 cua-driver 进行后台 macOS 桌面控制——不抢占光标/焦点。适用于任何支持工具调用的模型。仅限 macOS;需要 `cua-driver` 在 `$PATH` 中。 || `image_gen` | `image_generate` | 通过 FAL.ai 进行文本生成图像(支持可选的 OpenAI / xAI 后端)。 || `video_gen` | `video_generate` | 通过插件注册的后端(xAI Grok-Imagine、FAL.ai Veo 3.1 / Pixverse v6 / Kling O3)进行文本生成视频和图像生成视频。传入 `image_url` 可对图像进行动画化;省略则为文本生成视频。 |@@ -91,7 +90,7 @@ hermes tools # curses UI to enable/disable per platfo| 工具集 | 与 `hermes-cli` 的差异 ||--------|------------------------|| `hermes-cli` | 完整工具集——交互式 CLI 会话的默认配置。包含 file、terminal、web、browser、memory、skills、vision、image_gen、todo、tts、delegation、code_execution、cronjob、session_search、clarify 和 `safe`(只读)套件,以及标准消息工具。 |-| `hermes-acp` | 移除了 `clarify`、`cronjob`、`image_generate`、`send_message`、`text_to_speech` 以及全部四个 Home Assistant 工具。专注于 IDE 环境中的编码任务。 |+| `hermes-acp` | 移除了 `clarify`、`cronjob`、`image_generate`、`send_message`、`text_to_speech`。专注于 IDE 环境中的编码任务。 || `hermes-api-server` | 移除了 `clarify`、`send_message` 和 `text_to_speech`。保留其他所有工具——适用于无法进行用户交互的程序化访问场景。 || `hermes-cron` | 与 `hermes-cli` 相同。 || `hermes-telegram` | 与 `hermes-cli` 相同。 |@@ -111,10 +110,11 @@ hermes tools # curses UI to enable/disable per platfo| `hermes-wecom-callback` | 与 `hermes-cli` 相同。 || `hermes-weixin` | 与 `hermes-cli` 相同。 || `hermes-yuanbao` | 在 `hermes-cli` 基础上添加了五个 `yb_*` 工具(私信/群组/表情包)。 |-| `hermes-homeassistant` | 与 `hermes-cli` 相同(Home Assistant 工具默认已存在,在设置 `HASS_TOKEN` 时激活)。 || `hermes-webhook` | 与 `hermes-cli` 相同。 || `hermes-gateway` | 内部 gateway 编排器工具集——所有 `hermes-<platform>` 工具集的并集;当 gateway 需要接受任意消息来源时使用。 |+由插件提供的平台会获得一个隐式的 `hermes-<platform>` 工具集,且不属于 `hermes-gateway`。例如,安装插件目录中的 `homeassistant` 插件后,`hermes-homeassistant` 仍可解析,但它已不再是内置工具集。+## 动态工具集### MCP server 工具集diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.mdindex e481130c710..8e7242c5a20 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.md@@ -1308,7 +1308,7 @@ display:tool_progress: 'off' # 在共享 Slack 工作区中保持安静```-没有覆盖的平台回退到全局 `tool_progress` 值。有效平台键:`telegram`、`discord`、`slack`、`signal`、`whatsapp`、`matrix`、`mattermost`、`email`、`sms`、`homeassistant`、`dingtalk`、`feishu`、`wecom`、`weixin`、`bluebubbles`、`qqbot`。旧版 `display.tool_progress_overrides` 键仍可加载以向后兼容,但已弃用,并在首次加载时迁移到 `display.platforms`。+没有覆盖的平台回退到全局 `tool_progress` 值。有效平台键:`telegram`、`discord`、`slack`、`signal`、`whatsapp`、`matrix`、`mattermost`、`email`、`sms`、`dingtalk`、`feishu`、`wecom`、`weixin`、`bluebubbles`、`qqbot`,以及任意插件平台的名称(例如 Home Assistant 插件的 `homeassistant`)。旧版 `display.tool_progress_overrides` 键仍可加载以向后兼容,但已弃用,并在首次加载时迁移到 `display.platforms`。`interim_assistant_messages` 仅限 gateway。启用后,Hermes 将已完成的轮次中 assistant 更新作为单独的聊天消息发送。这与 `tool_progress` 无关,不需要 gateway 流式传输。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/cron.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/cron.mdindex cf93e7daf56..f37d4e8c1f6 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/cron.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/cron.md@@ -273,7 +273,7 @@ Hermes 会在执行器或调度提供程序分派之前,将每次已领取的| `"mattermost"` | Mattermost 主频道 | || `"email"` | 邮件 | || `"sms"` | 通过 Twilio 发送 SMS | |-| `"homeassistant"` | Home Assistant | |+| `"homeassistant"` | Home Assistant(插件) | 使用 `HASS_HOME_CHANNEL`;需要 [`homeassistant` 插件](../messaging/homeassistant.md) || `"dingtalk"` | 钉钉 | || `"feishu"` | 飞书/Lark | || `"wecom"` | 企业微信 | |diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/tools.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/tools.mdindex 58de494d61c..42ffb2b1eb7 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/tools.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/tools.md@@ -13,7 +13,7 @@ description: "Hermes Agent 工具概览——可用工具、工具集工作方## 可用工具-Hermes 内置了丰富的工具注册表,涵盖网页搜索、浏览器自动化、终端执行、文件编辑、记忆、委托、RL 训练、消息投递、Home Assistant 等功能。+Hermes 内置了丰富的工具注册表,涵盖网页搜索、浏览器自动化、终端执行、文件编辑、记忆、委托、RL 训练、消息投递等功能。插件还可以提供更多工具,例如 Home Assistant 设备控制由插件目录中的 `homeassistant` 插件提供。:::note**Honcho 跨会话记忆**作为插件目录中的记忆提供者插件提供(`hermes plugins install honcho`),而非内置工具集。参见 [Memory Providers](./memory-providers.md#honcho)。@@ -31,7 +31,7 @@ Hermes 内置了丰富的工具注册表,涵盖网页搜索、浏览器自动| **Agent 编排** | `todo`, `clarify`, `execute_code`, `delegate_task` | 规划、澄清、代码执行及子 Agent 委托。 || **记忆与召回** | `memory`, `session_search` | 持久化记忆与会话搜索。 || **自动化与投递** | `cronjob`, `send_message` | 支持创建/列出/更新/暂停/恢复/运行/删除操作的定时任务,以及出站消息投递。 |-| **集成** | `ha_*`、MCP server 工具 | Home Assistant、MCP 及其他集成。 |+| **集成** | MCP server 工具、插件工具 | MCP 及插件集成,例如 Home Assistant(`ha_*`,来自[插件目录中的 `homeassistant` 插件](../messaging/homeassistant.md))。 |如需查看由代码派生的权威注册表,请参阅 [内置工具参考](../../reference/tools-reference.md) 和 [工具集参考](../../reference/toolsets-reference.md)。@@ -52,7 +52,7 @@ hermes toolshermes tools```-常用工具集包括 `web`、`search`、`terminal`、`file`、`browser`、`vision`、`image_gen`、`moa`、`skills`、`tts`、`todo`、`memory`、`session_search`、`cronjob`、`code_execution`、`delegation`、`clarify`、`homeassistant`、`messaging`、`spotify`、`discord`、`discord_admin`、`debugging` 和 `safe`。+常用工具集包括 `web`、`search`、`terminal`、`file`、`browser`、`vision`、`image_gen`、`moa`、`skills`、`tts`、`todo`、`memory`、`session_search`、`cronjob`、`code_execution`、`delegation`、`clarify`、`messaging`、`spotify`、`discord`、`discord_admin`、`debugging` 和 `safe`。完整列表(包括 `hermes-cli`、`hermes-telegram` 等平台预设以及 `mcp-<server>` 等动态 MCP 工具集)请参阅 [工具集参考](../../reference/toolsets-reference.md)。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/homeassistant.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/homeassistant.mdindex 7983c99afea..9735bfcaef0 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/homeassistant.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/homeassistant.md@@ -1,16 +1,36 @@---title: Home Assistant-description: 通过 Home Assistant 集成,使用 Hermes Agent 控制您的智能家居。+description: 通过插件目录中的 Home Assistant 插件,使用 Hermes Agent 控制您的智能家居。sidebar_label: Home Assistantsidebar_position: 5---# Home Assistant 集成-Hermes Agent 通过以下两种方式与 [Home Assistant](https://www.home-assistant.io/) 集成:+Hermes Agent 通过[插件目录](../features/plugins.md)中的官方 **`homeassistant` 插件**与 [Home Assistant](https://www.home-assistant.io/) 集成。该插件由 Nous Research 在 [NousResearch/hermes-homeassistant](https://github.com/NousResearch/hermes-homeassistant) 中维护,不再属于 Hermes 核心。它提供两部分功能:1. **Gateway 平台** — 通过 WebSocket 订阅实时状态变更并响应事件-2. **智能家居工具** — 四个可供 LLM 调用的工具,通过 REST API 查询和控制设备+2. **智能家居工具** — 四个可供 LLM 调用的工具(`homeassistant` 工具集),通过 REST API 查询和控制设备++## 安装++```bash+hermes plugins install homeassistant+```++插件按 profile 安装。如需在其他 profile 中使用 Home Assistant,请在该 profile 中同样安装:++```bash+hermes -p <profile> plugins install homeassistant+```++插件自行声明其 Python 依赖(`aiohttp`),因此无需安装 pip extra。旧的 `hermes-agent[homeassistant]` extra 已被移除。++:::info 从内置 Home Assistant 的版本升级+无需任何操作。每个已在使用 Home Assistant 的 profile(`.env` 中有 `HASS_TOKEN`、`config.yaml` 中启用或配置了 `platforms.homeassistant`,或 `platform_toolsets` 中列出了 `homeassistant` 工具集)都会在 `hermes update` 时自动从插件目录安装该插件(覆盖共享同一安装的所有 profile)。若该步骤未能执行,Hermes 会在该 profile 首次启动时(agent 启动或 gateway 启动)安装插件,此行为遵循 `security.allow_lazy_installs`。安装结果会显示在终端、Desktop 应用和聊天中。++您的配置保持不变:相同的 `HASS_TOKEN` / `HASS_URL` 变量、相同的 `homeassistant` 平台名称和 `platforms.homeassistant` 配置键、相同的 `homeassistant` 工具集和工具名称,以及相同的 cron `deliver: homeassistant:<notify target>` 语法。+:::## 配置@@ -32,10 +52,13 @@ HASS_TOKEN=your-long-lived-access-token# Optional: HA URL (default: http://homeassistant.local:8123)HASS_URL=http://192.168.1.100:8123++# Optional: default notify target for a bare `deliver: homeassistant`+HASS_HOME_CHANNEL=mobile_app_my_phone```:::info-设置 `HASS_TOKEN` 后,`homeassistant` 工具集将自动启用。Gateway 平台和设备控制工具均通过这一个令牌激活。+安装插件后,设置 `HASS_TOKEN` 即会自动启用 `homeassistant` 工具集。Gateway 平台和设备控制工具均通过这一个令牌激活。:::### 3. 启动 Gateway@@ -48,7 +71,7 @@ Home Assistant 将作为已连接平台出现,与其他消息平台(Telegram## 可用工具-Hermes Agent 注册了四个智能家居控制工具:+插件在 `homeassistant` 工具集中注册了四个智能家居控制工具:### `ha_list_entities`@@ -137,6 +160,7 @@ platforms:homeassistant:enabled: trueextra:+ url: http://192.168.1.100:8123 # optional; same as HASS_URLwatch_domains:- climate- binary_sensor@@ -153,6 +177,7 @@ platforms:| 设置 | 默认值 | 说明 ||---------|---------|-------------|+| `url` | `HASS_URL`,否则为 `http://homeassistant.local:8123` | Home Assistant 基础 URL || `watch_domains` | *(无)* | 仅监听这些实体域(例如 `climate`、`light`、`binary_sensor`) || `watch_entities` | *(无)* | 仅监听这些特定实体 ID || `watch_all` | `false` | 设为 `true` 以接收**所有**状态变更(不推荐用于大多数场景) |@@ -180,12 +205,25 @@ platforms:Agent 发出的消息将以 **Home Assistant 持久通知**的形式推送(通过 `persistent_notification.create`),标题为"Hermes Agent",显示在 HA 通知面板中。+该平台使用 `minimal` 显示默认值(通知中不包含工具进度或流式输出)。如需更多输出,可在 `config.yaml` 的 `display.platforms.homeassistant` 下覆盖。++### Cron 与 Webhook 投递++定时任务和 webhook 路由可以投递到 Home Assistant:++```yaml+deliver: homeassistant:mobile_app_my_phone # explicit notify target+deliver: homeassistant # uses HASS_HOME_CHANNEL+```++裸名 `homeassistant` 需要将 `HASS_HOME_CHANNEL` 设置为默认通知目标。参见[定时任务](../features/cron.md)和 [Webhooks](webhooks.md)。+### 连接管理- **WebSocket** 每 30 秒发送一次心跳,用于实时事件- **自动重连**,退避策略:5s → 10s → 30s → 60s- **REST API** 用于出站通知(独立会话,避免与 WebSocket 冲突)-- **鉴权** — HA 事件始终已授权(无需用户白名单,`HASS_TOKEN` 负责验证连接)+- **鉴权** — HA 事件始终已授权(无需用户白名单或配对:`HASS_TOKEN` 负责验证连接,且没有人类发送者)## 安全性@@ -249,4 +287,23 @@ Agent automatically:2. ha_call_service(domain="light", service="turn_on",entity_id="light.hallway")3. Sends notification: "Front door opened. Hallway lights turned on."-```\ No newline at end of file+```++## 故障排查++**平台或工具缺失。**+使用 `hermes plugins list` 检查插件是否已在当前 profile 中安装并启用。若未安装,+运行 `hermes plugins install homeassistant`(或 `hermes -p <profile> plugins install homeassistant`),+然后重启 gateway。若关闭了 `security.allow_lazy_installs`,首次启动时的自动安装会被跳过,+需要您手动安装插件。++**环境变量未生效。**+适配器从 `~/.hermes/.env`(启动时自动合并)或 `config.yaml` 读取凭据。请确认该文件位于+当前 Hermes profile 主目录下,且 URL/令牌两侧没有多余的引号。编辑后请重启 gateway —+环境变量的变更只在进程启动时生效。++**REST 鉴权失败(`401 Unauthorized`)。**+令牌必须是在 HA 用户个人资料页面(**个人资料 → 安全 → 长期访问令牌**)创建的*长期访问令牌*,+短期的 UI 会话令牌无效。另请确认基础 URL 包含协议和端口(例如 `http://homeassistant.local:8123`),+并且运行 Hermes 的主机可以访问 — `curl -H "Authorization: Bearer <token>" <url>/api/`+应返回 `{"message": "API running."}`。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/index.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/index.mdindex c4b1eb0eaaa..ddaf9196ced 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/index.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/index.md@@ -22,7 +22,7 @@ description: "通过 Telegram、Discord、Slack、WhatsApp、Signal、SMS、Emai| Signal | — | ✅ | ✅ | — | — | ✅ | ✅ || SMS | — | — | — | — | — | — | — || Email | — | ✅ | ✅ | ✅ | — | — | — |-| Home Assistant | — | — | — | — | — | — | — |+| Home Assistant(插件) | — | — | — | — | — | — | — || Mattermost | ✅ | ✅ | ✅ | ✅ | — | ✅ | ✅ || Matrix | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ || DingTalk | — | ✅ | ✅ | — | ✅ | — | ✅ |@@ -434,7 +434,7 @@ launchd plist 是静态的——如果你在配置网关后安装了新工具(| Signal | `hermes-signal` | 完整工具,包括终端 || SMS | `hermes-sms` | 完整工具,包括终端 || Email | `hermes-email` | 完整工具,包括终端 |-| Home Assistant | `hermes-homeassistant` | 完整工具 + HA 设备控制(ha_list_entities、ha_get_state、ha_call_service、ha_list_services) |+| Home Assistant(插件) | `hermes-homeassistant` | 完整工具 + HA 设备控制(ha_list_entities、ha_get_state、ha_call_service、ha_list_services),由插件目录中的 `homeassistant` 插件提供 || Mattermost | `hermes-mattermost` | 完整工具,包括终端 || Matrix | `hermes-matrix` | 完整工具,包括终端 || DingTalk | `hermes-dingtalk` | 完整工具,包括终端 |@@ -552,7 +552,7 @@ display:- [Signal 配置](signal.md)- [SMS 配置(Twilio)](sms.md)- [Email 配置](email.md)-- [Home Assistant 集成](homeassistant.md)+- [Home Assistant 集成](homeassistant.md)(插件目录)- [Mattermost 配置](mattermost.md)- [Matrix 配置](matrix.md)- [DingTalk 配置](dingtalk.md)diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/webhooks.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/webhooks.mdindex 8034e5f3611..67df8a1ab50 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/webhooks.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/webhooks.md@@ -84,7 +84,7 @@ curl http://localhost:8644/health| `filters` | 否 | 声明式 payload 过滤器,在认证/请求体/事件过滤之后、agent 或直接投递之前求值。不匹配时返回 `{"status":"ignored","reason":"filter"}`(HTTP 200)。 || `script` | 否 | 位于 `~/.hermes/scripts/` 下的过滤/转换脚本。webhook payload 以 JSON 形式通过 stdin 传入。stdout 为 JSON 对象时会在模板渲染前替换 payload;文本 stdout 以 `script_output` 形式暴露;空 stdout、`[SILENT]` 或非零退出码会忽略该 webhook。 || `skills` | 否 | agent 运行时加载的 skill 名称列表。 |-| `deliver` | 否 | 响应发送目标:`github_comment`、`telegram`、`discord`、`slack`、`signal`、`sms`、`whatsapp`、`matrix`、`mattermost`、`homeassistant`、`email`、`dingtalk`、`feishu`、`wecom`、`weixin`、`bluebubbles`、`qqbot`,或 `log`(默认)。 |+| `deliver` | 否 | 响应发送目标:`github_comment`、`telegram`、`discord`、`slack`、`signal`、`sms`、`whatsapp`、`matrix`、`mattermost`、`homeassistant`(插件)、`email`、`dingtalk`、`feishu`、`wecom`、`weixin`、`bluebubbles`、`qqbot`,或 `log`(默认)。 || `deliver_extra` | 否 | 额外的投递配置——键取决于 `deliver` 类型(例如 `repo`、`pr_number`、`chat_id`)。值支持与 `prompt` 相同的 `{dot.notation}` 模板语法。 || `deliver_only` | 否 | 若为 `true`,完全跳过 agent——渲染后的 `prompt` 模板直接作为消息体投递。零 LLM token 消耗,亚秒级投递。参见[直接投递模式](#direct-delivery-mode)了解使用场景。要求 `deliver` 为真实目标(非 `log`)。 || `cron_job` | 否 | 每次事件触发一个已有的 cron 任务(按 ID 或名称),而不是启动新的 webhook agent 会话。渲染后的 `prompt` 作为单次运行的临时上下文;以任务自身的 prompt、skills、模型和投递设置为准。与 `deliver_only` 互斥。参见[事件触发的 Cron 任务](#event-triggered-cron-jobs)。 |@@ -310,7 +310,7 @@ platforms:| `whatsapp` | 将响应路由到 WhatsApp。使用主频道,或在 `deliver_extra` 中指定 `chat_id`。 || `matrix` | 将响应路由到 Matrix。使用主频道,或在 `deliver_extra` 中指定 `chat_id`。 || `mattermost` | 将响应路由到 Mattermost。使用主频道,或在 `deliver_extra` 中指定 `chat_id`。 |-| `homeassistant` | 将响应路由到 Home Assistant。使用主频道,或在 `deliver_extra` 中指定 `chat_id`。 |+| `homeassistant` | 将响应路由到 Home Assistant(需要 [`homeassistant` 插件](homeassistant.md))。使用主频道(`HASS_HOME_CHANNEL`),或在 `deliver_extra` 中指定 `chat_id`。 || `email` | 将响应路由到 Email。使用主频道,或在 `deliver_extra` 中指定 `chat_id`。 || `dingtalk` | 将响应路由到 DingTalk。使用主频道,或在 `deliver_extra` 中指定 `chat_id`。 || `feishu` | 将响应路由到 Feishu/Lark。使用主频道,或在 `deliver_extra` 中指定 `chat_id`。 |diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.mdindex 4f3c59283c7..52aab55f773 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.md@@ -65,7 +65,7 @@ Hermes 存储 session 历史以便恢复对话,但不会在每次对话时重| `weixin` | 微信(个人版) || `bluebubbles` | 通过 BlueBubbles macOS 服务器的 Apple iMessage || `qqbot` | QQ Bot(腾讯 QQ)通过官方 API v2 |-| `homeassistant` | Home Assistant 对话 |+| `homeassistant` | Home Assistant 事件(插件) || `webhook` | 传入 webhook || `api-server` | API 服务器请求 || `acp` | ACP 编辑器集成 |