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

This commit is contained in:
Home Assistant Version Control
2026-09-06 04:58:46 +00:00
parent e411230399
commit 21c0412da0
2 changed files with 19 additions and 0 deletions
+1
View File
@@ -3587,3 +3587,4 @@
{"timestamp": "2026-09-06T04:54:17.712331+00:00", "tool_name": "ha_get_hacs_info", "parameters": {"action": "search", "query": "octoprint", "category": "integration", "installed_only": false, "max_results": 10, "offset": 0, "repository_id": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 1539.642333984375, "success": true, "error_message": null, "response_size_bytes": 562, "user_context": null}
{"timestamp": "2026-09-06T04:56:34.616789+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": "print", "mode": null, "query": null}, "execution_time_ms": 12.608528137207031, "success": true, "error_message": null, "response_size_bytes": 10936, "user_context": null}
{"timestamp": "2026-09-06T04:58:21.948877+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_layer_progress", "sensor.octoprint_height_progress"], "fields": ["state", "attributes"], "attribute_keys": ["current", "total"]}, "execution_time_ms": 5.017280578613281, "success": true, "error_message": null, "response_size_bytes": 615, "user_context": null}
{"timestamp": "2026-09-06T04:58:38.471434+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "c = config['views'][0]['sections'][1]['cards']\nc.insert(5, {\"type\":\"custom:mushroom-template-card\",\"primary\":\"{% set c = states('sensor.octoprint_layer_progress') | int(0) %}{% set t = state_attr('sensor.octoprint_layer_progress', 'total') | int(0) %}Layer: {{ c }} of {{ t }}\",\"name\":\"Layer\",\"icon\":\"mdi:layers\",\"grid_options\":{\"columns\":6}})\nc.insert(6, {\"type\":\"custom:mushroom-template-card\",\"primary\":\"{% set c = states('sensor.octoprint_height_progress') | float(0) %}{% set t = state_attr('sensor.octoprint_height_progress', 'total') | float(0) %}Height: {{ c | round(1) }} / {{ t | round(1) }} mm\",\"name\":\"Height\",\"icon\":\"mdi:axis-z-arrow\",\"grid_options\":{\"columns\":6}})", "config_hash": "786ba374677018db", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": true, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 55.315256118774414, "success": true, "error_message": null, "response_size_bytes": 30913, "user_context": null}
+18
View File
@@ -151,6 +151,24 @@
"columns": 6
}
},
{
"type": "custom:mushroom-template-card",
"primary": "{% set c = states('sensor.octoprint_layer_progress') | int(0) %}{% set t = state_attr('sensor.octoprint_layer_progress', 'total') | int(0) %}Layer: {{ c }} of {{ t }}",
"name": "Layer",
"icon": "mdi:layers",
"grid_options": {
"columns": 6
}
},
{
"type": "custom:mushroom-template-card",
"primary": "{% set c = states('sensor.octoprint_height_progress') | float(0) %}{% set t = state_attr('sensor.octoprint_height_progress', 'total') | float(0) %}Height: {{ c | round(1) }} / {{ t | round(1) }} mm",
"name": "Height",
"icon": "mdi:axis-z-arrow",
"grid_options": {
"columns": 6
}
},
{
"type": "tile",
"entity": "light.3d_printer_lights_local",