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

This commit is contained in:
Home Assistant Version Control
2026-09-07 15:14:08 +00:00
parent 2d97f39b88
commit 2fa374885a
2 changed files with 6 additions and 2 deletions
+5 -2
View File
@@ -149,8 +149,11 @@
"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",
"content": "{% set finish = states('sensor.octoprint_approximate_completion_time') | as_datetime %}{% if finish %}<ha-icon icon='mdi:clock-outline'></ha-icon> **Est. finish:** {{ (as_local(finish)).strftime('%I:%M %p').lstrip('0') }}{% else %}<ha-icon icon='mdi:clock-outline'></ha-icon> **Est. finish:** —{% endif %}",
"type": "custom:mushroom-template-card",
"primary": "Est. Finish",
"secondary": "{% set finish = states('sensor.octoprint_approximate_completion_time') | as_datetime %}{% if finish %}{{ (as_local(finish)).strftime('%I:%M %p').lstrip('0') }}{% else %}—{% endif %}",
"multiline_secondary": true,
"icon": "mdi:clock-outline",
"grid_options": {
"columns": 6
}