.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control
2026-10-11 17:20:13 +00:00
parent 45511311c9
commit c79c28a0e2
+2
View File
@@ -4428,3 +4428,5 @@
{"timestamp": "2026-10-11T17:15:12.797608+00:00", "tool_name": "ha_get_logs", "parameters": {"source": "logbook", "limit": 40, "search": null, "order": "newest", "hours_back": 24, "entity_id": "automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete", "end_time": null, "offset": 0, "compact": true, "level": null, "structured": false, "top_n": null, "slug": null}, "execution_time_ms": 77.82101631164551, "success": true, "error_message": null, "response_size_bytes": 3498, "user_context": null} {"timestamp": "2026-10-11T17:15:12.797608+00:00", "tool_name": "ha_get_logs", "parameters": {"source": "logbook", "limit": 40, "search": null, "order": "newest", "hours_back": 24, "entity_id": "automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete", "end_time": null, "offset": 0, "compact": true, "level": null, "structured": false, "top_n": null, "slug": null}, "execution_time_ms": 77.82101631164551, "success": true, "error_message": null, "response_size_bytes": 3498, "user_context": null}
{"timestamp": "2026-10-11T17:19:11.064205+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": null, "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": null, "mode": "search", "query": "sparkx_i7_filament_g_cm"}, "execution_time_ms": 43.134212493896484, "success": true, "error_message": null, "response_size_bytes": 1322, "user_context": null} {"timestamp": "2026-10-11T17:19:11.064205+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": null, "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": null, "mode": "search", "query": "sparkx_i7_filament_g_cm"}, "execution_time_ms": 43.134212493896484, "success": true, "error_message": null, "response_size_bytes": 1322, "user_context": null}
{"timestamp": "2026-10-11T17:19:11.070679+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% for e in states.sensor if e.entity_id | match('^sensor\\.spoolman_spool_\\d+$') %}{{ e.entity_id }} | {{ state_attr(e.entity_id,'filament_name') }} | density={{ state_attr(e.entity_id,'filament_density') }} | dia={{ state_attr(e.entity_id,'filament_diameter') }} | price={{ state_attr(e.entity_id,'filament_price') }} | loc={{ state_attr(e.entity_id,'location') }} | rem={{ e.state }}\n{% endfor %}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 52.34670639038086, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"TemplateAssertionError: No filter named 'match'.\",\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\": \"{% for e in states.sensor if e.entity_id | match('^sensor\\\\.spoolman_spool_\\\\d+$') %}{{ e.entity_id }} | {{ state_attr(e.entity_id,'filament_name') }} | density={{ state_attr(e.entity_id,'filament_density') }} | dia={{ state_attr(e.entity_id,'filament_diameter') }} | price={{ state_attr(e.entity_id,'filament_price') }} | loc={{ state_attr(e.entity_id,'location') }} | rem={{ e.state }}\\n{% endfor %}\",\n \"line\": 1,\n \"source_line\": \"{% for e in states.sensor if e.entity_id | match('^sensor\\\\.spoolman_spool_\\\\d+$') %}{{ e.entity_id }} | {{ state_attr(e.entity_id,'filament_name') }} | density={{ state_attr(e.entity_id,'filament_density') }} | dia={{ state_attr(e.entity_id,'filament_diameter') }} | price={{ state_attr(e.entity_id,'filament_price') }} | loc={{ state_attr(e.entity_id,'location') }} | rem={{ e.state }}\"\n}", "response_size_bytes": null, "user_context": null} {"timestamp": "2026-10-11T17:19:11.070679+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% for e in states.sensor if e.entity_id | match('^sensor\\.spoolman_spool_\\d+$') %}{{ e.entity_id }} | {{ state_attr(e.entity_id,'filament_name') }} | density={{ state_attr(e.entity_id,'filament_density') }} | dia={{ state_attr(e.entity_id,'filament_diameter') }} | price={{ state_attr(e.entity_id,'filament_price') }} | loc={{ state_attr(e.entity_id,'location') }} | rem={{ e.state }}\n{% endfor %}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 52.34670639038086, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"TemplateAssertionError: No filter named 'match'.\",\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\": \"{% for e in states.sensor if e.entity_id | match('^sensor\\\\.spoolman_spool_\\\\d+$') %}{{ e.entity_id }} | {{ state_attr(e.entity_id,'filament_name') }} | density={{ state_attr(e.entity_id,'filament_density') }} | dia={{ state_attr(e.entity_id,'filament_diameter') }} | price={{ state_attr(e.entity_id,'filament_price') }} | loc={{ state_attr(e.entity_id,'location') }} | rem={{ e.state }}\\n{% endfor %}\",\n \"line\": 1,\n \"source_line\": \"{% for e in states.sensor if e.entity_id | match('^sensor\\\\.spoolman_spool_\\\\d+$') %}{{ e.entity_id }} | {{ state_attr(e.entity_id,'filament_name') }} | density={{ state_attr(e.entity_id,'filament_density') }} | dia={{ state_attr(e.entity_id,'filament_diameter') }} | price={{ state_attr(e.entity_id,'filament_price') }} | loc={{ state_attr(e.entity_id,'location') }} | rem={{ e.state }}\"\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-10-11T17:20:07.308460+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": null, "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": null, "mode": "search", "query": "filament_price_per_kg"}, "execution_time_ms": 21.315574645996094, "success": true, "error_message": null, "response_size_bytes": 191, "user_context": null}
{"timestamp": "2026-10-11T17:20:07.309467+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.spoolman_spool_1", "sensor.spoolman_spool_2", "sensor.spoolman_spool_3", "sensor.spoolman_spool_4", "sensor.spoolman_spool_5", "sensor.spoolman_spool_6", "sensor.spoolman_spool_7", "sensor.spoolman_spool_8"], "fields": ["entity_id", "state", "attributes"], "attribute_keys": ["filament_name", "filament_density", "filament_diameter", "filament_price", "location"]}, "execution_time_ms": 18.74995231628418, "success": true, "error_message": null, "response_size_bytes": 2831, "user_context": null}