From 77d14dcdd6233cf6ba094c654d28e54b777b0f67 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Fri, 7 Aug 2026 14:02:52 +0000 Subject: [PATCH] opencode/decisions.yaml --- opencode/decisions.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/opencode/decisions.yaml b/opencode/decisions.yaml index 6aca19a..3862f47 100644 --- a/opencode/decisions.yaml +++ b/opencode/decisions.yaml @@ -133,3 +133,27 @@ notes: - mqtt - octoprint status: active + - id: 2026-08-07-octoprint-frozen-sensors-shown-via-idle + date: 2026-08-07 + title: OctoPrint frozen sensors shown via idle-zero template helpers + decision: OctoPrint sensors freeze at last-print values when idle. The /printer-stats + dashboard uses template helpers (sensor.octoprint_elapsed, + sensor.octoprint_time_left, sensor.octoprint_current_z_2) reporting 0 while printing + is off. Keep cards on helpers; raw sensors stay intact. + rationale: "While idle the raw sensors freeze at end-of-print values (elapsed 6661s, + current Z 26.8mm), looking like a mid-print and producing stale charts. Helper + template: {{ 0 if not is_state('binary_sensor.octoprint_printing','on') else + states('')|float }}. The Current Z helper got _2 suffix because its friendly + name collided with the raw sensor's slug." + entities: + - sensor.octoprint_elapsed + - sensor.octoprint_time_left + - sensor.octoprint_current_z_2 + - binary_sensor.octoprint_printing + - sensor.octoprint_print_time + - sensor.octoprint_print_time_left + - sensor.octoprint_current_z + integrations: + - octoprint + - template + status: active