.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control
2026-07-27 15:46:11 +00:00
parent c76941dbb1
commit c79a91e77a
+2
View File
@@ -64,3 +64,5 @@
{"timestamp": "2026-07-27T15:44:28.434150+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "dashboard-temp", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": null, "mode": null, "query": null}, "execution_time_ms": 2.033233642578125, "success": true, "error_message": null, "response_size_bytes": 9221, "user_context": null}
{"timestamp": "2026-07-27T15:45:38.069709+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "dashboard-temp", "config": null, "python_transform": "\n# Grid index 1 in the first view's sections (the system stats grid)\ngrid = config['views'][0]['sections'][0]['sections'][1]\n\n# Extract System Load from the vertical-stack (index 4 in grid, index 1 in vs)\nvs = grid['cards'][4]\nsystem_load_card = vs['cards'].pop(1)\n\n# Insert it right after System Resources (index 2), so it becomes index 3\ngrid['cards'].insert(3, system_load_card)\n", "config_hash": "2d0bcaeab9438cd0", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": true, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 2.3813247680664062, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"Expression raised at runtime: KeyError: 'sections'\",\n \"suggestion\": \"Call ha_config_get_dashboard with card_type=..., entity_id=..., or heading=... to get the verified python_path for the target card, then build python_transform from that path\",\n \"suggestions\": [\n \"Call ha_config_get_dashboard with card_type=..., entity_id=..., or heading=... to get the verified python_path for the target card, then build python_transform from that path\",\n \"Verify referenced keys/indices exist in the input\",\n \"Check that types match (e.g. dict vs list operations)\",\n \"Use .get(key, default) to handle missing keys\",\n \"Expression: \\n# Grid index 1 in the first view's sections (the system stats grid)\\ngrid = config['views'][0]['sect...\",\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 \"url_path\": \"dashboard-temp\"\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-07-27T15:45:57.572487+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "dashboard-temp", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": "System Health", "include_config": false, "include_screenshot": false, "view_path": null, "mode": null, "query": null}, "execution_time_ms": 4.624843597412109, "success": true, "error_message": null, "response_size_bytes": 710, "user_context": null}
{"timestamp": "2026-07-27T15:46:05.120479+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "dashboard-temp", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": "System Load", "include_config": false, "include_screenshot": false, "view_path": null, "mode": null, "query": null}, "execution_time_ms": 3.0989646911621094, "success": true, "error_message": null, "response_size_bytes": 530, "user_context": null}
{"timestamp": "2026-07-27T15:46:05.641616+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "dashboard-temp", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": "System Resources", "include_config": false, "include_screenshot": false, "view_path": null, "mode": null, "query": null}, "execution_time_ms": 15.424728393554688, "success": true, "error_message": null, "response_size_bytes": 514, "user_context": null}