.ha_mcp/logs/mcp_usage.jsonl, .storage/lovelace.printer_stats
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
},
|
||||
{
|
||||
"type": "markdown",
|
||||
"content": "**File:** {{ states('sensor.octoprint_print_file') }}\n**Size:** {{ (states('sensor.octoprint_print_file_size') | int(0) / 1024) | round(1) }} KB\n**User:** {{ states('sensor.octoprint_print_user') }}",
|
||||
"content": "**File:** {{ states('sensor.octoprint_print_file') }}\n**Size:** {{ (states('sensor.octoprint_print_file_size') | int(0) / 1048576) | round(1) }} MB\n**User:** {{ states('sensor.octoprint_print_user') }}",
|
||||
"grid_options": {
|
||||
"columns": "full"
|
||||
}
|
||||
@@ -126,7 +126,7 @@
|
||||
},
|
||||
{
|
||||
"type": "custom:mushroom-template-card",
|
||||
"primary": "{% set s = states('sensor.octoprint_time_left') | float(0) %}{% set h = (s / 3600) | int %}{% set m = ((s % 3600) / 60) | int %}Remaining: {% if h %}{{ h }} hr {{ m }} min{% else %}{{ m }} min{% endif %}",
|
||||
"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 %}Remaining: {% if h %}{{ h }} hr {{ m }} min{% else %}{{ m }} min{% endif %}{% endif %}",
|
||||
"name": "Remaining",
|
||||
"icon": "mdi:clock-end",
|
||||
"grid_options": {
|
||||
|
||||
Reference in New Issue
Block a user