.ha_mcp/logs/mcp_usage.jsonl
This commit is contained in:
@@ -4367,3 +4367,5 @@
|
|||||||
{"timestamp": "2026-10-11T03:52:10.823878+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete"}, "execution_time_ms": 878.4890174865723, "success": true, "error_message": null, "response_size_bytes": 5980, "user_context": null}
|
{"timestamp": "2026-10-11T03:52:10.823878+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete"}, "execution_time_ms": 878.4890174865723, "success": true, "error_message": null, "response_size_bytes": 5980, "user_context": null}
|
||||||
{"timestamp": "2026-10-11T03:52:40.263776+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "sparkx-i7", "config": null, "python_transform": "for c in config['views'][0]['sections'][4]['cards']:\n if c.get('name') == 'Filament Used':\n c['primary'] = \"{% 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 %}\"\n elif c.get('name') == 'Job Cost (total)':\n c['entity'] = 'input_number.sparkx_i7_last_job_cost'\n c['multiline_secondary'] = True\n c['primary'] = \"{% 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 %}\"\n c['secondary'] = \"{% set st = states('sensor.sparkx_i7_print_status') %}{% if st in ['printing', 'paused'] %}this job (live){% else %}last job{% endif %}\"\n c['type'] = 'custom:mushroom-template-card'", "config_hash": "b19b095defd4f5fe", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": true, "BestPracticeKey": null, "return_screenshot": false, "view_path": null, "patch": null}, "execution_time_ms": 133.79645347595215, "success": true, "error_message": null, "response_size_bytes": 33779, "user_context": null}
|
{"timestamp": "2026-10-11T03:52:40.263776+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "sparkx-i7", "config": null, "python_transform": "for c in config['views'][0]['sections'][4]['cards']:\n if c.get('name') == 'Filament Used':\n c['primary'] = \"{% 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 %}\"\n elif c.get('name') == 'Job Cost (total)':\n c['entity'] = 'input_number.sparkx_i7_last_job_cost'\n c['multiline_secondary'] = True\n c['primary'] = \"{% 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 %}\"\n c['secondary'] = \"{% set st = states('sensor.sparkx_i7_print_status') %}{% if st in ['printing', 'paused'] %}this job (live){% else %}last job{% endif %}\"\n c['type'] = 'custom:mushroom-template-card'", "config_hash": "b19b095defd4f5fe", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": true, "BestPracticeKey": null, "return_screenshot": false, "view_path": null, "patch": null}, "execution_time_ms": 133.79645347595215, "success": true, "error_message": null, "response_size_bytes": 33779, "user_context": null}
|
||||||
{"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: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}
|
||||||
|
|||||||
Reference in New Issue
Block a user