.ha_mcp/logs/mcp_usage.jsonl
This commit is contained in:
@@ -4484,3 +4484,4 @@
|
||||
{"timestamp": "2026-10-14T13:15:45.798686+00:00", "tool_name": "ha_search", "parameters": {"query": "sparkx_i7_cfs", "domain_filter": "sensor", "area_filter": null, "search_types": null, "limit": 40, "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": 153.75971794128418, "success": true, "error_message": null, "response_size_bytes": 2013, "user_context": null}
|
||||
{"timestamp": "2026-10-14T13:16:55.715156+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.sparkx_i7_print_status", "sensor.sparkx_i7_expected_material_length", "sensor.sparkx_i7_active_filament_slot", "input_number.sparkx_i7_filament_g_cm"], "fields": ["entity_id", "state"], "attribute_keys": null}, "execution_time_ms": 8.612394332885742, "success": true, "error_message": null, "response_size_bytes": 851, "user_context": null}
|
||||
{"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}
|
||||
|
||||
Reference in New Issue
Block a user