.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control
2026-10-15 17:11:21 +00:00
parent 2a592b3bd8
commit 155fca0d69
+1
View File
@@ -4640,3 +4640,4 @@
{"timestamp": "2026-10-15T17:08:59.865027+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set slot = states('sensor.sparkx_i7_active_filament_slot') %}\n{% set n = slot.split('_')[-1] %}\n{% set ce = 'sensor.sparkx_i7_cfs_' ~ (slot | lower | replace(' ', '_')) ~ '_color' %}\n{% set color = states(ce) | replace('#', '') | lower %}\n{% set ns = namespace(id='', rem=-1) %}\n{% for e in integration_entities('spoolman') %}\n{% if e.endswith('_color_hex') and (state_attr(e[:-10], 'location') | default('', true) | lower) == ('cfs lite ' ~ n) and ns.id == '' %}\n{% set ns.id = states(e[:-10] ~ '_id') %}\n{% set ns.rem = states(e[:-10]) | float(-1) %}\n{% endif %}\n{% endfor %}\n{% if slot in ['', 'unknown', 'unavailable'] %}No slot latched\n{% elif ns.id == '' %}No spool assigned to CFS Lite {{ n }}\n{% elif ns.rem < 0 %}Color #{{ color | upper }} → spool {{ ns.id }} unreachable\n{% elif ns.rem == 0 %}Color #{{ color | upper }} → spool {{ ns.id }} is EMPTY\n{% else %}Color #{{ color | upper }} → spool {{ ns.id }} ({{ states('sensor.spoolman_spool_' ~ ns.id ~ '_filament_name') }} · {{ ns.rem | round(1) }} g left)\n{% endif %}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 30.5631160736084, "success": true, "error_message": null, "response_size_bytes": 1581, "user_context": null}
{"timestamp": "2026-10-15T17:08:59.867877+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set st = states('sensor.sparkx_i7_print_status') %}\n{% set w = states('sensor.sparkx_i7_filament_weight_estimated') %}\n{% if st in ['printing', 'paused'] %}\n {% if is_number(w) %}{{ w | float | round(1) }} g{% else %}weight unavailable{% endif %}\n{% else %}\n Last: {{ states('input_number.sparkx_i7_last_job_filament_weight') | float(0) | round(1) }} g\n{% endif %} | {% set c = states('sensor.sparkx_i7_filament_cost') %}\n{% if st in ['printing', 'paused'] %}\n {% if is_number(c) %}{{ c | float | round(2) }} $ (live){% else %}cost unavailable{% endif %}\n{% else %}\n {{ states('input_number.sparkx_i7_last_job_cost') | float(0) | round(2) }} $ (last job)\n{% endif %}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 32.74226188659668, "success": true, "error_message": null, "response_size_bytes": 948, "user_context": null}
{"timestamp": "2026-10-15T17:09:41.993410+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "3d-printer-cellphone", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": null, "query": null, "describe": false}, "execution_time_ms": 3.2701492309570312, "success": true, "error_message": null, "response_size_bytes": 9156, "user_context": null}
{"timestamp": "2026-10-15T17:11:15.473441+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "3d-printer-cellphone", "config": null, "python_transform": "c = config['views'][0]['sections'][0]['cards']\nc[13]['max'] = 40\nc[13]['severity'] = {'green': 0, 'yellow': 12, 'red': 24}\nc[7]['grid_options'] = {'columns': 6, 'rows': 1}\nc[6]['name'] = 'Used Material Total'\ndel c[8]", "config_hash": "e6f18b82b1080b91", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": false, "BestPracticeKey": null, "return_screenshot": false, "view_path": null, "patch": null}, "execution_time_ms": 15088.298082351685, "success": true, "error_message": null, "response_size_bytes": 771, "user_context": null}