opencode/decisions.yaml
This commit is contained in:
+15
-10
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user