Route OpenClaw chat by HA user

This commit is contained in:
2026-05-06 08:08:18 +02:00
parent 90d525e842
commit 8221098ebc
12 changed files with 285 additions and 68 deletions
+10 -4
View File
@@ -20,8 +20,8 @@ send_message:
agent_id:
name: Agent ID
description: >
Optional OpenClaw agent ID to route this message to. Overrides the
agent ID configured in the integration options. Defaults to "main".
Optional OpenClaw agent ID to route this message to. When omitted,
the integration routes by the Home Assistant user who called the service.
required: false
example: "main"
selector:
@@ -29,11 +29,17 @@ send_message:
clear_history:
name: Clear History
description: Clear the conversation history for a session.
description: Clear scoped conversation history for the current Home Assistant user.
fields:
session_id:
name: Session ID
description: Session ID to clear. If omitted, clears the default session.
description: Session ID to clear. If omitted, clears this user's sessions for the resolved agent.
required: false
selector:
text:
agent_id:
name: Agent ID
description: Optional OpenClaw agent ID override for the history scope.
required: false
selector:
text: