.ha_mcp/logs/mcp_usage.jsonl, .storage/lovelace.printer_stats
This commit is contained in:
@@ -568,6 +568,10 @@
|
||||
"heading": "Print History",
|
||||
"icon": "mdi:history"
|
||||
},
|
||||
{
|
||||
"type": "markdown",
|
||||
"content": "**Successful:** {{ states('sensor.octoprint_successful_prints_count') }} | **Failed:** {{ states('sensor.octoprint_failed_prints_count') }}"
|
||||
},
|
||||
{
|
||||
"type": "history-graph",
|
||||
"title": "Printing State (7 days)",
|
||||
@@ -647,6 +651,11 @@
|
||||
"span": {
|
||||
"end": "day"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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 %}"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -710,6 +719,17 @@
|
||||
"duration": "1d",
|
||||
"start_with_last": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"entity": "sensor.octoprint_filament_weekly",
|
||||
"name": "Weekly (mm)",
|
||||
"color": "#ffca28",
|
||||
"type": "column",
|
||||
"group_by": {
|
||||
"func": "last",
|
||||
"duration": "1d",
|
||||
"start_with_last": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"grid_options": {
|
||||
@@ -720,6 +740,41 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "grid",
|
||||
"cards": [
|
||||
{
|
||||
"type": "heading",
|
||||
"heading": "OctoPrint Host",
|
||||
"icon": "mdi:server"
|
||||
},
|
||||
{
|
||||
"type": "tile",
|
||||
"entity": "sensor.octoprint_disk_usage",
|
||||
"icon": "mdi:harddisk"
|
||||
},
|
||||
{
|
||||
"type": "tile",
|
||||
"entity": "sensor.octoprint_cpu_usage",
|
||||
"icon": "mdi:cpu-64-bit"
|
||||
},
|
||||
{
|
||||
"type": "tile",
|
||||
"entity": "sensor.octoprint_memory_usage",
|
||||
"icon": "mdi:memory"
|
||||
},
|
||||
{
|
||||
"type": "tile",
|
||||
"entity": "sensor.octoprint_core_0_temperature",
|
||||
"icon": "mdi:thermometer"
|
||||
},
|
||||
{
|
||||
"type": "tile",
|
||||
"entity": "sensor.octoprint_uptime",
|
||||
"icon": "mdi:clock-outline"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user