.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control
2026-08-14 16:14:10 +00:00
parent 181d989109
commit 2e3462794c
+1
View File
@@ -1254,3 +1254,4 @@
{"timestamp": "2026-08-14T16:13:24.153008+00:00", "tool_name": "ha_get_entity", "parameters": {"entity_id": "\"sensor.octoprint_print_time_left_live\"", "unique_id": null, "domain": null, "platform": null}, "execution_time_ms": 2.512693405151367, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"SERVICE_CALL_FAILED\",\n \"message\": \"Entity not found: Command failed: Entity ID \\\"sensor.octoprint_print_time_left_live\\\" is an invalid entity ID for dictionary value @ data['entity_id']. Got '\\\"sensor.octoprint_print_time_left_live\\\"'\",\n \"suggestion\": \"Use ha_search() to find valid entity IDs\",\n \"suggestions\": [\n \"Use ha_search() to find valid entity IDs\",\n \"Check the entity_id spelling and format (e.g., 'sensor.temperature')\"\n ]\n },\n \"entity_id\": \"\\\"sensor.octoprint_print_time_left_live\\\"\"\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-08-14T16:13:48.424541+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{{ states('sensor.octoprint_print_time_left_live') }} | asfloat: {{ states('sensor.octoprint_print_time_left_live') | float }}", "timeout": 3, "report_errors": true}, "execution_time_ms": 6.995439529418945, "success": true, "error_message": null, "response_size_bytes": 240, "user_context": null}
{"timestamp": "2026-08-14T16:13:49.130066+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "print_time=1469 last_updated=11:57:09 now={{ now().isoformat() }}\nelapsed_now={{ states('sensor.octoprint_print_time') | float(0) + ((as_timestamp(now()) - as_timestamp(states.sensor.octoprint_print_time.last_updated)) if is_state('binary_sensor.octoprint_printing','on') else 0) }}\ntime_left_now={{ states('sensor.octoprint_print_time_left') | float(0) - ((as_timestamp(now()) - as_timestamp(states.sensor.octoprint_print_time.last_updated)) if is_state('binary_sensor.octoprint_printing','on') else 0) }}", "timeout": 3, "report_errors": true}, "execution_time_ms": 24.273395538330078, "success": true, "error_message": null, "response_size_bytes": 736, "user_context": null}
{"timestamp": "2026-08-14T16:14:04.515187+00:00", "tool_name": "ha_get_history", "parameters": {"entity_ids": "sensor.octoprint_print_time_left_live", "source": "history", "start_time": "2026-08-14T09:00:00-04:00", "end_time": "2026-08-14T12:15:00-04:00", "minimal_response": false, "significant_changes_only": true, "limit": 100, "offset": null, "period": "day", "statistic_types": null, "order": "desc", "fields": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 108.47258567810059, "success": true, "error_message": null, "response_size_bytes": 30850, "user_context": null}