.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control
2026-10-12 01:01:37 +00:00
parent d4d82ba4c5
commit c6b93676ed
+1
View File
@@ -4438,3 +4438,4 @@
{"timestamp": "2026-10-12T01:00:10.706690+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete"}, "execution_time_ms": 88.40394020080566, "success": true, "error_message": null, "response_size_bytes": 6368, "user_context": null}
{"timestamp": "2026-10-12T01:00:39.356786+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.sparkx_i7_print_status", "input_text.sparkx_i7_print_spool_latch", "input_number.sparkx_i7_spoolman_length_checkpoint", "sensor.sparkx_i7_used_material_length", "input_number.sparkx_i7_filament_g_cm", "input_number.sparkx_i7_last_job_filament_weight", "input_number.sparkx_i7_last_job_cost", "input_number.sparkx_i7_slot_1_grams"], "fields": null, "attribute_keys": null}, "execution_time_ms": 3.2265186309814453, "success": true, "error_message": null, "response_size_bytes": 5235, "user_context": null}
{"timestamp": "2026-10-12T01:00:39.601889+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "1791477238762"}, "execution_time_ms": 249.27139282226562, "success": true, "error_message": null, "response_size_bytes": 5672, "user_context": null}
{"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}