opencode/decisions.yaml, zigbee2mqtt/state.json
This commit is contained in:
@@ -1018,3 +1018,26 @@ notes:
|
|||||||
- spoolman
|
- spoolman
|
||||||
pin: true
|
pin: true
|
||||||
status: active
|
status: active
|
||||||
|
- id: 2026-10-12-sparkx-i7-cancel-error-deduct-filament
|
||||||
|
date: 2026-10-12
|
||||||
|
title: SparkX i7 cancel/error deduct filament but leave last-job helpers
|
||||||
|
decision: SparkX i7 cancellation (stopped) and error prints now also deduct the used
|
||||||
|
filament from Spoolman, not just completed ones. Cancel/error intentionally do NOT
|
||||||
|
update input_number.sparkx_i7_last_job_filament_weight / _last_job_cost — those stay
|
||||||
|
on the last completed print (dashboard "last job" cards).
|
||||||
|
rationale: "The cancel path is printing → processing → stopped, so the old from: printing
|
||||||
|
trigger never fired and the pending filament was never deducted. The new
|
||||||
|
stopped/error triggers are gated on a non-empty latch so they only run for a real
|
||||||
|
in-progress print. Last-job helpers were deliberately left complete-only (option A)
|
||||||
|
so the idle dashboard cards keep meaning the last completed print rather than a
|
||||||
|
partial cancelled one."
|
||||||
|
entities:
|
||||||
|
- input_number.sparkx_i7_last_job_filament_weight
|
||||||
|
- input_number.sparkx_i7_last_job_cost
|
||||||
|
- input_text.sparkx_i7_print_spool_latch
|
||||||
|
- input_number.sparkx_i7_slot_1_grams
|
||||||
|
files:
|
||||||
|
- automations.yaml
|
||||||
|
integrations:
|
||||||
|
- spoolman
|
||||||
|
status: active
|
||||||
|
|||||||
+13
-13
@@ -4,7 +4,7 @@
|
|||||||
"state": "ON",
|
"state": "ON",
|
||||||
"led_brightness": 100,
|
"led_brightness": 100,
|
||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"voltage": 121.6,
|
"voltage": 121.7,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"power_factor": 0.13,
|
"power_factor": 0.13,
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
"led_brightness": 100,
|
"led_brightness": 100,
|
||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"power": 1.9,
|
"power": 2,
|
||||||
"current": 0.1,
|
"current": 0.1,
|
||||||
"energy": 54.9,
|
"energy": 54.9,
|
||||||
"power_factor": 0.16,
|
"power_factor": 0.16,
|
||||||
@@ -45,10 +45,10 @@
|
|||||||
"state": "ON",
|
"state": "ON",
|
||||||
"led_brightness": 100,
|
"led_brightness": 100,
|
||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"voltage": 121.8,
|
"voltage": 121.7,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"energy": 106.57,
|
"energy": 106.57,
|
||||||
"power_factor": 0.2,
|
"power_factor": 0.3,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
@@ -74,13 +74,13 @@
|
|||||||
"led_brightness": 100,
|
"led_brightness": 100,
|
||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"voltage": 119.9,
|
"voltage": 120,
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"energy": 216.6,
|
"energy": 216.6,
|
||||||
"power": 94.9,
|
"power": 1.6,
|
||||||
"current": 0.84,
|
"current": 0.05,
|
||||||
"power_factor": 0.94,
|
"power_factor": 0.38,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
"installed_version": 268513381,
|
"installed_version": 268513381,
|
||||||
@@ -98,7 +98,7 @@
|
|||||||
"voltage": 121.9,
|
"voltage": 121.9,
|
||||||
"energy": 102.22,
|
"energy": 102.22,
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"power": 26.6,
|
"power": 24.3,
|
||||||
"current": 0.36,
|
"current": 0.36,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"power_factor": 0.7,
|
"power_factor": 0.7,
|
||||||
@@ -114,12 +114,12 @@
|
|||||||
},
|
},
|
||||||
"0xffffb40e060895b3": {
|
"0xffffb40e060895b3": {
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"voltage": 121.4,
|
"voltage": 121.8,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"energy": 14.92,
|
"energy": 14.92,
|
||||||
"current": 0.02,
|
"current": 0.02,
|
||||||
"power": 0.1,
|
"power": 0.1,
|
||||||
"power_factor": 0.11,
|
"power_factor": 0.22,
|
||||||
"linkquality": 116,
|
"linkquality": 116,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
@@ -136,7 +136,7 @@
|
|||||||
"0xffffb40e0608864e": {
|
"0xffffb40e0608864e": {
|
||||||
"led_brightness": 100,
|
"led_brightness": 100,
|
||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"voltage": 121.2,
|
"voltage": 121.9,
|
||||||
"energy": 36.31,
|
"energy": 36.31,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
@@ -171,7 +171,7 @@
|
|||||||
},
|
},
|
||||||
"0xa4c1380d0679ffff": {
|
"0xa4c1380d0679ffff": {
|
||||||
"battery": 100,
|
"battery": 100,
|
||||||
"temperature": 17.7,
|
"temperature": 17.8,
|
||||||
"temperature_units": "celsius",
|
"temperature_units": "celsius",
|
||||||
"temperature_calibration": 0,
|
"temperature_calibration": 0,
|
||||||
"update": {
|
"update": {
|
||||||
|
|||||||
Reference in New Issue
Block a user