diff --git a/opencode/decisions.yaml b/opencode/decisions.yaml index 4860c0b8..fe1cb5a6 100644 --- a/opencode/decisions.yaml +++ b/opencode/decisions.yaml @@ -1041,3 +1041,28 @@ notes: integrations: - spoolman 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. + 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 + - input_number.sparkx_i7_slot_1_grams + - input_number.sparkx_i7_slot_2_grams + - input_number.sparkx_i7_slot_3_grams + - input_number.sparkx_i7_slot_4_grams + files: + - automations.yaml + integrations: + - spoolman + status: active