From 6832b08d4018abb8ea33f6903443b30dcfacc745 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Mon, 12 Oct 2026 16:54:54 +0000 Subject: [PATCH] opencode/decisions.yaml --- opencode/decisions.yaml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/opencode/decisions.yaml b/opencode/decisions.yaml index a23f1448..b2cd895d 100644 --- a/opencode/decisions.yaml +++ b/opencode/decisions.yaml @@ -1044,20 +1044,24 @@ notes: status: active - id: 2026-10-12-sparkx-i7-last-job-and-notification date: 2026-10-12 - title: SparkX i7 last-job and notification report the whole print - decision: SparkX i7 print-complete automation (1791477238729) computes the last-job - helpers and the completion notification from summary_total (sum of the per-slot - accumulators), so a multi-colour print reports the whole print, not just the last - colour segment. Slot index is parsed with old_slot.split('_')[-1]. - rationale: The latch automation (1791477238762) accumulates each colour segment into - input_number.sparkx_i7_slot_N_grams; the completion adds the final segment, then - sums them plus nonhelper_g. An earlier split(' ') bug left helper_idx empty, so the - total and last-job equalled only the final segment (12.02 g instead of the real 59.4 - g). Do not revert to split(' ') or to per-segment last-job values. + title: SparkX i7 last-job helpers persist and report the whole print + decision: SparkX i7 last-job grams/cost live in + input_number.sparkx_i7_last_job_filament_weight and + input_number.sparkx_i7_last_job_cost (dashboard Filament cards read them when idle), + written by print-complete automation (1791477238729). Values are the WHOLE print — + summary_total, the sum of the per-slot accumulators — not just the last colour + segment. + rationale: sensor.sparkx_i7_used_material_length is a per-job counter (resets to 0 at + completion), so derived templates read 0 when idle; the helpers keep the last job + across restarts. The latch automation (1791477238762) accumulates each colour segment + into input_number.sparkx_i7_slot_N_grams; the completion adds the final segment and + sums them. A split(' ') bug left helper_idx empty, so total and last-job equalled only + the last segment (12.02 g, not 59.4 g). Do not revert. entities: - input_number.sparkx_i7_last_job_filament_weight - input_number.sparkx_i7_last_job_cost - automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete + - sensor.sparkx_i7_used_material_length - input_number.sparkx_i7_slot_1_grams - input_number.sparkx_i7_slot_2_grams - input_number.sparkx_i7_slot_3_grams @@ -1066,4 +1070,5 @@ notes: - automations.yaml integrations: - spoolman + pin: true status: active