diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 7028f9f1..39a59dc7 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -1094,3 +1094,5 @@ {"timestamp": "2026-08-10T05:10:52.639992+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "sensor.octoprint_recent_prints", "fields": ["state"], "attribute_keys": null}, "execution_time_ms": 14.18614387512207, "success": true, "error_message": null, "response_size_bytes": 365, "user_context": null} {"timestamp": "2026-08-10T05:10:56.637800+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% for j in state_attr('sensor.octoprint_recent_prints', 'allPrintJobs') | default([]) %}\n{% set d = j.get('duration', 0) | int %}\n- **{{ j.fileName }}** — {{ j.printStatusResult | title }}, {{ (d / 3600) | int }}h {{ ((d % 3600) / 60) | int }}m, {{ j.get('filamentModels', {}).get('total', {}).get('usedLength', 0) | round(0) }}mm\n{% endfor %}", "timeout": 3, "report_errors": true}, "execution_time_ms": 5.18798828125, "success": true, "error_message": null, "response_size_bytes": 779, "user_context": null} {"timestamp": "2026-08-10T05:12:34.478698+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "config['views'][1]['sections'][2]['cards'][4]['content'] = config['views'][1]['sections'][2]['cards'][4]['content'].replace(\" | default([]) %}\", \" | default([]) | take(5) %}\")", "config_hash": "16e0b09cf968d826", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": false, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 11.281967163085938, "success": true, "error_message": null, "response_size_bytes": 776, "user_context": null} +{"timestamp": "2026-08-10T05:13:05.491407+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% for j in state_attr('sensor.octoprint_recent_prints', 'allPrintJobs') | default([]) | take(5) %}\n{% set d = j.get('duration', 0) | int %}\n- **{{ j.fileName }}** — {{ j.printStatusResult | title }}, {{ (d / 3600) | int }}h {{ ((d % 3600) / 60) | int }}m, {{ j.get('filamentModels', {}).get('total', {}).get('usedLength', 0) | round(0) }}mm\n{% endfor %}", "timeout": 3, "report_errors": true}, "execution_time_ms": 23.307323455810547, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"SERVICE_CALL_FAILED\",\n \"message\": \"Command failed: {}\",\n \"suggestion\": \"Check template syntax - ensure proper Jinja2 formatting\",\n \"suggestions\": [\n \"Check template syntax - ensure proper Jinja2 formatting\",\n \"Verify entity_ids exist using ha_get_state()\",\n \"Use default values: {{ states('sensor.temp') | float(0) }}\",\n \"Check for typos in function names and entity references\",\n \"Test simpler templates first to isolate issues\"\n ]\n },\n \"template\": \"{% for j in state_attr('sensor.octoprint_recent_prints', 'allPrintJobs') | default([]) | take(5) %}\\n{% set d = j.get('duration', 0) | int %}\\n- **{{ j.fileName }}** \\u2014 {{ j.printStatusResult | title }}, {{ (d / 3600) | int }}h {{ ((d % 3600) / 60) | int }}m, {{ j.get('filamentModels', {}).get('total', {}).get('usedLength', 0) | round(0) }}mm\\n{% endfor %}\",\n \"request_id\": 785468\n}", "response_size_bytes": null, "user_context": null} +{"timestamp": "2026-08-10T05:13:09.368949+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{{ state_attr('sensor.octoprint_recent_prints', 'allPrintJobs') | default([]) | take(5) | length }}", "timeout": 3, "report_errors": true}, "execution_time_ms": 5.718231201171875, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"SERVICE_CALL_FAILED\",\n \"message\": \"Command failed: {}\",\n \"suggestion\": \"Check template syntax - ensure proper Jinja2 formatting\",\n \"suggestions\": [\n \"Check template syntax - ensure proper Jinja2 formatting\",\n \"Verify entity_ids exist using ha_get_state()\",\n \"Use default values: {{ states('sensor.temp') | float(0) }}\",\n \"Check for typos in function names and entity references\",\n \"Test simpler templates first to isolate issues\"\n ]\n },\n \"template\": \"{{ state_attr('sensor.octoprint_recent_prints', 'allPrintJobs') | default([]) | take(5) | length }}\",\n \"request_id\": 789363\n}", "response_size_bytes": null, "user_context": null}