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

This commit is contained in:
Home Assistant Version Control
2026-08-08 03:16:27 +00:00
parent 119a09f319
commit 0a391f1155
2 changed files with 22 additions and 0 deletions
+2
View File
@@ -992,3 +992,5 @@
{"timestamp": "2026-08-08T03:13:35.304788+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_filament_daily", "sensor.octoprint_filament_weekly", "sensor.octoprint_filament_monthly", "sensor.octoprint_filament_used_total"], "fields": ["entity_id", "state", "attributes"], "attribute_keys": null}, "execution_time_ms": 18.41592788696289, "success": true, "error_message": null, "response_size_bytes": 1928, "user_context": null}
{"timestamp": "2026-08-08T03:14:15.721951+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": 3.9975643157958984, "success": true, "error_message": null, "response_size_bytes": 4019, "user_context": null}
{"timestamp": "2026-08-08T03:14:27.382862+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "config['views'][1]['sections'][1]['cards'].append({\"type\": \"custom:apexcharts-card\", \"header\": {\"show\": True, \"title\": \"Filament Usage (30 days)\", \"show_states\": True, \"colorize_states\": True}, \"graph_span\": \"30d\", \"apex_config\": {\"chart\": {\"type\": \"bar\", \"height\": 300}, \"plotOptions\": {\"bar\": {\"columnWidth\": \"50%\"}}, \"dataLabels\": {\"enabled\": False}, \"yaxis\": {\"tickAmount\": 4, \"labels\": {\"minWidth\": 40}}}, \"series\": [{\"entity\": \"sensor.octoprint_filament_daily\", \"name\": \"Used (mm)\", \"color\": \"#26c6da\", \"type\": \"column\", \"group_by\": {\"func\": \"last\", \"duration\": \"1d\", \"start_with_last\": True}}, {\"entity\": \"sensor.octoprint_filament_used_total\", \"name\": \"Total (mm)\", \"color\": \"#ab47bc\", \"type\": \"line\", \"curve\": \"straight\", \"group_by\": {\"func\": \"last\", \"duration\": \"1d\", \"start_with_last\": True}}], \"grid_options\": {\"columns\": \"full\"}, \"span\": {\"end\": \"day\"}})", "config_hash": "73f6c2148585a2e4", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": false, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 7.647037506103516, "success": true, "error_message": null, "response_size_bytes": 1458, "user_context": null}
{"timestamp": "2026-08-08T03:16:17.662039+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "cards = config['views'][1]['sections'][1]['cards']\nza = cards[1]\npp = cards[2]\npd = cards[3]\nps = cards[4]\npo = cards[5]\nfu = cards[6]\nconfig['views'][1]['sections'][1]['cards'] = [cards[0], za, pp, pd]\nconfig['views'][1]['sections'].append({\"type\": \"grid\", \"cards\": [{\"type\": \"heading\", \"heading\": \"Print History\", \"icon\": \"mdi:history\"}, ps, po]})\nconfig['views'][1]['sections'].append({\"type\": \"grid\", \"cards\": [{\"type\": \"heading\", \"heading\": \"Filament Usage\", \"icon\": \"mdi:spool\"}, fu]})", "config_hash": "70f1f8cbe58a61d7", "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.30709457397461, "success": true, "error_message": null, "response_size_bytes": 1105, "user_context": null}
{"timestamp": "2026-08-08T03:16:21.001665+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": 2.2788047790527344, "success": true, "error_message": null, "response_size_bytes": 5039, "user_context": null}
+20
View File
@@ -557,6 +557,16 @@
"grid_options": {
"columns": "full"
}
}
]
},
{
"type": "grid",
"cards": [
{
"type": "heading",
"heading": "Print History",
"icon": "mdi:history"
},
{
"type": "history-graph",
@@ -637,6 +647,16 @@
"span": {
"end": "day"
}
}
]
},
{
"type": "grid",
"cards": [
{
"type": "heading",
"heading": "Filament Usage",
"icon": "mdi:spool"
},
{
"type": "custom:apexcharts-card",