diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 29fe5623..16437a5f 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -3953,3 +3953,5 @@ {"timestamp": "2026-10-08T16:34:33.728307+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete", "python_transform": "config['conditions'] = [{'condition': 'numeric_state', 'entity_id': 'sensor.sparkx_i7_filament_weight_estimated', 'above': 0}]", "config_hash": null, "take_control_of_blueprint": false, "category": null, "wait": true, "enabled": null, "run_actions": false, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 0.14829635620117188, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_INVALID_PARAMETER\",\n \"message\": \"config_hash is required for python_transform\",\n \"suggestion\": \"Call ha_config_get_automation() first\",\n \"suggestions\": [\n \"Call ha_config_get_automation() first\",\n \"Use the config_hash from that response\",\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 \"action\": \"python_transform\",\n \"identifier\": \"automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete\"\n}", "response_size_bytes": null, "user_context": null} {"timestamp": "2026-10-08T16:34:39.942378+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.sparkx_i7_latch_print_spool_for_spoolman"}, "execution_time_ms": 182.53254890441895, "success": true, "error_message": null, "response_size_bytes": 1775, "user_context": null} {"timestamp": "2026-10-08T16:34:40.093943+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete"}, "execution_time_ms": 329.21385765075684, "success": true, "error_message": null, "response_size_bytes": 1842, "user_context": null} +{"timestamp": "2026-10-08T16:34:48.601532+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete", "python_transform": "config['conditions'] = [{'condition': 'numeric_state', 'entity_id': 'sensor.sparkx_i7_filament_weight_estimated', 'above': 0}]", "config_hash": "9bc473e1ed1ee268", "take_control_of_blueprint": false, "category": null, "wait": true, "enabled": null, "run_actions": false, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 2577.0342350006104, "success": true, "error_message": null, "response_size_bytes": 2140, "user_context": null} +{"timestamp": "2026-10-08T16:34:48.860691+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.sparkx_i7_latch_print_spool_for_spoolman", "python_transform": "config['triggers'][0]['id'] = 'print_started'; config['actions'][0]['choose'][0]['conditions'] = {'condition': 'trigger', 'id': 'print_started'}", "config_hash": "88951eaf2a6f756a", "take_control_of_blueprint": false, "category": null, "wait": true, "enabled": null, "run_actions": false, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 2742.194175720215, "success": true, "error_message": null, "response_size_bytes": 2113, "user_context": null} diff --git a/automations.yaml b/automations.yaml index f26e5e05..c27e4fa8 100644 --- a/automations.yaml +++ b/automations.yaml @@ -4430,6 +4430,7 @@ - trigger: state entity_id: sensor.sparkx_i7_print_status to: printing + id: print_started - trigger: state entity_id: sensor.sparkx_i7_active_filament_slot - trigger: state @@ -4445,9 +4446,8 @@ actions: - choose: - conditions: - condition: template - value_template: '{{ trigger.entity_id == ''sensor.sparkx_i7_print_status'' - }}' + condition: trigger + id: print_started sequence: - action: input_text.set_value target: