From 835877edcf0b8579c8316e5bad01fe89ec6c7d2e Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Thu, 24 Sep 2026 01:55:21 +0000 Subject: [PATCH] 4 files --- .../dashboard.sparkx-i7.20260924_015513.yaml | 332 ++++++++++++++++++ .ha_mcp/logs/mcp_usage.jsonl | 2 + .storage/lovelace.sparkx_i7 | 20 +- zigbee2mqtt/state.json | 26 +- 4 files changed, 363 insertions(+), 17 deletions(-) create mode 100644 .ha_mcp/backups/dashboard.sparkx-i7.20260924_015513.yaml diff --git a/.ha_mcp/backups/dashboard.sparkx-i7.20260924_015513.yaml b/.ha_mcp/backups/dashboard.sparkx-i7.20260924_015513.yaml new file mode 100644 index 00000000..16b77a23 --- /dev/null +++ b/.ha_mcp/backups/dashboard.sparkx-i7.20260924_015513.yaml @@ -0,0 +1,332 @@ +# ha_mcp_backup +schema_version: 1 +domain: dashboard +entity_id: sparkx-i7 +captured: '2026-09-24T01:55:13.613039+00:00' +tool: ha_config_set_dashboard +config: + views: + - max_columns: 4 + path: print + sections: + - cards: + - heading: Printer Status + icon: mdi:printer-3d-nozzle + type: heading + - grid_options: + columns: full + type: custom:webrtc-camera + ui: true + url: octoprint + - show_state: true + show_name: true + camera_view: live + fit_mode: cover + type: picture-entity + entity: camera.sparkx_i7_printer_camera + camera_image: camera.sparkx_i7_printer_camera + grid_options: + columns: full + - grid_options: + columns: full + type: custom:webrtc-camera + ui: true + url: creality_k2_192_168_1_233 + - entity: sensor.sparkx_i7_print_status + grid_options: + columns: 6 + icon: mdi:state-machine + name: Status + type: tile + - entity: sensor.sparkx_i7_position_z + grid_options: + columns: 6 + icon: mdi:axis-z-arrow + name: Current Z + type: tile + type: grid + - cards: + - heading: Print Progress + icon: mdi:progress-clock + type: heading + - entity: sensor.sparkx_i7_print_progress + grid_options: + columns: 6 + rows: 3 + max: 100 + min: 0 + name: Progress + severity: + green: 0 + red: 90 + yellow: 40 + type: gauge + unit: '%' + - grid_options: + columns: 6 + icon: mdi:clock-start + multiline_secondary: true + name: Elapsed + primary: Elapsed + secondary: '{% set s = states(''sensor.sparkx_i7_print_job_time'') | float(0) + %}{% set h = (s / 3600) | int %}{% set m = ((s % 3600) / 60) | int %}{% + if h %}{{ h }} hr {{ m }} min{% else %}{{ m }} min{% endif %}' + type: custom:mushroom-template-card + - grid_options: + columns: 6 + icon: mdi:clock-end + multiline_secondary: true + name: Remaining + primary: Remaining + secondary: '{% set s = states(''sensor.sparkx_i7_print_time_left'') | float(-1) + %}{% if s <= 0 %}No estimate{% else %}{% set h = (s / 3600) | int %}{% set + m = ((s % 3600) / 60) | int %}{% if h %}{{ h }} hr {{ m }} min{% else %}{{ + m }} min{% endif %}{% endif %}' + type: custom:mushroom-template-card + - grid_options: + columns: 6 + icon: mdi:clock-outline + multiline_secondary: true + primary: Est. Finish + secondary: "{% set left = states('sensor.sparkx_i7_print_time_left') | int(0)\ + \ %}{% if left > 0 %}{{ (now() + timedelta(seconds=left)).strftime('%I:%M\ + \ %p').lstrip('0') }}{% else %}\u2014{% endif %}" + type: custom:mushroom-template-card + - grid_options: + columns: 6 + icon: mdi:layers + multiline_secondary: true + name: Layer + primary: Layer + secondary: '{% set c = states(''sensor.sparkx_i7_working_layer'') | int(0) + %}{% set t = states(''sensor.sparkx_i7_total_layers'') | int(0) %}{{ c }} + of {{ t }}' + type: custom:mushroom-template-card + - entity: light.sparkx_i7_light + grid_options: + columns: 6 + icon: mdi:lightbulb + name: Printer Light + type: tile + - detail: 1 + entity: sensor.sparkx_i7_print_progress + graph: line + grid_options: + columns: full + hours_to_show: 24 + name: Progress History + type: sensor + type: grid + - cards: + - heading: Temperatures + icon: mdi:thermometer + type: heading + - entity: sensor.sparkx_i7_nozzle_temperature + grid_options: + columns: 4 + max: 300 + min: 0 + name: Nozzle + severity: + green: 0 + red: 240 + yellow: 180 + type: gauge + unit: "\xB0C" + - entity: sensor.sparkx_i7_bed_temperature + grid_options: + columns: 4 + max: 100 + min: 0 + name: Bed + severity: + green: 0 + red: 100 + yellow: 60 + type: gauge + unit: "\xB0C" + - entity: number.sparkx_i7_nozzle_target + grid_options: + columns: 6 + icon: mdi:printer-3d-nozzle + name: Nozzle Target + type: tile + - entity: number.sparkx_i7_bed_target + grid_options: + columns: 6 + icon: mdi:radiator + name: Bed Target + type: tile + - entities: + - color: '#ef5350' + entity: sensor.sparkx_i7_nozzle_temperature + name: Actual + - color: '#4caf50' + entity: number.sparkx_i7_nozzle_target + name: Target + expand_legend: true + grid_options: + columns: full + hours_to_show: 24 + show_names: true + title: Nozzle Temperature + type: history-graph + - entities: + - color: '#42a5f5' + entity: sensor.sparkx_i7_bed_temperature + name: Actual + - color: '#4caf50' + entity: number.sparkx_i7_bed_target + name: Target + expand_legend: true + grid_options: + columns: full + hours_to_show: 24 + show_names: true + title: Bed Temperature + type: history-graph + type: grid + - cards: + - heading: Controls + icon: mdi:gesture-tap-button + type: heading + - entity: button.sparkx_i7_pause_print + grid_options: + columns: 4 + icon: mdi:pause + name: Pause + tap_action: + action: perform-action + perform_action: button.press + target: + entity_id: button.sparkx_i7_pause_print + type: tile + - entity: button.sparkx_i7_resume_print + grid_options: + columns: 4 + icon: mdi:play + name: Resume + tap_action: + action: perform-action + perform_action: button.press + target: + entity_id: button.sparkx_i7_resume_print + type: tile + - entity: button.sparkx_i7_reconnect + grid_options: + columns: 4 + icon: mdi:lan-connect + name: Connect + tap_action: + action: perform-action + perform_action: button.press + target: + entity_id: button.sparkx_i7_reconnect + type: tile + - entity: button.sparkx_i7_stop_print + grid_options: + columns: 4 + icon: mdi:cancel + name: Cancel Print + tap_action: + action: perform-action + perform_action: button.press + target: + entity_id: button.sparkx_i7_stop_print + type: tile + type: grid + title: Print + type: sections + - max_columns: 2 + path: history + sections: + - cards: + - heading: Temperature History + icon: mdi:chart-line-variant + type: heading + - entities: + - color: '#ef5350' + entity: sensor.sparkx_i7_nozzle_temperature + name: Nozzle + - color: '#ffab91' + entity: number.sparkx_i7_nozzle_target + name: Nozzle Target + - color: '#42a5f5' + entity: sensor.sparkx_i7_bed_temperature + name: Bed + - color: '#90caf9' + entity: number.sparkx_i7_bed_target + name: Bed Target + expand_legend: true + grid_options: + columns: full + hours_to_show: 24 + show_names: true + title: Temperatures (24h) + type: history-graph + - entities: + - color: '#ef5350' + entity: sensor.sparkx_i7_nozzle_temperature + name: Nozzle + - color: '#42a5f5' + entity: sensor.sparkx_i7_bed_temperature + name: Bed + expand_legend: true + grid_options: + columns: full + hours_to_show: 168 + show_names: true + title: Temperatures (7 days) + type: history-graph + type: grid + - cards: + - heading: Print Activity + icon: mdi:chart-box-outline + type: heading + - apex_config: + chart: + height: 300 + stroke: + width: 1 + graph_span: 24h + grid_options: + columns: full + header: + colorize_states: true + show: true + show_states: true + title: Z Position (24h) + series: + - color: '#ab47bc' + curve: straight + entity: sensor.sparkx_i7_position_z + fill_raw: last + name: Current Z + type: line + type: custom:apexcharts-card + - entities: + - color: '#66bb6a' + entity: sensor.sparkx_i7_print_progress + name: Progress + grid_options: + columns: full + hours_to_show: 24 + show_names: true + title: Print Progress (24h) + type: history-graph + - entities: + - color: '#26c6da' + entity: sensor.sparkx_i7_print_job_time + name: Elapsed + - color: '#ffa726' + entity: sensor.sparkx_i7_print_time_left + name: Remaining + grid_options: + columns: full + hours_to_show: 24 + show_names: true + title: Print Duration (24h) + type: history-graph + type: grid + title: History + type: sections diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 5b03353f..27d4ea9b 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -3717,3 +3717,5 @@ {"timestamp": "2026-09-24T01:52:54.921336+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "sparkx-i7", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": null, "mode": null, "query": null}, "execution_time_ms": 25.04897117614746, "success": true, "error_message": null, "response_size_bytes": 8222, "user_context": null} {"timestamp": "2026-09-24T01:53:57.332518+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "sparkx-i7", "config": null, "python_transform": "config['views'][0]['sections'][0]['cards'][2] = {\"show_state\": True, \"show_name\": True, \"camera_view\": \"live\", \"fit_mode\": \"cover\", \"type\": \"picture-entity\", \"entity\": \"camera.sparkx_i7_printer_camera\", \"camera_image\": \"camera.sparkx_i7_printer_camera\", \"grid_options\": {\"columns\": \"full\"}}", "config_hash": "2ae3286b0bf5c1ea", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": false, "BestPracticeKey": null, "return_screenshot": false, "view_path": null, "patch": null}, "execution_time_ms": 78.36270332336426, "success": true, "error_message": null, "response_size_bytes": 837, "user_context": null} {"timestamp": "2026-09-24T01:54:56.198889+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "sparkx-i7", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": "print", "mode": null, "query": null}, "execution_time_ms": 4.048347473144531, "success": true, "error_message": null, "response_size_bytes": 6488, "user_context": null} +{"timestamp": "2026-09-24T01:55:13.929305+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "sparkx-i7", "config": null, "python_transform": "config['views'][0]['sections'][0]['cards'][3] = {\"show_state\": True, \"show_name\": True, \"camera_view\": \"live\", \"fit_mode\": \"cover\", \"type\": \"picture-entity\", \"entity\": \"camera.sparkx_i7_printer_camera\", \"camera_image\": \"camera.sparkx_i7_printer_camera\", \"grid_options\": {\"columns\": \"full\"}}; config['views'][0]['sections'][0]['cards'].insert(2, {\"grid_options\": {\"columns\": \"full\"}, \"type\": \"custom:webrtc-camera\", \"ui\": True, \"url\": \"octoprint2\"})", "config_hash": "05ad81c2ab7fc5e1", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": false, "BestPracticeKey": null, "return_screenshot": false, "view_path": null, "patch": null}, "execution_time_ms": 221.04597091674805, "success": true, "error_message": null, "response_size_bytes": 1001, "user_context": null} +{"timestamp": "2026-09-24T01:55:19.927676+00:00", "tool_name": "ha_get_device", "parameters": {"device_id": "1196bfc60ac925f3874be27098978ef6", "entity_id": null, "integration": null, "area_id": null, "manufacturer": null, "limit": 50, "offset": 0, "detail_level": "summary"}, "execution_time_ms": 21.553993225097656, "success": true, "error_message": null, "response_size_bytes": 13183, "user_context": null} diff --git a/.storage/lovelace.sparkx_i7 b/.storage/lovelace.sparkx_i7 index 1db05214..ab0ba60d 100644 --- a/.storage/lovelace.sparkx_i7 +++ b/.storage/lovelace.sparkx_i7 @@ -24,6 +24,14 @@ "ui": true, "url": "octoprint" }, + { + "grid_options": { + "columns": "full" + }, + "type": "custom:webrtc-camera", + "ui": true, + "url": "octoprint2" + }, { "show_state": true, "show_name": true, @@ -37,12 +45,16 @@ } }, { + "show_state": true, + "show_name": true, + "camera_view": "live", + "fit_mode": "cover", + "type": "picture-entity", + "entity": "camera.sparkx_i7_printer_camera", + "camera_image": "camera.sparkx_i7_printer_camera", "grid_options": { "columns": "full" - }, - "type": "custom:webrtc-camera", - "ui": true, - "url": "creality_k2_192_168_1_233" + } }, { "entity": "sensor.sparkx_i7_print_status", diff --git a/zigbee2mqtt/state.json b/zigbee2mqtt/state.json index b8732c50..9c14b2ed 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": 2.2, + "power": 2.3, "current": 0.1, "energy": 46.16, "power_factor": 0.17, @@ -45,9 +45,9 @@ "state": "ON", "led_brightness": 100, "countdown_to_turn_off": 0, - "voltage": 119.7, + "voltage": 120.2, "countdown_to_turn_on": 0, - "energy": 89.98, + "energy": 89.99, "power_factor": 0.89, "ac_frequency": 60, "update": { @@ -58,8 +58,8 @@ "latest_release_notes": null }, "linkquality": 120, - "power": 104.3, - "current": 11.46, + "power": 85.9, + "current": 0.79, "power_on_behavior": "on" }, "0xb40e060fffe031e3": { @@ -74,7 +74,7 @@ "led_brightness": 100, "countdown_to_turn_off": 0, "countdown_to_turn_on": 0, - "voltage": 119.3, + "voltage": 119.8, "state": "ON", "ac_frequency": 60, "energy": 183.77, @@ -98,8 +98,8 @@ "voltage": 119.5, "energy": 91.17, "state": "ON", - "power": 56.3, - "current": 0.62, + "power": 59, + "current": 0.68, "ac_frequency": 60, "power_factor": 0.73, "update": { @@ -114,12 +114,12 @@ }, "0xffffb40e060895b3": { "state": "ON", - "voltage": 120.5, + "voltage": 120.3, "ac_frequency": 60, "energy": 12.09, "current": 0.01, "power": 0.1, - "power_factor": 0.11, + "power_factor": 0, "linkquality": 87, "update": { "state": "idle", @@ -136,13 +136,13 @@ "0xffffb40e0608864e": { "led_brightness": 100, "countdown_to_turn_off": 0, - "voltage": 121, + "voltage": 121.5, "energy": 28.73, "countdown_to_turn_on": 0, "state": "ON", - "current": 0.13, + "current": 0.02, "ac_frequency": 60, - "power": 0.4, + "power": 0.3, "power_factor": 0.15, "update": { "state": "idle",