.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control
2026-10-09 00:42:39 +00:00
parent 6742284bd5
commit 8234ead52c
+2
View File
@@ -4172,3 +4172,5 @@
{"timestamp": "2026-10-09T00:41:08.152361+00:00", "tool_name": "ha_get_integration", "parameters": {"entry_id": null, "query": "spoolman", "domain": null, "include_options": false, "include_schema": false, "include_subentries": false, "include_subentry_schema": false, "subentry_type": null, "subentry_id": null, "show_advanced_options": false, "exact_match": true, "limit": 50, "offset": 0, "include_diagnostics": false, "include_knx_project": false, "device_id": null, "diagnostics_fields": null, "diagnostics_truncate_at_bytes": null, "diagnostics_data_path": null, "diagnostics_data_offset": 0, "diagnostics_data_limit": null}, "execution_time_ms": 442.6836967468262, "success": true, "error_message": null, "response_size_bytes": 518, "user_context": null}
{"timestamp": "2026-10-09T00:42:19.171109+00:00", "tool_name": "ha_reload_core", "parameters": {"target": "all", "entry_id": "01M4E507NTYVDXT6ZHX4HMX9XV"}, "execution_time_ms": 3679.006576538086, "success": true, "error_message": null, "response_size_bytes": 166, "user_context": null}
{"timestamp": "2026-10-09T00:42:22.337050+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "sensor.spoolman_spool_7", "fields": ["entity_id", "state", "attributes"], "attribute_keys": ["location", "color_hex", "filament_name"]}, "execution_time_ms": 1.3434886932373047, "success": true, "error_message": null, "response_size_bytes": 473, "user_context": null}
{"timestamp": "2026-10-09T00:42:31.758883+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "sensor.spoolman_spool_7_color_hex", "fields": ["entity_id", "state"], "attribute_keys": null}, "execution_time_ms": 4.843711853027344, "success": true, "error_message": null, "response_size_bytes": 420, "user_context": null}
{"timestamp": "2026-10-09T00:42:31.924786+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "Candidates for yellow (#f8e911), all spools:\n{% for e in integration_entities('spoolman') if e.endswith('_color_hex') and (states(e) | replace('#', '') | lower) == 'f8e911' %}\n{% set b = e[:-10] %}\n spool {{ states(b ~ '_id') }} | loc={{ state_attr(b, 'location') | default('MISSING', true) }} | rem={{ states(b) }} g\n{% endfor %}\n\nWITH location filter (production matcher):\n{% set ns = namespace(id='') %}{% for e in integration_entities('spoolman') %}{% if e.endswith('_color_hex') and (states(e) | replace('#', '') | lower) == 'f8e911' and (state_attr(e[:-10], 'location') | default('', true) | lower) == 'cfs lite' %}{% set b = e[:-10] %}{% if (states(b) | float(0)) > 0 and ns.id == '' %}{% set ns.id = states(b ~ '_id') %}{% endif %}{% endif %}{% endfor %}-> spool {{ ns.id if ns.id else 'NO MATCH' }}\n\nWITHOUT location filter (old logic, same color+stock test):\n{% set ns2 = namespace(id='') %}{% for e in integration_entities('spoolman') %}{% if e.endswith('_color_hex') and (states(e) | replace('#', '') | lower) == 'f8e911' %}{% set b = e[:-10] %}{% if (states(b) | float(0)) > 0 and ns2.id == '' %}{% set ns2.id = states(b ~ '_id') %}{% endif %}{% endif %}{% endfor %}-> spool {{ ns2.id if ns2.id else 'NO MATCH' }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 161.64255142211914, "success": true, "error_message": null, "response_size_bytes": 1924, "user_context": null}