.ha_mcp/logs/mcp_usage.jsonl, .storage/lovelace.printer_stats

This commit is contained in:
Home Assistant Version Control
2026-08-10 05:12:41 +00:00
parent 097b41283d
commit a01d544761
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1093,3 +1093,4 @@
{"timestamp": "2026-08-10T05:10:46.603506+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "sensor.octoprint_recent_prints", "fields": ["state", "attributes"], "attribute_keys": ["allPrintJobs"]}, "execution_time_ms": 33.24246406555176, "success": true, "error_message": null, "response_size_bytes": 57748, "user_context": null}
{"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}
+1 -1
View File
@@ -655,7 +655,7 @@
{
"type": "markdown",
"title": "Recent Prints",
"content": "{% 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 %}"
"content": "{% 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 %}"
}
]
},