.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control
2026-07-24 19:47:43 +00:00
parent 1616d9a5cb
commit 5b0256df7e
+1
View File
@@ -21,3 +21,4 @@
{"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: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} {"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}
{"timestamp": "2026-07-24T19:45:48.819203+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": false, "BestPracticeKey": null}, "execution_time_ms": 140.55800437927246, "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:45:48.819203+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": false, "BestPracticeKey": null}, "execution_time_ms": 140.55800437927246, "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:47:37.323022+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": 24.805784225463867, "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}