.ha_mcp/logs/mcp_usage.jsonl
This commit is contained in:
@@ -4441,3 +4441,4 @@
|
||||
{"timestamp": "2026-10-12T01:01:32.109907+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set old_slot = states('input_text.sparkx_i7_print_spool_latch') %}\n{% set color = states('sensor.sparkx_i7_cfs_' ~ (old_slot | lower | replace(' ', '_')) ~ '_color') | replace('#','') | lower %}\ncolor_hex={{ color }}\n{% set ns = namespace(id='', base='', remain='') %}\n{% for e in integration_entities('spoolman') %}\n{% if e.endswith('_color_hex') and (states(e) | replace('#','') | lower) == color and (state_attr(e[:-10], 'location') | default('', true) | lower) == 'cfs lite' and (states(e[:-10]) | float(0)) > 0 and ns.id == '' %}\n{% set ns.id = states(e[:-10] ~ '_id') %}{% set ns.base = e[:-10] %}{% set ns.remain = states(e[:-10]) %}\n{% endif %}\n{% endfor %}\nspool_id={{ ns.id }}\nspool_name={{ state_attr(ns.base, 'friendly_name') if ns.base else '' }}\nremaining_weight={{ ns.remain }}\nfinal_grams={{ (([states('sensor.sparkx_i7_used_material_length') | float(0) - (states('input_number.sparkx_i7_spoolman_length_checkpoint') | float(0)), 0] | max) * (states('input_number.sparkx_i7_filament_g_cm') | float(0.03))) | round(2) }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 36.53764724731445, "success": true, "error_message": null, "response_size_bytes": 2510, "user_context": null}
|
||||
{"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}
|
||||
|
||||
Reference in New Issue
Block a user