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

This commit is contained in:
Home Assistant Version Control
2026-08-07 16:05:49 +00:00
parent 702184d690
commit d9e4eab4d6
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -871,3 +871,4 @@
{"timestamp": "2026-08-07T16:04:50.694725+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_approximate_completion_time", "sensor.octoprint_time_left", "sensor.octoprint_elapsed"], "fields": ["state", "attributes"], "attribute_keys": ["unit_of_measurement", "friendly_name"]}, "execution_time_ms": 18.63694190979004, "success": true, "error_message": null, "response_size_bytes": 821, "user_context": null}
{"timestamp": "2026-08-07T16:04:51.160043+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set finish = as_local(states('sensor.octoprint_approximate_completion_time') | as_datetime) %}\n{% set s = states('sensor.octoprint_time_left') | int(0) %}\nRemaining: {{ (s // 3600) }}h {{ ((s % 3600) // 60) }}m\nFinish: {{ finish.strftime('%-I:%M %p') if finish else 'n/a' }}", "timeout": 3, "report_errors": true}, "execution_time_ms": 9.369850158691406, "success": true, "error_message": null, "response_size_bytes": 404, "user_context": null}
{"timestamp": "2026-08-07T16:05:01.888016+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set finish = as_local(states('sensor.octoprint_approximate_completion_time') | as_datetime) %}\n{% set s = states('sensor.octoprint_time_left') | int(0) %}\nRemaining: {{ (s // 3600) }}h {{ ((s % 3600) // 60) }}m\nFinish: {{ finish.strftime('%I:%M %p').lstrip('0') if finish else 'n/a' }}", "timeout": 3, "report_errors": true}, "execution_time_ms": 22.861480712890625, "success": true, "error_message": null, "response_size_bytes": 415, "user_context": null}
{"timestamp": "2026-08-07T16:05:43.063943+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "config['views'][0]['sections'][1]['cards'].insert(5, {'type': 'markdown', 'content': \"**Time remaining:** {{ (states('sensor.octoprint_time_left') | int(0) // 3600) }}h {{ ((states('sensor.octoprint_time_left') | int(0) % 3600) // 60) }}m\\n\\n**Est. finish (local):** {{ (as_local(states('sensor.octoprint_approximate_completion_time') | as_datetime)).strftime('%I:%M %p').lstrip('0') }}\", 'grid_options': {'columns': 6}})", "config_hash": "3e27da5eab808f88", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": false, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 13.257503509521484, "success": true, "error_message": null, "response_size_bytes": 1034, "user_context": null}
+7
View File
@@ -126,6 +126,13 @@
"columns": 6
}
},
{
"type": "markdown",
"content": "**Time remaining:** {{ (states('sensor.octoprint_time_left') | int(0) // 3600) }}h {{ ((states('sensor.octoprint_time_left') | int(0) % 3600) // 60) }}m\n\n**Est. finish (local):** {{ (as_local(states('sensor.octoprint_approximate_completion_time') | as_datetime)).strftime('%I:%M %p').lstrip('0') }}",
"grid_options": {
"columns": 6
}
},
{
"type": "tile",
"entity": "sensor.octoprint_current_z",