From 0290d1d268b1b783de23df4443c4b0f16b8370fd Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Sun, 6 Sep 2026 06:26:34 +0000 Subject: [PATCH] opencode/decisions.yaml --- opencode/decisions.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/opencode/decisions.yaml b/opencode/decisions.yaml index f86375ba..11cd8768 100644 --- a/opencode/decisions.yaml +++ b/opencode/decisions.yaml @@ -774,3 +774,24 @@ notes: - zigbee2mqtt - matter status: active + - id: 2026-09-06-octoprint-height-widget-uses-clean + date: 2026-09-06 + title: OctoPrint height widget uses clean template sensor, not raw REST sensor + decision: OctoPrint height widget must point at sensor.octoprint_height_progress_clean. Do + not delete this template sensor or repoint the widget to the raw REST sensor — its + float32 total attribute and display_precision 0 default round the widget display. + rationale: Widget shows state + total attribute in one tile. The REST sensor's total + attribute is a float32 artifact (75.5999984741211) from the DisplayLayerProgress + plugin JSON and cannot be transformed at source; its display_precision 0 default + rounds the widget current value up (85.6 -> 86). The YAML template sensor + (configuration.yaml template block) re-exposes state and total rounded to 1 decimal, + with its own display_precision set to 1. + entities: + - sensor.octoprint_height_progress_clean + - sensor.octoprint_height_progress + files: + - configuration.yaml + integrations: + - rest + - template + status: active