.ha_mcp/logs/mcp_usage.jsonl
This commit is contained in:
@@ -4442,3 +4442,5 @@
|
||||
{"timestamp": "2026-10-12T01:04:58.659731+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete", "python_transform": "config['triggers'][0]['id'] = 'complete'\nconfig['triggers'].append({'trigger': 'state', 'entity_id': 'sensor.sparkx_i7_print_status', 'to': 'stopped', 'id': 'stopped'})\nconfig['triggers'].append({'trigger': 'state', 'entity_id': 'sensor.sparkx_i7_print_status', 'to': 'error', 'id': 'error'})\nconfig['conditions'] = [{'condition': 'template', 'value_template': \"{{ trigger.id == 'complete' or states('input_text.sparkx_i7_print_spool_latch') not in ['', 'unknown', 'unavailable'] }}\"}]\nconfig['actions'][0]['variables']['outcome'] = \"{% set tid = trigger.id | default('complete') %}{{ 'cancelled' if tid == 'stopped' else ('error' if tid == 'error' else 'complete') }}\"\nfor n in config['actions'][5]['then'][0]['default']:\n n['data']['message'] = n['data']['message'].replace('Print completed:', 'Print {{ outcome }}:')\nfor n in config['actions'][8]['then']:\n n['data']['title'] = n['data']['title'].replace('Print complete - Spoolman', 'Print {{ outcome }} - Spoolman')\n n['data']['message'] = n['data']['message'].replace('Print complete - Spoolman', 'Print {{ outcome }} - Spoolman')\n_ljw = config['actions'][9]\n_ljc = config['actions'][10]\nconfig['actions'][9:11] = [{'if': {'condition': 'template', 'value_template': \"{{ trigger.id == 'complete' }}\"}, 'then': [_ljw, _ljc]}]", "config_hash": "48957ef7384c9039", "take_control_of_blueprint": false, "category": null, "wait": true, "enabled": null, "run_actions": false, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 424.70407485961914, "success": true, "error_message": null, "response_size_bytes": 8590, "user_context": null}
|
||||
{"timestamp": "2026-10-12T01:05:04.991332+00:00", "tool_name": "ha_call_service", "parameters": {"domain": "automation", "service": "reload", "entity_id": null, "data": null, "return_response": false, "wait": true, "verbose": false, "result_fields": null, "result_attribute_keys": null, "ws_command": null}, "execution_time_ms": 722.9030132293701, "success": true, "error_message": null, "response_size_bytes": 169, "user_context": null}
|
||||
{"timestamp": "2026-10-12T01:05:06.820451+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete"}, "execution_time_ms": 182.46841430664062, "success": true, "error_message": null, "response_size_bytes": 7041, "user_context": null}
|
||||
{"timestamp": "2026-10-12T01:05:17.058903+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete", "fields": ["state", "last_triggered"], "attribute_keys": null}, "execution_time_ms": 1.7490386962890625, "success": true, "error_message": null, "response_size_bytes": 366, "user_context": null}
|
||||
{"timestamp": "2026-10-12T01:05:18.276125+00:00", "tool_name": "ha_get_logs", "parameters": {"source": "error_log", "limit": 20, "search": "sparkx_i7_deduct", "order": "newest", "hours_back": 1, "entity_id": null, "end_time": null, "offset": 0, "compact": true, "level": "ERROR", "structured": false, "top_n": null, "slug": null}, "execution_time_ms": 1213.1056785583496, "success": true, "error_message": null, "response_size_bytes": 702, "user_context": null}
|
||||
|
||||
Reference in New Issue
Block a user