.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control
2026-10-15 16:45:03 +00:00
parent 169eb77bb8
commit f546815c1a
+2
View File
@@ -4628,3 +4628,5 @@
{"timestamp": "2026-10-15T16:26:20.673229+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "3d-printer-cellphone", "list_only": false, "force_reload": false, "entity_id": null, "card_type": "custom:auto-entities", "heading": null, "include_config": true, "include_screenshot": false, "view_path": null, "query": null, "describe": false}, "execution_time_ms": 153.18608283996582, "success": true, "error_message": null, "response_size_bytes": 4216, "user_context": null}
{"timestamp": "2026-10-15T16:26:20.681802+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='') %}\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) %}\n {% set sp.ent = s.entity_id %}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% if sp.ent != '' %}\n {% set hex = state_attr(sp.ent, 'filament_color_hex') | default('44739e') %}\n {% set hex_clean = hex if hex.startswith('#') else '#' ~ hex %}\n {% set remain = (state_attr(sp.ent, 'remaining_weight') | default(states(sp.ent)) | float(0)) | round(1) %}\n {% set total = state_attr(sp.ent, 'filament_weight') | float(0) %}\n {% set pct = ((remain / total) * 100) | round(0) | int if total > 0 else 0 %}\n {% set ns.out = ns.out + ['Slot ' ~ n ~ ': ' ~ state_attr(sp.ent, 'filament_name') ~ ' | ' ~ remain ~ 'g | ' ~ pct ~ '% | ' ~ hex_clean] %}\n {% else %}\n {% set ns.out = ns.out + ['Slot ' ~ n ~ ': (no spool matched)'] %}\n {% endif %}\n{% endfor %}\n{{ ns.out | join('\\n') }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 162.2483730316162, "success": true, "error_message": null, "response_size_bytes": 1580, "user_context": null}
{"timestamp": "2026-10-15T16:43:30.907072+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "3d-printer-cellphone", "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": 1.7998218536376953, "success": true, "error_message": null, "response_size_bytes": 8427, "user_context": null}
{"timestamp": "2026-10-15T16:44:55.962600+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.sparkx_i7_cfs_box_1_humidity", "sensor.sparkx_i7_cfs_box_1_temperature", "sensor.sparkx_i7_used_material_length", "sensor.sparkx_moonraker_print_eta", "sensor.sparkx_i7_filament_weight_estimated", "sensor.sparkx_i7_filament_cost", "sensor.sparkx_i7_real_time_flow", "sensor.sparkx_i7_active_filament_slot", "sensor.sparkx_i7_print_status"], "fields": ["entity_id", "state"], "attribute_keys": null}, "execution_time_ms": 15.390634536743164, "success": true, "error_message": null, "response_size_bytes": 1422, "user_context": null}
{"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}