.ha_mcp/logs/mcp_usage.jsonl
This commit is contained in:
@@ -4486,3 +4486,5 @@
|
||||
{"timestamp": "2026-10-14T13:16:55.812722+00:00", "tool_name": "ha_search", "parameters": {"query": "spoolman_spool_8", "domain_filter": "sensor", "area_filter": null, "search_types": null, "limit": 10, "offset": 0, "exact_match": true, "include_hidden": true, "include_config": false, "group_by_domain": false, "per_domain_limit": null, "state_filter": null, "result_fields": ["entity_id", "state"], "fields": null, "config_time_budget": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 108.16359519958496, "success": true, "error_message": null, "response_size_bytes": 1441, "user_context": null}
|
||||
{"timestamp": "2026-10-14T13:17:10.876096+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set gm = states('input_number.sparkx_i7_filament_g_cm') | float(0.0298) %}{% set req = (states('sensor.sparkx_i7_expected_material_length') | float(0)) * gm %}{% set ns = namespace(lines=[], avail=0.0, missing=0, count=0) %}{% for s in ['1', '2', '3', '4'] %}{% set col = states('sensor.sparkx_i7_cfs_box_1_slot_' ~ s ~ '_color') | replace('#', '') | lower %}{% set mat = states('sensor.sparkx_i7_cfs_box_1_slot_' ~ s ~ '_filament') %}{% if col not in ['', 'unknown', 'unavailable', 'none'] and mat not in ['', 'unknown', 'unavailable', 'none'] %}{% set ns.count = ns.count + 1 %}{% set sid = namespace(id='') %}{% for e in integration_entities('spoolman') %}{% if sid.id == '' and e.endswith('_color_hex') and (states(e) | replace('#', '') | lower) == col and (state_attr(e[:-10], 'location') | default('', true) | lower) == 'cfs lite' and (states(e[:-10]) | float(0)) > 0 %}{% set sid.id = e[:-10] %}{% endif %}{% endfor %}{% if sid.id == '' %}{% set ns.missing = ns.missing + 1 %}{% set ns.lines = ns.lines + ['Slot ' ~ s ~ ' ' ~ mat ~ ' (#' ~ (col | upper) ~ '): no Spoolman spool in CFS Lite'] %}{% else %}{% set rem = states(sid.id) | float(0) %}{% set ns.avail = ns.avail + rem %}{% set ns.lines = ns.lines + ['Slot ' ~ s ~ ' ' ~ mat ~ ' (#' ~ (col | upper) ~ '): ' ~ (rem | round(1)) ~ ' g'] %}{% endif %}{% endif %}{% endfor %}{% set a = ns.avail | round(1) %}{% set r = req | round(1) %}{% set status = ('Cannot verify: no loaded CFS slot detected' if ns.count == 0 else (('Cannot verify: slicer estimate not available yet (available ' ~ a ~ ' g)') if req <= 0 else (('NOT ENOUGH: needs ~' ~ r ~ ' g, available ' ~ a ~ ' g (short ~' ~ ((req - ns.avail) | round(1)) ~ ' g)') if ns.avail < req else ('Enough: needs ~' ~ r ~ ' g, available ' ~ a ~ ' g')))) %}{% set tip = ((ns.missing | string) ~ ' loaded colour(s) have no Spoolman spool in CFS Lite') if ns.missing > 0 else '' %}{{ [status, tip, (ns.lines | join('\\n'))] | select | join('\\n') }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 136.10172271728516, "success": true, "error_message": null, "response_size_bytes": 3072, "user_context": null}
|
||||
{"timestamp": "2026-10-14T13:30:20.716554+00:00", "tool_name": "ha_search", "parameters": {"query": "sparkx_i7", "domain_filter": null, "area_filter": null, "search_types": null, "limit": 100, "offset": 0, "exact_match": true, "include_hidden": true, "include_config": false, "group_by_domain": false, "per_domain_limit": null, "state_filter": null, "result_fields": ["entity_id", "state"], "fields": null, "config_time_budget": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 515.5932903289795, "success": true, "error_message": null, "response_size_bytes": 15393, "user_context": null}
|
||||
{"timestamp": "2026-10-14T13:30:29.280651+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.sparkx_i7_filament_consumption", "sensor.sparkx_i7_expected_material_length", "sensor.sparkx_i7_expected_material_weight", "sensor.sparkx_i7_cfs_box_1_slot_3_remaining", "sensor.sparkx_i7_print_job_time", "sensor.sparkx_i7_used_material_length", "sensor.sparkx_i7_filament_weight_estimated"], "fields": null, "attribute_keys": null}, "execution_time_ms": 6.408452987670898, "success": true, "error_message": null, "response_size_bytes": 4345, "user_context": null}
|
||||
{"timestamp": "2026-10-14T13:30:29.302798+00:00", "tool_name": "ha_get_device", "parameters": {"device_id": null, "entity_id": "sensor.sparkx_i7_filament_consumption", "integration": null, "area_id": null, "manufacturer": null, "limit": 50, "offset": 0, "detail_level": "summary"}, "execution_time_ms": 16.71123504638672, "success": true, "error_message": null, "response_size_bytes": 14406, "user_context": null}
|
||||
|
||||
Reference in New Issue
Block a user