diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 181c4be..aee2567 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -31,3 +31,4 @@ {"timestamp": "2026-07-24T20:07:40.403850+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.tablet_dim_screen_at_night"}, "execution_time_ms": 53.27343940734863, "success": true, "error_message": null, "response_size_bytes": 449, "user_context": null} {"timestamp": "2026-07-24T20:16:45.640024+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": 241.0869598388672, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"INTERNAL_ERROR\",\n \"message\": \"An unexpected error occurred\",\n \"details\": \"Task cb=[TaskGroup._spawn..task_done() at /usr/local/lib/python3.14/site-packages/anyio/_backends/_asyncio.py:821]> got Future wait_for=> 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-24T20:17:31.170214+00:00", "tool_name": "ha_search", "parameters": {"query": "MCP Backup Test", "domain_filter": null, "area_filter": null, "search_types": ["automation"], "limit": 10, "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": 4835.088491439819, "success": true, "error_message": null, "response_size_bytes": 1058, "user_context": null} +{"timestamp": "2026-07-24T20:18:09.579587+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.mcp_backup_test", "python_transform": "config['actions'][0]['data']['message'] = 'Automation MODIFIED via ha-direct!'", "config_hash": null, "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 0.11897087097167969, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_INVALID_PARAMETER\",\n \"message\": \"config_hash is required for python_transform\",\n \"suggestion\": \"Call ha_config_get_automation() first\",\n \"suggestions\": [\n \"Call ha_config_get_automation() first\",\n \"Use the config_hash from that response\",\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 \"action\": \"python_transform\",\n \"identifier\": \"automation.mcp_backup_test\"\n}", "response_size_bytes": null, "user_context": null}