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

This commit is contained in:
Home Assistant Version Control
2026-09-07 15:13:17 +00:00
parent 6bd5357764
commit df75e4669a
2 changed files with 14 additions and 6 deletions
+12 -6
View File
@@ -128,21 +128,25 @@
},
{
"type": "custom:mushroom-template-card",
"primary": "{% set s = states('sensor.octoprint_elapsed') | float(0) %}{% set h = (s / 3600) | int %}{% set m = ((s % 3600) / 60) | int %}Elapsed: {% if h %}{{ h }} hr {{ m }} min{% else %}{{ m }} min{% endif %}",
"primary": "Elapsed",
"name": "Elapsed",
"icon": "mdi:clock-start",
"grid_options": {
"columns": 6
}
},
"multiline_secondary": true,
"secondary": "{% set s = states('sensor.octoprint_elapsed') | float(0) %}{% set h = (s / 3600) | int %}{% set m = ((s % 3600) / 60) | int %}{% if h %}{{ h }} hr {{ m }} min{% else %}{{ m }} min{% endif %}"
},
{
"type": "custom:mushroom-template-card",
"primary": "{% set s = states('sensor.octoprint_time_left') | float(-1) %}{% if s <= 0 %}Remaining: No estimate{% else %}{% set h = (s / 3600) | int %}{% set m = ((s % 3600) / 60) | int %}Remain: {% if h %}{{ h }} hr {{ m }} min{% else %}{{ m }} min{% endif %}{% endif %}",
"primary": "Remaining",
"name": "Remaining",
"icon": "mdi:clock-end",
"grid_options": {
"columns": 6
}
},
"multiline_secondary": true,
"secondary": "{% set s = states('sensor.octoprint_time_left') | float(-1) %}{% if s <= 0 %}No estimate{% else %}{% set h = (s / 3600) | int %}{% set m = ((s % 3600) / 60) | int %}{% if h %}{{ h }} hr {{ m }} min{% else %}{{ m }} min{% endif %}{% endif %}"
},
{
"type": "markdown",
@@ -153,12 +157,14 @@
},
{
"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 }}",
"primary": "Layer",
"name": "Layer",
"icon": "mdi:layers",
"grid_options": {
"columns": 6
}
},
"multiline_secondary": true,
"secondary": "{% set c = states('sensor.octoprint_layer_progress') | int(0) %}{% set t = state_attr('sensor.octoprint_layer_progress', 'total') | int(0) %}{{ c }} of {{ t }}"
},
{
"type": "custom:mushroom-template-card",