diff --git a/opencode/decisions.yaml b/opencode/decisions.yaml index 44e8633d..866be8fb 100644 --- a/opencode/decisions.yaml +++ b/opencode/decisions.yaml @@ -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 diff --git a/zigbee2mqtt/state.json b/zigbee2mqtt/state.json index 2690e660..732ba1c2 100644 --- a/zigbee2mqtt/state.json +++ b/zigbee2mqtt/state.json @@ -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.67, "power_factor": 0.17, @@ -45,7 +45,7 @@ "state": "ON", "led_brightness": 100, "countdown_to_turn_off": 0, - "voltage": 122, + "voltage": 122.5, "countdown_to_turn_on": 0, "energy": 105.78, "power_factor": 0.2, @@ -77,8 +77,8 @@ "voltage": 120.3, "state": "ON", "ac_frequency": 60, - "energy": 215.11, - "power": 104.8, + "energy": 215.12, + "power": 101.3, "current": 0.96, "power_factor": 0.94, "update": { @@ -95,11 +95,11 @@ "led_brightness": 100, "countdown_to_turn_off": 0, "countdown_to_turn_on": 0, - "voltage": 122.2, + "voltage": 122.7, "energy": 101.7, "state": "ON", - "power": 21.9, - "current": 0.35, + "power": 21.5, + "current": 0.32, "ac_frequency": 60, "power_factor": 0.61, "update": { @@ -114,7 +114,7 @@ }, "0xffffb40e060895b3": { "state": "ON", - "voltage": 122.5, + "voltage": 122.6, "ac_frequency": 60, "energy": 14.73, "current": 0.01, @@ -136,14 +136,14 @@ "0xffffb40e0608864e": { "led_brightness": 100, "countdown_to_turn_off": 0, - "voltage": 122.4, + "voltage": 122.1, "energy": 36.3, "countdown_to_turn_on": 0, "state": "ON", "current": 0.02, "ac_frequency": 60, "power": 0.4, - "power_factor": 0.18, + "power_factor": 0.2, "update": { "state": "idle", "installed_version": 268513381, @@ -171,7 +171,7 @@ }, "0xa4c1380d0679ffff": { "battery": 100, - "temperature": 20.1, + "temperature": 19.9, "temperature_units": "celsius", "temperature_calibration": 0, "update": {