.ha_mcp/logs/mcp_usage.jsonl
This commit is contained in:
@@ -4803,3 +4803,6 @@
|
||||
{"timestamp": "2026-10-18T06:01:10.829352+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% for n in [1, 2, 3, 4] %}\n {% set sp = namespace(ent='') %}\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 %}{% endif %}\n {% endif %}\n {% endfor %}\nSlot {{ n }}: {{ (state_attr(sp.ent, 'filament_vendor_name') | default('') | string | trim) or '(no vendor)' }}\n{% endfor %}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 9852.93984413147, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"TIMEOUT_OPERATION\",\n \"message\": \"Event timeout - template result not received\",\n \"suggestion\": \"Simplify the template or raise 'timeout'\"\n },\n \"template\": \"{% for n in [1, 2, 3, 4] %}\\n {% set sp = namespace(ent='') %}\\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 %}{% endif %}\\n {% endif %}\\n {% endfor %}\\nSlot {{ n }}: {{ (state_attr(sp.ent, 'filament_vendor_name') | default('') | string | trim) or '(no vendor)' }}\\n{% endfor %}\"\n}", "response_size_bytes": null, "user_context": null}
|
||||
{"timestamp": "2026-10-18T06:01:20.424067+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set ns = namespace(list=[]) %}\n{% for n in ['1', '2', '3', '4'] %}\n {% set sp = namespace(ent='') %}\n {% for e in integration_entities('spoolman') if e.startswith('sensor.spoolman_spool_') and sp.ent == '' %}\n {% if (state_attr(e, 'location') | default('', true) | lower) == ('cfs lite ' ~ n) %}\n {% set sp.ent = e %}\n {% endif %}\n {% endfor %}\n {% set ns.list = ns.list + ['Slot ' ~ n ~ ': ' ~ ((state_attr(sp.ent, 'filament_vendor_name') | default('') | string | trim) or '(empty)')] %}\n{% endfor %}\n{{ ns.list | join('\\n') }}", "condition": null, "variables": null, "strict": false, "timeout": 15, "report_errors": true}, "execution_time_ms": 462.6736640930176, "success": true, "error_message": null, "response_size_bytes": 7614, "user_context": null}
|
||||
{"timestamp": "2026-10-18T06:05:02.413625+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "3d-printer-cellphone", "config": null, "python_transform": "c = config['views'][0]['sections'][0]['cards'][0]\nt = c['filter']['template']\nt = t.replace(\".tube-wrap.active .slot-label { color: var(--primary-color); font-weight: 800; }\", \".tube-wrap.active .slot-label { color: var(--primary-color); font-weight: 800; } .tube-wrap.active .slot-vendor { color: var(--primary-color); font-weight: 800; }\")\nt = t.replace(\".slot-vendor {\\n margin-bottom: 2px;\\n font-size: 9px;\", \".slot-vendor {\\n margin-bottom: 2px;\\n font-size: 11px;\")\nc['filter']['template'] = t\nconfig['views'][0]['sections'][0]['cards'][0] = c", "config_hash": "6235797c106541b2", "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": 10193.222999572754, "success": true, "error_message": null, "response_size_bytes": 1156, "user_context": null}
|
||||
{"timestamp": "2026-10-18T06:06:16.827137+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, "query": null, "describe": false}, "execution_time_ms": 403.7652015686035, "success": true, "error_message": null, "response_size_bytes": 68987, "user_context": null}
|
||||
{"timestamp": "2026-10-18T06:06:20.578824+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, "query": null, "describe": false}, "execution_time_ms": 20.79319953918457, "success": true, "error_message": null, "response_size_bytes": 68987, "user_context": null}
|
||||
{"timestamp": "2026-10-18T06:06:22.992080+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, "query": null, "describe": false}, "execution_time_ms": 23.107051849365234, "success": true, "error_message": null, "response_size_bytes": 68987, "user_context": null}
|
||||
|
||||
Reference in New Issue
Block a user