diff --git a/opencode/decisions.yaml b/opencode/decisions.yaml index ffd86aa0..e1ce83f2 100644 --- a/opencode/decisions.yaml +++ b/opencode/decisions.yaml @@ -795,7 +795,8 @@ notes: integrations: - rest - template - status: active + status: superseded + superseded_by: 2026-09-06-octoprint-height-widget-uses-clean-2 - id: 2026-09-06-nest-snapshot-custom-integration date: 2026-09-06 title: nest_snapshot custom integration abandoned @@ -814,3 +815,25 @@ notes: integrations: - nest_snapshot status: active + - id: 2026-09-06-octoprint-height-widget-uses-clean-2 + 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 + pin: true + status: active