opencode/decisions.yaml, zigbee2mqtt/state.json
This commit is contained in:
@@ -942,3 +942,21 @@ notes:
|
||||
- telegram_bot
|
||||
pin: true
|
||||
status: active
|
||||
- id: 2026-10-11-sparkx-i7-last-job-grams-cost-persist
|
||||
date: 2026-10-11
|
||||
title: SparkX i7 last-job grams/cost persist in two input_number helpers
|
||||
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, written by the print-complete automation
|
||||
(1791477238729) on every printing→completed transition. Sparkx-i7 dashboard Filament
|
||||
cards read these helpers when idle.
|
||||
rationale: sensor.sparkx_i7_used_material_length is a per-job counter that resets to 0.0
|
||||
at job completion, so the derived weight/cost template sensors read 0/$0.00 when
|
||||
idle and live values vanish at job end. Persisting to input_number helpers preserves
|
||||
the last job's real values; input_number restores state across HA restarts.
|
||||
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
|
||||
status: active
|
||||
|
||||
Reference in New Issue
Block a user