.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control
2026-08-26 06:41:35 +00:00
parent 7f24b365e6
commit 65f1763139
+1
View File
@@ -2453,3 +2453,4 @@
{"timestamp": "2026-08-26T06:40:19.659503+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "config[\"views\"][0][\"sections\"][0][\"cards\"][2] = {\"type\": \"custom:webrtc-camera\", \"url\": \"https://endercamera2.duckdns.org/stream\", \"mode\": \"mse\", \"grid_options\": {\"columns\": \"full\"}}", "config_hash": "316e7d745de2a061", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": false, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 12.616872787475586, "success": true, "error_message": null, "response_size_bytes": 767, "user_context": null}
{"timestamp": "2026-08-26T06:41:08.114938+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "ender5-printer", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": "print", "mode": null, "query": null}, "execution_time_ms": 3.3245086669921875, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"RESOURCE_NOT_FOUND\",\n \"message\": \"Dashboard view path 'print' is not found.\",\n \"suggestion\": \"Use a view_path returned by ha_config_get_dashboard\"\n },\n \"dashboard_url_path\": \"ender5-printer\",\n \"view_path\": \"print\",\n \"available_view_paths\": [\n \"printer\"\n ]\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-08-26T06:41:17.642782+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "ender5-printer", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": "printer", "mode": null, "query": null}, "execution_time_ms": 13.612031936645508, "success": true, "error_message": null, "response_size_bytes": 18198, "user_context": null}
{"timestamp": "2026-08-26T06:41:29.554203+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "ender5-printer", "config": null, "python_transform": "config[\"views\"][0][\"sections\"][0][\"cards\"][4][\"cards\"][0][\"url\"] = \"https://endercamera2.duckdns.org/stream\"", "config_hash": "395ec40de021e9a3", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": false, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 5.982875823974609, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"Expression raised at runtime: KeyError: 'cards'\",\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: config[\\\"views\\\"][0][\\\"sections\\\"][0][\\\"cards\\\"][4][\\\"cards\\\"][0][\\\"url\\\"] = \\\"https://endercamera2.duckdns.org...\",\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\": \"ender5-printer\"\n}", "response_size_bytes": null, "user_context": null}