.ha_mcp/logs/mcp_usage.jsonl
This commit is contained in:
@@ -4686,3 +4686,4 @@
|
||||
{"timestamp": "2026-10-15T20:57:29.043760+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "sparkx-i7", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": null, "query": "This print so far", "describe": false}, "execution_time_ms": 18.799781799316406, "success": true, "error_message": null, "response_size_bytes": 7768, "user_context": null}
|
||||
{"timestamp": "2026-10-15T20:58:06.030962+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": "filament_color_hex", "describe": false}, "execution_time_ms": 18.613100051879883, "success": true, "error_message": null, "response_size_bytes": 5272, "user_context": null}
|
||||
{"timestamp": "2026-10-15T20:58:06.035869+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": "tube", "describe": false}, "execution_time_ms": 19.455671310424805, "success": true, "error_message": null, "response_size_bytes": 5258, "user_context": null}
|
||||
{"timestamp": "2026-10-15T20:59:06.439869+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set out = namespace(l=[]) %}\n{% for n in [1,2,3,4] %}\n{% set ent = 'sensor.spoolman_spool_' ~ [9,4,5,8][n-1] %}\n{% set hex = state_attr(ent, 'filament_color_hex') | default('44739e') %}\n{% set hex_clean = hex if hex.startswith('#') else '#' ~ hex %}\n{% set remain = (state_attr(ent, 'remaining_weight') | default(states(ent)) | float(0)) %}\n{% set total = state_attr(ent, 'filament_weight') | float(1000) %}\n{% set raw_pct = ((remain / total) * 100) if total > 0 else 0 %}\n{% set pct = 0 if raw_pct < 0 else (100 if raw_pct > 100 else raw_pct) %}\n{% set tr = hex_clean[1:3] | int(0, 16) %}\n{% set tg = hex_clean[3:5] | int(0, 16) %}\n{% set tb = hex_clean[5:7] | int(0, 16) %}\n{% set lum = 0.2126 * tr + 0.7152 * tg + 0.0722 * tb %}\n{% set text = '#ffffff' if (pct >= 60 and lum <= 170) else '#111111' %}\n{% set halo = 'rgba(0,0,0,0.9)' if text == '#ffffff' else 'rgba(255,255,255,0.95)' %}\n{% set out.l = out.l + ['slot' ~ n ~ ' hex=' ~ hex_clean ~ ' pct=' ~ pct ~ ' lum=' ~ lum ~ ' -> ' ~ text ~ ' halo=' ~ halo] %}\n{% endfor %}\n{{ out.l | join(' | ') }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 186.7539882659912, "success": true, "error_message": null, "response_size_bytes": 1656, "user_context": null}
|
||||
|
||||
Reference in New Issue
Block a user