From df5f1e0946233e9c9bb4ee59384dccbc9ce63a97 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Thu, 8 Oct 2026 16:42:21 +0000 Subject: [PATCH] 3 files --- .ha_mcp/logs/mcp_usage.jsonl | 2 ++ scripts.yaml | 18 ++++++++++++++++++ zigbee2mqtt/state.json | 20 ++++++++++---------- 3 files changed, 30 insertions(+), 10 deletions(-) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 15891bf0..526be725 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -3958,3 +3958,5 @@ {"timestamp": "2026-10-08T16:34:56.404771+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["automation.sparkx_i7_latch_print_spool_for_spoolman", "automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete", "input_text.sparkx_i7_print_spool_latch"], "fields": "state", "attribute_keys": null}, "execution_time_ms": 2.000570297241211, "success": true, "error_message": null, "response_size_bytes": 615, "user_context": null} {"timestamp": "2026-10-08T16:38:27.033863+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": null, "list_only": true, "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": 113.72256278991699, "success": true, "error_message": null, "response_size_bytes": 2166, "user_context": null} {"timestamp": "2026-10-08T16:38:33.809688+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": 24.23548698425293, "success": true, "error_message": null, "response_size_bytes": 21368, "user_context": null} +{"timestamp": "2026-10-08T16:42:14.371812+00:00", "tool_name": "ha_config_set_helper", "parameters": {"helper_type": "input_number", "name": "Spoolman Set Remaining", "helper_id": "spoolman_set_remaining", "entry_id": null, "subentry_type": null, "subentry_id": null, "show_advanced_options": false, "icon": null, "area_id": null, "labels": null, "min_value": 0.0, "max_value": 10000.0, "step": 1.0, "unit_of_measurement": "g", "options": null, "initial": null, "mode": "box", "has_date": null, "has_time": null, "restore": null, "duration": null, "monday": null, "tuesday": null, "wednesday": null, "thursday": null, "friday": null, "saturday": null, "sunday": null, "latitude": null, "longitude": null, "radius": null, "passive": null, "user_id": null, "device_trackers": null, "picture": null, "tag_id": null, "description": null, "category": null, "config": null, "wait": true, "action": "create", "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 0.2734661102294922, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_INVALID_PARAMETER\",\n \"message\": \"action='create' was passed together with helper_id='spoolman_set_remaining'. These are contradictory: create makes a new helper, while helper_id targets an existing one.\",\n \"suggestion\": \"Omit helper_id to create a new helper\",\n \"suggestions\": [\n \"Omit helper_id to create a new helper\",\n \"Or pass action='update' to modify the existing helper at helper_id\",\n \"For Home Assistant best-practice guidance, call ha_get_skill_guide() to read SKILL.md, then the reference file its table points to, before retrying.\"\n ]\n },\n \"helper_type\": \"input_number\",\n \"data_schema\": [\n {\n \"name\": \"name\",\n \"required\": true,\n \"selector\": {\n \"text\": {}\n },\n \"description\": \"Display name.\"\n },\n {\n \"name\": \"min_value\",\n \"required\": false,\n \"selector\": {\n \"number\": {}\n },\n \"description\": \"Minimum value. Also accepts shorthand `min`. HA defaults if omitted but supplying both bounds is recommended.\"\n },\n {\n \"name\": \"max_value\",\n \"required\": false,\n \"selector\": {\n \"number\": {}\n },\n \"description\": \"Maximum value. Also accepts shorthand `max`.\"\n },\n {\n \"name\": \"step\",\n \"required\": false,\n \"selector\": {\n \"number\": {}\n },\n \"description\": \"Step/increment. Must be > 0 and \\u2264 (max-min). Default 1.0.\"\n },\n {\n \"name\": \"unit_of_measurement\",\n \"required\": false,\n \"selector\": {\n \"text\": {}\n },\n \"description\": \"Unit string (e.g. '\\u00b0C'). Also accepts `unit`.\"\n },\n {\n \"name\": \"mode\",\n \"required\": false,\n \"selector\": {\n \"select\": {\n \"options\": [\n \"box\",\n \"slider\"\n ]\n }\n },\n \"description\": \"Default 'slider'.\"\n },\n {\n \"name\": \"initial\",\n \"required\": false,\n \"selector\": {\n \"number\": {}\n },\n \"description\": \"When set \\u2014 even to false/0 \\u2014 disables last-state restore and forces this value on every HA restart. Omit unless you want the helper to reset to this value on every restart instead of restoring its last state.\"\n },\n {\n \"name\": \"icon\",\n \"required\": false,\n \"selector\": {\n \"text\": {}\n }\n }\n ],\n \"action\": \"create\",\n \"helper_id\": \"spoolman_set_remaining\"\n}", "response_size_bytes": null, "user_context": null} +{"timestamp": "2026-10-08T16:42:14.915301+00:00", "tool_name": "ha_config_set_script", "parameters": {"script_id": "spoolman_set_spool_remaining", "config": {"alias": "Spoolman - Set Spool Remaining", "fields": {"spool_id": {"required": true, "name": "Spool ID", "selector": {"number": {"min": 1, "max": 9999, "mode": "box"}}}}, "sequence": [{"action": "spoolman.patch_spool", "data": {"id": "{{ spool_id | int(0) }}", "remaining_weight": "{{ states('input_number.spoolman_set_remaining') | float(0) }}"}}], "mode": "single"}, "python_transform": null, "config_hash": null, "take_control_of_blueprint": false, "category": null, "wait": true, "run": null, "variables": null, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 693.5296058654785, "success": true, "error_message": null, "response_size_bytes": 102, "user_context": null} diff --git a/scripts.yaml b/scripts.yaml index 08e7ee25..7bd8a4ec 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -240,3 +240,21 @@ light_color_temp_helper: name: Mode description: Select switch mode description: "Switch color temperature of light in steps \nVersion: 2026-03-22" +spoolman_set_spool_remaining: + alias: Spoolman - Set Spool Remaining + fields: + spool_id: + required: true + name: Spool ID + selector: + number: + min: 1 + max: 9999 + mode: box + sequence: + - action: spoolman.patch_spool + data: + id: '{{ spool_id | int(0) }}' + remaining_weight: '{{ states(''input_number.spoolman_set_remaining'') | float(0) + }}' + mode: single diff --git a/zigbee2mqtt/state.json b/zigbee2mqtt/state.json index 59dac188..98aaee3d 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, + "power": 2.1, "current": 0.09, "energy": 54.02, "power_factor": 0.23, @@ -47,7 +47,7 @@ "countdown_to_turn_off": 0, "voltage": 118.6, "countdown_to_turn_on": 0, - "energy": 103.63, + "energy": 103.64, "power_factor": 0.9, "ac_frequency": 60, "update": { @@ -58,7 +58,7 @@ "latest_release_notes": null }, "linkquality": 145, - "power": 85, + "power": 84.5, "current": 0.8, "power_on_behavior": "on" }, @@ -74,13 +74,13 @@ "led_brightness": 100, "countdown_to_turn_off": 0, "countdown_to_turn_on": 0, - "voltage": 118.3, + "voltage": 118.2, "state": "ON", "ac_frequency": 60, "energy": 210.34, - "power": 3.6, + "power": 0.8, "current": 0.05, - "power_factor": 0.66, + "power_factor": 0.39, "update": { "state": "idle", "installed_version": 268513381, @@ -98,7 +98,7 @@ "voltage": 118.8, "energy": 100.67, "state": "ON", - "power": 10.7, + "power": 10.1, "current": 0.32, "ac_frequency": 60, "power_factor": 0.5, @@ -119,7 +119,7 @@ "energy": 14.2, "current": 0.01, "power": 0.2, - "power_factor": 0, + "power_factor": 0.11, "linkquality": 116, "update": { "state": "idle", @@ -136,7 +136,7 @@ "0xffffb40e0608864e": { "led_brightness": 100, "countdown_to_turn_off": 0, - "voltage": 119.1, + "voltage": 119.6, "energy": 33.5, "countdown_to_turn_on": 0, "state": "ON", @@ -171,7 +171,7 @@ }, "0xa4c1380d0679ffff": { "battery": 100, - "temperature": 22.9, + "temperature": 23, "temperature_units": "celsius", "temperature_calibration": 0, "update": {