diff --git a/opencode/decisions.yaml b/opencode/decisions.yaml index 627d27c5..4860c0b8 100644 --- a/opencode/decisions.yaml +++ b/opencode/decisions.yaml @@ -1018,3 +1018,26 @@ notes: - spoolman pin: true 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 diff --git a/zigbee2mqtt/state.json b/zigbee2mqtt/state.json index dc66c027..857c490a 100644 --- a/zigbee2mqtt/state.json +++ b/zigbee2mqtt/state.json @@ -4,7 +4,7 @@ "state": "ON", "led_brightness": 100, "countdown_to_turn_off": 0, - "voltage": 121.6, + "voltage": 121.7, "countdown_to_turn_on": 0, "ac_frequency": 60, "power_factor": 0.13, @@ -27,7 +27,7 @@ "led_brightness": 100, "countdown_to_turn_off": 0, "countdown_to_turn_on": 0, - "power": 1.9, + "power": 2, "current": 0.1, "energy": 54.9, "power_factor": 0.16, @@ -45,10 +45,10 @@ "state": "ON", "led_brightness": 100, "countdown_to_turn_off": 0, - "voltage": 121.8, + "voltage": 121.7, "countdown_to_turn_on": 0, "energy": 106.57, - "power_factor": 0.2, + "power_factor": 0.3, "ac_frequency": 60, "update": { "state": "idle", @@ -74,13 +74,13 @@ "led_brightness": 100, "countdown_to_turn_off": 0, "countdown_to_turn_on": 0, - "voltage": 119.9, + "voltage": 120, "state": "ON", "ac_frequency": 60, "energy": 216.6, - "power": 94.9, - "current": 0.84, - "power_factor": 0.94, + "power": 1.6, + "current": 0.05, + "power_factor": 0.38, "update": { "state": "idle", "installed_version": 268513381, @@ -98,7 +98,7 @@ "voltage": 121.9, "energy": 102.22, "state": "ON", - "power": 26.6, + "power": 24.3, "current": 0.36, "ac_frequency": 60, "power_factor": 0.7, @@ -114,12 +114,12 @@ }, "0xffffb40e060895b3": { "state": "ON", - "voltage": 121.4, + "voltage": 121.8, "ac_frequency": 60, "energy": 14.92, "current": 0.02, "power": 0.1, - "power_factor": 0.11, + "power_factor": 0.22, "linkquality": 116, "update": { "state": "idle", @@ -136,7 +136,7 @@ "0xffffb40e0608864e": { "led_brightness": 100, "countdown_to_turn_off": 0, - "voltage": 121.2, + "voltage": 121.9, "energy": 36.31, "countdown_to_turn_on": 0, "state": "ON", @@ -171,7 +171,7 @@ }, "0xa4c1380d0679ffff": { "battery": 100, - "temperature": 17.7, + "temperature": 17.8, "temperature_units": "celsius", "temperature_calibration": 0, "update": {