.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control
2026-10-15 20:57:35 +00:00
parent d0200381ac
commit e3e4db83e3
+2
View File
@@ -4682,3 +4682,5 @@
{"timestamp": "2026-10-15T20:56:19.470132+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set hex = state_attr('sensor.spoolman_spool_8', 'filament_color_hex') ~ '' %}\n{% set hex_clean = (hex | replace('#','') | lower ~ 'ffffff')[0:6] %}\n{% set remain = states('sensor.spoolman_spool_8') | float(0) %}\n{% set total = state_attr('sensor.spoolman_spool_8', 'filament_weight') | float(1000) %}\n{% set raw_pct = (remain / total * 100) if total > 0 else 0 %}\n{% set pct = [raw_pct, 100] | min %}\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)' %}\nhex={{ hex }} clean={{ hex_clean }} remain={{ remain }} total={{ total }} raw_pct={{ raw_pct }} pct={{ pct }} tr={{ tr }} tg={{ tg }} tb={{ tb }} lum={{ lum }} text={{ text }} halo={{ halo }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 26.816844940185547, "success": true, "error_message": null, "response_size_bytes": 1241, "user_context": null}
{"timestamp": "2026-10-15T20:57:04.167098+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": "text-shadow", "describe": false}, "execution_time_ms": 108.71243476867676, "success": true, "error_message": null, "response_size_bytes": 379, "user_context": null}
{"timestamp": "2026-10-15T20:57:04.172566+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": "v.text", "describe": false}, "execution_time_ms": 89.6005630493164, "success": true, "error_message": null, "response_size_bytes": 374, "user_context": null}
{"timestamp": "2026-10-15T20:57:29.034978+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": "custom:auto-entities", "heading": null, "include_config": false, "include_screenshot": false, "view_path": null, "query": null, "describe": false}, "execution_time_ms": 9.48786735534668, "success": true, "error_message": null, "response_size_bytes": 661, "user_context": null}
{"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}