From c2630098e0b61da5a8ba3cfc1ba96b34ab1a010f Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Fri, 7 Aug 2026 04:32:07 +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 c25cea3..f7ee52b 100644 --- a/opencode/decisions.yaml +++ b/opencode/decisions.yaml @@ -87,3 +87,27 @@ notes: - octoprint - mqtt status: active + - id: 2026-08-07-printer-totals-history-stats-via-config + date: 2026-08-07 + title: "Printer totals: history_stats via config flow (HA 2026.8: no YAML)" + decision: Print totals (print time + counts, today/week/7d) are history_stats config-flow + helpers (sensor.octoprint_printer_*), shown in the Totals section of the + printer-stats/print dashboard. history_stats no longer supports YAML in HA 2026.8 — + create helpers via config flow/UI only, never a configuration.yaml entry. + rationale: Session paused 2026-08-06 to continue later. YAML history_stats was rejected by + core with "history_stats does not support YAML setup", so all six sensors were + created via config flow and verified live; the Totals dashboard section is committed + (config hash 57e4ba20d169bbf3, render path printer-stats/print). Config-flow helpers + need no restart. + entities: + - sensor.octoprint_printer_print_time_today + - sensor.octoprint_printer_print_time_this_week + - sensor.octoprint_printer_print_time_last_7_days + - sensor.octoprint_printer_prints_today + - sensor.octoprint_printer_prints_this_week + - sensor.octoprint_printer_prints_last_7_days + integrations: + - history_stats + - octoprint + - mqtt + status: active