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

This commit is contained in:
Home Assistant Version Control
2026-08-10 05:08:41 +00:00
parent 859ceb8481
commit bd187684d7
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1088,3 +1088,4 @@
{"timestamp": "2026-08-10T05:03:25.311950+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "sensor.octoprint_recent_prints", "fields": ["state", "attributes"], "attribute_keys": ["allPrintJobs"]}, "execution_time_ms": 32.81092643737793, "success": true, "error_message": null, "response_size_bytes": 531, "user_context": null}
{"timestamp": "2026-08-10T05:03:36.587592+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "sensor.octoprint_recent_prints", "fields": null, "attribute_keys": null}, "execution_time_ms": 6.691217422485352, "success": true, "error_message": null, "response_size_bytes": 737, "user_context": null}
{"timestamp": "2026-08-10T05:06:59.138076+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "printer-stats", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": "history", "mode": null, "query": null}, "execution_time_ms": 4.574775695800781, "success": true, "error_message": null, "response_size_bytes": 6341, "user_context": null}
{"timestamp": "2026-08-10T05:08:35.403629+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(\"state_attr('sensor.octoprint_recent_prints', 'json_attributes')\", \"state_attr('sensor.octoprint_recent_prints', 'allPrintJobs')\")", "config_hash": "a35783a45b9d7fb7", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": false, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 9.556293487548828, "success": true, "error_message": null, "response_size_bytes": 863, "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', 'json_attributes') | 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([]) %}\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 %}"
}
]
},