From 34689c374ef95455b06be7f3eac7f9c969ad434b Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Thu, 15 Oct 2026 16:46:20 +0000 Subject: [PATCH] .ha_mcp/logs/mcp_usage.jsonl --- .ha_mcp/logs/mcp_usage.jsonl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 2a1b2c9a..65654045 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -4632,3 +4632,5 @@ {"timestamp": "2026-10-15T16:44:55.967307+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% for e in ['sensor.spoolman_spool_9','sensor.spoolman_spool_4','sensor.spoolman_spool_5','sensor.spoolman_spool_8'] %}\n{{ e }}: remaining_weight={{ state_attr(e,'remaining_weight') }} | filament_weight={{ state_attr(e,'filament_weight') }} | initial_weight={{ state_attr(e,'initial_weight') }} | state={{ states(e) }}\n{% endfor %}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 18.77737045288086, "success": true, "error_message": null, "response_size_bytes": 1044, "user_context": null} {"timestamp": "2026-10-15T16:45:32.190544+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.sparkx_moonraker_print_eta", "sensor.sparkx_i7_used_material_length", "sensor.sparkx_i7_filament_weight_estimated", "sensor.sparkx_i7_real_time_flow", "sensor.sparkx_i7_filament_cost"], "fields": ["entity_id", "state", "attributes"], "attribute_keys": ["device_class", "unit_of_measurement", "state_class", "friendly_name"]}, "execution_time_ms": 2.0685195922851562, "success": true, "error_message": null, "response_size_bytes": 1606, "user_context": null} {"timestamp": "2026-10-15T16:45:32.423431+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set out = [] %}\n{% for n in [1,2,3,4] %}\n {% set sp = namespace(ent='', loc='') %}\n {% for s in states.sensor %}\n {% if sp.ent == '' and s.entity_id.startswith('sensor.spoolman_spool_') %}\n {% set loc = (s.attributes.location | default('')) | lower %}\n {% if loc == ('cfs lite ' ~ n) %}{% set sp.ent = s.entity_id %}{% set sp.loc = s.attributes.location %}{% endif %}\n {% endif %}\n {% endfor %}\n {% if sp.ent != '' %}\n {% set r = states(sp.ent) | float(0) %}\n {% set band = 2 if r < 25 else (1 if r < 100 else 0) %}\n {% set out = out + ['Slot ' ~ n ~ ' -> ' ~ sp.loc ~ ' (' ~ (r|round(1)) ~ ' g, band ' ~ band ~ ')'] %}\n {% else %}\n {% set out = out + ['Slot ' ~ n ~ ' -> NO MATCHING SPOOL (tube would be omitted from card)'] %}\n {% endif %}\n{% endfor %}\n{{ out | join('\\n') }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 231.8730354309082, "success": true, "error_message": null, "response_size_bytes": 1068, "user_context": null} +{"timestamp": "2026-10-15T16:46:12.911741+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set results = [] %}\n{% set r1 = 'unavailable' | round(2) %}\nOK", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 252.5191307067871, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"ValueError: Template error: round got invalid input 'unavailable' when rendering template '{% set results = [] %}\\n{% set r1 = 'unavailable' | round(2) %}\\nOK' but no default was specified\",\n \"suggestion\": \"Fix the template at the reported line, if one is given, then evaluate it again\",\n \"suggestions\": [\n \"Fix the template at the reported line, if one is given, then evaluate it again\",\n \"Use default values for missing data: {{ states('sensor.temp') | float(0) }}\",\n \"Verify entity_ids exist using ha_get_state() or ha_search()\",\n \"Pass values the template expects through 'variables'\"\n ]\n },\n \"template\": \"{% set results = [] %}\\n{% set r1 = 'unavailable' | round(2) %}\\nOK\",\n \"line\": 2,\n \"source_line\": \"{% set r1 = 'unavailable' | round(2) %}\"\n}", "response_size_bytes": null, "user_context": null} +{"timestamp": "2026-10-15T16:46:12.922819+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set ns = namespace(out=[]) %}\n{% for n in [1,2,3,4] %}\n {% set sp = namespace(ent='', loc='') %}\n {% for s in states.sensor %}\n {% if sp.ent == '' and s.entity_id.startswith('sensor.spoolman_spool_') %}\n {% set loc = (s.attributes.location | default('')) | lower %}\n {% if loc == ('cfs lite ' ~ n) %}{% set sp.ent = s.entity_id %}{% set sp.loc = s.attributes.location %}{% endif %}\n {% endif %}\n {% endfor %}\n {% if sp.ent != '' %}\n {% set r = states(sp.ent) | float(0) %}\n {% set band = 2 if r < 25 else (1 if r < 100 else 0) %}\n {% set ns.out = ns.out + ['Slot ' ~ n ~ ' -> ' ~ sp.loc ~ ' | ' ~ (r|round(1)) ~ ' g | band ' ~ band] %}\n {% else %}\n {% set ns.out = ns.out + ['Slot ' ~ n ~ ' -> NO MATCHING SPOOL -> tube OMITTED from card'] %}\n {% endif %}\n{% endfor %}\n{{ ns.out | join('\\n') }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 262.3310089111328, "success": true, "error_message": null, "response_size_bytes": 1247, "user_context": null}