From 929d37b9929688974a8e5ac21909e95e78907b33 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Fri, 7 Aug 2026 14:04:24 +0000 Subject: [PATCH] opencode/decisions.yaml --- opencode/decisions.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/opencode/decisions.yaml b/opencode/decisions.yaml index 3862f47..7d5e2f9 100644 --- a/opencode/decisions.yaml +++ b/opencode/decisions.yaml @@ -156,4 +156,29 @@ notes: integrations: - octoprint - template + status: superseded + superseded_by: 2026-08-07-octoprint-frozen-sensors-shown-via-idle-2 + - id: 2026-08-07-octoprint-frozen-sensors-shown-via-idle-2 + date: 2026-08-07 + title: OctoPrint frozen sensors shown via idle-zero template helpers + decision: "OctoPrint duration sensors freeze when idle. The /printer-stats dashboard uses + template helpers (sensor.octoprint_elapsed, sensor.octoprint_time_left) reporting 0 + while printing is off. Current Z stays on the raw sensor: the nozzle physically + remains at its height when idle." + rationale: "Elapsed and time-left are durations tied to a running print, so 0 while idle + is correct. Current Z is a physical position that persists — zeroing it would + falsely claim the nozzle is at the build plate. Helper template: {{ 0 if not + is_state('binary_sensor.octoprint_printing','on') else states('')|float }}. + An earlier Z helper (octoprint_current_z_2) was created then deleted after this + distinction was realized." + entities: + - sensor.octoprint_elapsed + - sensor.octoprint_time_left + - binary_sensor.octoprint_printing + - sensor.octoprint_print_time + - sensor.octoprint_print_time_left + - sensor.octoprint_current_z + integrations: + - octoprint + - template status: active