.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control
2026-10-11 03:53:06 +00:00
parent d6ce5ccb64
commit b9ba8107be
+3
View File
@@ -4369,3 +4369,6 @@
{"timestamp": "2026-10-11T03:52:41.864447+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete", "python_transform": "idx = None\nfor i, a in enumerate(config.get('actions', [])):\n if a.get('action') == 'input_number.set_value' and a.get('target', {}).get('entity_id') == 'input_number.sparkx_i7_spoolman_length_checkpoint':\n idx = i\n break\nif idx is not None:\n config['actions'].insert(idx, {\"action\": \"input_number.set_value\", \"target\": {\"entity_id\": \"input_number.sparkx_i7_last_job_cost\"}, \"data\": {\"value\": \"{{ ((final_grams | float) * (states('input_number.filament_price_per_kg') | float(25)) / 1000) | round(2) }}\"}})\n config['actions'].insert(idx, {\"action\": \"input_number.set_value\", \"target\": {\"entity_id\": \"input_number.sparkx_i7_last_job_filament_weight\"}, \"data\": {\"value\": \"{{ final_grams }}\"}})", "config_hash": "5f9e3b69007edc22", "take_control_of_blueprint": false, "category": null, "wait": true, "enabled": null, "run_actions": false, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 2014.4972801208496, "success": true, "error_message": null, "response_size_bytes": 80509, "user_context": null}
{"timestamp": "2026-10-11T03:52:49.248175+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete"}, "execution_time_ms": 1306.117057800293, "success": true, "error_message": null, "response_size_bytes": 6368, "user_context": null}
{"timestamp": "2026-10-11T03:52:53.475892+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "sparkx-i7", "list_only": false, "force_reload": true, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": "print", "mode": null, "query": null}, "execution_time_ms": 36.79537773132324, "success": true, "error_message": null, "response_size_bytes": 14604, "user_context": null}
{"timestamp": "2026-10-11T03:52:59.899397+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["input_number.sparkx_i7_last_job_filament_weight", "input_number.sparkx_i7_last_job_cost"], "fields": ["entity_id", "state", "attributes"], "attribute_keys": ["friendly_name", "unit_of_measurement", "min", "max", "step", "mode"]}, "execution_time_ms": 155.6527614593506, "success": true, "error_message": null, "response_size_bytes": 935, "user_context": null}
{"timestamp": "2026-10-11T03:52:59.932804+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set st = states('sensor.sparkx_i7_print_status') %}{% if st in ['printing', 'paused'] %}{{ states('sensor.sparkx_i7_filament_weight_estimated') | round(1) }} g{% else %}Last job: {{ states('input_number.sparkx_i7_last_job_filament_weight') | round(1) }} g{% endif %}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 197.02529907226562, "success": true, "error_message": null, "response_size_bytes": 488, "user_context": null}
{"timestamp": "2026-10-11T03:52:59.933604+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set st = states('sensor.sparkx_i7_print_status') %}{% if st in ['printing', 'paused'] %}{{ states('sensor.sparkx_i7_filament_cost') | round(2) }} ${% else %}{{ states('input_number.sparkx_i7_last_job_cost') | round(2) }} ${% endif %}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 190.33241271972656, "success": true, "error_message": null, "response_size_bytes": 434, "user_context": null}