.ha_mcp/logs/mcp_usage.jsonl
This commit is contained in:
@@ -4032,3 +4032,4 @@
|
||||
{"timestamp": "2026-10-08T17:52:21.426837+00:00", "tool_name": "ha_config_set_script", "parameters": {"script_id": "spoolman_set_spool_remaining", "config": null, "python_transform": "config['description'] = 'Sets a Spoolman spool remaining weight from the shared helper input_number.spoolman_set_remaining. Pass slot (1-4) to resolve the spool by the CFS slot color hex (no remaining-weight guard, so an exhausted spool can be reset to full), or pass spool_id directly. Notifies via persistent notification when nothing could be resolved.'\nconfig['fields'] = {\n 'slot': {'name': 'CFS Slot', 'description': 'CFS slot number 1-4 - resolves the spool by the slot color hex', 'selector': {'number': {'min': 1, 'max': 4, 'mode': 'box'}}},\n 'spool_id': {'name': 'Spool ID', 'description': 'Direct Spoolman spool ID - used when no slot is given', 'selector': {'number': {'min': 1, 'max': 9999, 'mode': 'box'}}}\n}\nconfig['sequence'] = [\n {'variables': {'resolved_id': \"{% set n = (slot | int(0)) if slot is defined else 0 %}{% if n >= 1 %}{% set color = states('sensor.sparkx_i7_cfs_box_1_slot_' ~ (n | int) ~ '_color') | replace('#', '') | lower %}{% set ns = namespace(id='') %}{% for e in integration_entities('spoolman') %}{% if e.endswith('_color_hex') and (states(e) | replace('#', '') | lower) == color and ns.id == '' %}{% set ns.id = states(e[:-10] ~ '_id') %}{% endif %}{% endfor %}{{ ns.id }}{% else %}{{ (spool_id | int(0)) if spool_id is defined else 0 }}{% endif %}\", 'slot_n': \"{{ (slot | int(0)) if slot is defined else 0 }}\"}},\n {'choose': [\n {'conditions': {'condition': 'template', 'value_template': '{{ resolved_id | int(0) > 0 }}'},\n 'sequence': [{'action': 'spoolman.patch_spool', 'data': {'id': \"{{ resolved_id | int(0) }}\", 'remaining_weight': \"{{ states('input_number.spoolman_set_remaining') | float(0) }}\"}}]}\n ], 'default': [\n {'action': 'notify.persistent_notification', 'data': {'title': 'Spoolman - remaining not set', 'message': \"{% if slot_n | int >= 1 %}No Spoolman spool matched CFS slot {{ slot_n }} (color {{ states('sensor.sparkx_i7_cfs_box_1_slot_' ~ (slot_n | int) ~ '_color') }}) - register a spool with that color hex in Spoolman, then try again.{% else %}No spool resolved - pass spool_id or a CFS slot 1-4. Nothing was set.{% endif %}\"}}\n ]}\n]", "config_hash": "437793b4a720ad6a", "take_control_of_blueprint": false, "category": null, "wait": true, "run": null, "variables": null, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 432.71756172180176, "success": true, "error_message": null, "response_size_bytes": 81020, "user_context": null}
|
||||
{"timestamp": "2026-10-08T17:52:54.751723+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": "spoolman", "mode": null, "query": null}, "execution_time_ms": 9.920358657836914, "success": true, "error_message": null, "response_size_bytes": 7760, "user_context": null}
|
||||
{"timestamp": "2026-10-08T17:52:54.757848+00:00", "tool_name": "ha_config_get_script", "parameters": {"script_id": "spoolman_set_spool_remaining"}, "execution_time_ms": 20.314455032348633, "success": true, "error_message": null, "response_size_bytes": 2243, "user_context": null}
|
||||
{"timestamp": "2026-10-08T17:56:17.201904+00:00", "tool_name": "ha_search", "parameters": {"query": "spoolman_spool_6", "domain_filter": null, "area_filter": null, "search_types": null, "limit": 30, "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": 147.18079566955566, "success": true, "error_message": null, "response_size_bytes": 1924, "user_context": null}
|
||||
|
||||
Reference in New Issue
Block a user