From 474c21b1ffb2097df2c459313ab2627926d34c43 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Fri, 16 Oct 2026 19:40:34 +0000 Subject: [PATCH] .ha_mcp/logs/mcp_usage.jsonl --- .ha_mcp/logs/mcp_usage.jsonl | 1 + 1 file changed, 1 insertion(+) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index bb718dd3..3dd72e04 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -4727,3 +4727,4 @@ {"timestamp": "2026-10-16T19:27:32.046146+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "sensor.filament_storage_remaining", "fields": ["entity_id", "state", "attributes"], "attribute_keys": null}, "execution_time_ms": 2.190828323364258, "success": true, "error_message": null, "response_size_bytes": 568, "user_context": null} {"timestamp": "2026-10-16T19:31:47.602416+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.spoolman_spool_10", "sensor.spoolman_spool_4", "sensor.spoolman_spool_5", "sensor.spoolman_spool_8"], "fields": ["entity_id", "state", "attributes"], "attribute_keys": ["filament_color_hex", "filament_name", "location"]}, "execution_time_ms": 1.8334388732910156, "success": true, "error_message": null, "response_size_bytes": 1187, "user_context": null} {"timestamp": "2026-10-16T19:40:18.593041+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{%- set out = {} -%}\n{%- for s in states.sensor | selectattr('entity_id', 'match', '^sensor[.]spoolman_spool_[0-9]+$') -%}\n{%- set loc = (s.attributes.location | default('')) | trim -%}\n{%- if loc.lower().startswith('cfs lite ') -%}\n{%- set hexv = (s.attributes.filament_color_hex | default('')) | trim -%}\n{%- if hexv -%}\n{%- set _ = out.update({loc: ('#' ~ hexv if not hexv.startswith('#') else hexv)}) -%}\n{%- endif -%}\n{%- endif -%}\n{%- endfor -%}\n{{ out | tojson }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 41.61882400512695, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"SecurityError: access to attribute 'update' of 'dict' object is unsafe.\",\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 out = {} -%}\\n{%- for s in states.sensor | selectattr('entity_id', 'match', '^sensor[.]spoolman_spool_[0-9]+$') -%}\\n{%- set loc = (s.attributes.location | default('')) | trim -%}\\n{%- if loc.lower().startswith('cfs lite ') -%}\\n{%- set hexv = (s.attributes.filament_color_hex | default('')) | trim -%}\\n{%- if hexv -%}\\n{%- set _ = out.update({loc: ('#' ~ hexv if not hexv.startswith('#') else hexv)}) -%}\\n{%- endif -%}\\n{%- endif -%}\\n{%- endfor -%}\\n{{ out | tojson }}\",\n \"line\": 7,\n \"source_line\": \"{%- set _ = out.update({loc: ('#' ~ hexv if not hexv.startswith('#') else hexv)}) -%}\"\n}", "response_size_bytes": null, "user_context": null} +{"timestamp": "2026-10-16T19:40:27.828942+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{%- set ns = namespace(items=[]) -%}\n{%- for s in states.sensor | selectattr('entity_id', 'match', '^sensor[.]spoolman_spool_[0-9]+$') -%}\n{%- set loc = (s.attributes.location | default('')) | trim -%}\n{%- if loc.lower().startswith('cfs lite ') -%}\n{%- set hexv = (s.attributes.filament_color_hex | default('')) | trim -%}\n{%- if hexv -%}\n{%- set ns.items = ns.items + [[loc, ('#' ~ hexv) if not hexv.startswith('#') else hexv]] -%}\n{%- endif -%}\n{%- endif -%}\n{%- endfor -%}\n{{ ns.items | tojson }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 36.035776138305664, "success": true, "error_message": null, "response_size_bytes": 745, "user_context": null}