opencode/decisions.yaml
This commit is contained in:
+15
-10
@@ -1044,20 +1044,24 @@ notes:
|
|||||||
status: active
|
status: active
|
||||||
- id: 2026-10-12-sparkx-i7-last-job-and-notification
|
- id: 2026-10-12-sparkx-i7-last-job-and-notification
|
||||||
date: 2026-10-12
|
date: 2026-10-12
|
||||||
title: SparkX i7 last-job and notification report the whole print
|
title: SparkX i7 last-job helpers persist and report the whole print
|
||||||
decision: SparkX i7 print-complete automation (1791477238729) computes the last-job
|
decision: SparkX i7 last-job grams/cost live in
|
||||||
helpers and the completion notification from summary_total (sum of the per-slot
|
input_number.sparkx_i7_last_job_filament_weight and
|
||||||
accumulators), so a multi-colour print reports the whole print, not just the last
|
input_number.sparkx_i7_last_job_cost (dashboard Filament cards read them when idle),
|
||||||
colour segment. Slot index is parsed with old_slot.split('_')[-1].
|
written by print-complete automation (1791477238729). Values are the WHOLE print —
|
||||||
rationale: The latch automation (1791477238762) accumulates each colour segment into
|
summary_total, the sum of the per-slot accumulators — not just the last colour
|
||||||
input_number.sparkx_i7_slot_N_grams; the completion adds the final segment, then
|
segment.
|
||||||
sums them plus nonhelper_g. An earlier split(' ') bug left helper_idx empty, so the
|
rationale: sensor.sparkx_i7_used_material_length is a per-job counter (resets to 0 at
|
||||||
total and last-job equalled only the final segment (12.02 g instead of the real 59.4
|
completion), so derived templates read 0 when idle; the helpers keep the last job
|
||||||
g). Do not revert to split(' ') or to per-segment last-job values.
|
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:
|
entities:
|
||||||
- input_number.sparkx_i7_last_job_filament_weight
|
- input_number.sparkx_i7_last_job_filament_weight
|
||||||
- input_number.sparkx_i7_last_job_cost
|
- input_number.sparkx_i7_last_job_cost
|
||||||
- automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete
|
- 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_1_grams
|
||||||
- input_number.sparkx_i7_slot_2_grams
|
- input_number.sparkx_i7_slot_2_grams
|
||||||
- input_number.sparkx_i7_slot_3_grams
|
- input_number.sparkx_i7_slot_3_grams
|
||||||
@@ -1066,4 +1070,5 @@ notes:
|
|||||||
- automations.yaml
|
- automations.yaml
|
||||||
integrations:
|
integrations:
|
||||||
- spoolman
|
- spoolman
|
||||||
|
pin: true
|
||||||
status: active
|
status: active
|
||||||
|
|||||||
Reference in New Issue
Block a user