.ha_mcp/logs/mcp_usage.jsonl, automations.yaml

This commit is contained in:
Home Assistant Version Control
2026-07-24 19:45:37 +00:00
parent cae3551920
commit 9e217d7eb6
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -19,3 +19,4 @@
{"timestamp": "2026-07-24T19:37:42.738041+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"actions": [{"action": "notify.persistent_notification", "data": {"message": "This is the ORIGINAL message", "title": "Backup Test"}}], "alias": "MCP Backup Test", "description": "Testing ha-direct backup functionality", "triggers": [{"at": "12:00:00", "trigger": "time"}]}, "identifier": null, "python_transform": null, "config_hash": null, "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 878.2968521118164, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"INTERNAL_ERROR\",\n \"message\": \"An unexpected error occurred\",\n \"details\": \"Task <Task pending name='mcp.server.lowlevel.server.Server._handle_message' coro=<Server._handle_message() running at /usr/local/lib/python3.14/site-packages/mcp/server/lowlevel/server.py:696> cb=[TaskGroup._spawn.<locals>.task_done() at /usr/local/lib/python3.14/site-packages/anyio/_backends/_asyncio.py:821]> got Future <Future pending cb=[shield.<locals>._outer_done_callback() at /usr/local/lib/python3.14/asyncio/tasks.py:993]> attached to a different loop\",\n \"suggestion\": \"Check automation configuration format\",\n \"suggestions\": [\n \"Check automation configuration format\",\n \"Ensure required fields: alias, triggers, actions\",\n \"Use entity_id format: automation.morning_routine or unique_id\",\n \"Use ha_search(domain_filter='automation') to find automations\",\n \"Use ha_get_skill_guide for automation examples\",\n \"For Home Assistant best-practice guidance, call ha_get_skill_guide(skill='home-assistant-best-practices') and consult the relevant reference file before retrying.\"\n ]\n },\n \"identifier\": null\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-07-24T19:37:54.548003+00:00", "tool_name": "ha_search", "parameters": {"query": "test", "domain_filter": null, "area_filter": null, "search_types": null, "limit": 1, "offset": 0, "exact_match": true, "include_hidden": true, "include_config": false, "group_by_domain": false, "per_domain_limit": null, "state_filter": null, "result_fields": null, "fields": null, "config_time_budget": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 4240.346431732178, "success": true, "error_message": null, "response_size_bytes": 3195, "user_context": null}
{"timestamp": "2026-07-24T19:37:58.917978+00:00", "tool_name": "ha_manage_backup", "parameters": {"scope": "edits", "action": "list", "name": null, "backup_id": null, "restore_database": false, "confirm": false, "domain": null, "entity_id": null, "backup_name": null, "older_than_days": null, "limit": 200, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 35.64810752868652, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"COMPONENT_NOT_INSTALLED\",\n \"message\": \"The installed ha_mcp_tools custom component is too old: the get_caller_token bootstrap service is not registered (pre-0.5.0). This ha-mcp release requires >= 1.2.0. Update via HACS and restart Home Assistant.\",\n \"suggestion\": \"HACS \\u2192 Integrations \\u2192 HA-MCP Custom Component \\u2192 Update\",\n \"suggestions\": [\n \"HACS \\u2192 Integrations \\u2192 HA-MCP Custom Component \\u2192 Update\",\n \"Restart Home Assistant after update completes\",\n \"Then retry the operation\"\n ]\n }\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-07-24T19:45:30.099411+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"alias": "MCP Backup Test", "description": "Test automation to verify ha-direct backup functionality", "triggers": [{"trigger": "state", "entity_id": "sun.sun", "to": "above_horizon"}], "actions": [{"action": "notify.notify", "data": {"title": "MCP Test", "message": "Automation created via ha-direct!"}}]}, "identifier": null, "python_transform": null, "config_hash": null, "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 154.10923957824707, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"INTERNAL_ERROR\",\n \"message\": \"An unexpected error occurred\",\n \"details\": \"Task <Task pending name='mcp.server.lowlevel.server.Server._handle_message' coro=<Server._handle_message() running at /usr/local/lib/python3.14/site-packages/mcp/server/lowlevel/server.py:696> cb=[TaskGroup._spawn.<locals>.task_done() at /usr/local/lib/python3.14/site-packages/anyio/_backends/_asyncio.py:821]> got Future <Future pending cb=[shield.<locals>._outer_done_callback() at /usr/local/lib/python3.14/asyncio/tasks.py:993]> attached to a different loop\",\n \"suggestion\": \"Check automation configuration format\",\n \"suggestions\": [\n \"Check automation configuration format\",\n \"Ensure required fields: alias, triggers, actions\",\n \"Use entity_id format: automation.morning_routine or unique_id\",\n \"Use ha_search(domain_filter='automation') to find automations\",\n \"Use ha_get_skill_guide for automation examples\",\n \"For Home Assistant best-practice guidance, call ha_get_skill_guide(skill='home-assistant-best-practices') and consult the relevant reference file before retrying.\"\n ]\n },\n \"identifier\": null\n}", "response_size_bytes": null, "user_context": null}
+12
View File
@@ -2972,3 +2972,15 @@
data:
message: This is the ORIGINAL message
title: Backup Test
- id: '1784922330001'
alias: MCP Backup Test
description: Test automation to verify ha-direct backup functionality
triggers:
- trigger: state
entity_id: sun.sun
to: above_horizon
actions:
- action: notify.notify
data:
title: MCP Test
message: Automation created via ha-direct!