.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control committed 2026-10-08 17:59:04 +00:00
1 parent 2cfd769372
commit 286450793a
1 file changed
+1
+1
View File
@@ -4034,3 +4034,4 @@
{"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}
{"timestamp": "2026-10-08T17:58:47.229958+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "sparkx-i7", "config": null, "python_transform": "slot_cards = []\nfor i in [1, 2, 3, 4]:\n ce = 'sensor.sparkx_i7_cfs_box_1_slot_' + str(i) + '_color'\n grams = 'input_number.sparkx_i7_slot_' + str(i) + '_grams'\n cname = 'sensor.sparkx_i7_slot_' + str(i) + '_color_name'\n icon_color = \"{% set c = states('\" + ce + \"') | replace('#', '') | lower %}{% if c | length == 6 %}#{{ c }}{% else %}var(--primary-color){% endif %}\"\n primary = \"{{ states('\" + cname + \"') }} (#{{ states('\" + ce + \"') | replace('#', '') | upper }})\"\n secondary = \"{% set color = states('\" + ce + \"') | replace('#', '') | lower %}{% set ns = namespace(id='') %}{% for e in integration_entities('spoolman') %}{% if e.endswith('_color_hex') and (states(e) | replace('#', '') | lower) == color %}{% set b = e[:-10] %}{% if (states(b) | float(0)) > 0 and ns.id == '' %}{% set ns.id = states(b ~ '_id') %}{% endif %}{% endif %}{% endfor %}{% if ns.id %}Spool {{ ns.id }} · {{ states('sensor.spoolman_spool_' ~ ns.id ~ '_vendor') }} · {{ states('sensor.spoolman_spool_' ~ ns.id ~ '_material') }} · {{ (states('sensor.spoolman_spool_' ~ ns.id) | float(0)) | round(1) }} g left{% elif color in ['', 'unknown', 'unavailable'] %}Slot color unavailable{% else %}No spool with stock matches this color{% endif %} · this print: {{ (states('\" + grams + \"') | float(0)) | round(1) }} g\"\n slot_cards.append({'type': 'custom:mushroom-template-card', 'entity': ce, 'name': 'Slot ' + str(i), 'icon': 'mdi:printer-filament', 'icon_color': icon_color, 'primary': primary, 'secondary': secondary, 'multiline_secondary': True, 'grid_options': {'columns': 3}})\nnm_icon_color = \"{% set slot = states('sensor.sparkx_i7_active_filament_slot') %}{% set c = states('sensor.sparkx_i7_cfs_' ~ (slot | lower | replace(' ', '_')) ~ '_color') | replace('#', '') | lower %}{% if c | length == 6 %}#{{ c }}{% else %}var(--primary-color){% endif %}\"\nnm_secondary = \"{% set slot = states('sensor.sparkx_i7_active_filament_slot') %}{% set ce = 'sensor.sparkx_i7_cfs_' ~ (slot | lower | replace(' ', '_')) ~ '_color' %}{% set color = states(ce) | replace('#', '') | lower %}{% set ns = namespace(id='') %}{% for e in integration_entities('spoolman') %}{% if e.endswith('_color_hex') and (states(e) | replace('#', '') | lower) == color %}{% set b = e[:-10] %}{% if (states(b) | float(0)) > 0 and ns.id == '' %}{% set ns.id = states(b ~ '_id') %}{% endif %}{% endif %}{% endfor %}{% if ns.id %}Color #{{ color | upper }} → spool {{ ns.id }} ({{ states('sensor.spoolman_spool_' ~ ns.id ~ '_filament_name') }} · {{ (states('sensor.spoolman_spool_' ~ ns.id) | float(0)) | round(1) }} g left){% elif slot in ['', 'unknown', 'unavailable'] %}No slot latched{% elif color in ['', 'unknown', 'unavailable'] %}Slot color unavailable{% else %}Color #{{ color | upper }} — no spool with stock{% endif %}\"\nsec_a = {'type': 'grid', 'cards': [\n {'type': 'heading', 'heading': 'CFS Slots — per-color deduction', 'icon': 'mdi:printer-filament'}\n] + slot_cards + [\n {'type': 'tile', 'entity': 'input_number.sparkx_i7_spoolman_length_checkpoint', 'name': 'Length Checkpoint (cm)', 'icon': 'mdi:ruler-measure', 'grid_options': {'columns': 3}},\n {'type': 'tile', 'entity': 'input_text.sparkx_i7_print_spool_latch', 'name': 'Latched CFS Slot', 'icon': 'mdi:link-variant', 'grid_options': {'columns': 3}},\n {'type': 'tile', 'entity': 'sensor.sparkx_i7_used_material_length', 'name': 'Used Material Total (cm)', 'icon': 'mdi:plus-minus', 'grid_options': {'columns': 3}},\n {'type': 'custom:mushroom-template-card', 'entity': 'sensor.sparkx_i7_active_filament_slot', 'name': 'Next Deduction Match', 'icon': 'mdi:magnet', 'icon_color': nm_icon_color, 'primary': \"{{ states('sensor.sparkx_i7_active_filament_slot') }}\", 'secondary': nm_secondary, 'multiline_secondary': True, 'grid_options': {'columns': 'full'}},\n {'type': 'markdown', 'content': '**Spoolman UI:** [http://2c829f0e-spoolman.local.hass.io:7912](http://2c829f0e-spoolman.local.hass.io:7912)\\n\\nEach CFS slot is matched to the Spoolman spool with the same **color hex** that still has stock (remaining > 0). All 4 rolls live in the **CFS Lite** location in Spoolman.\\n\\n**Replaced a roll?** Register the new roll in Spoolman with the same color hex (location CFS Lite). No Home Assistant changes needed — exhausted spools are skipped automatically.', 'grid_options': {'columns': 'full'}}\n]}\ndetail = []\nfor sid, cname, slotn in [(3, 'Black', 1), (4, 'Crimson', 2), (5, 'White', 3), (6, 'Gold', 4)]:\n NS = 'sensor.spoolman_spool_' + str(sid)\n swatch = \"{% set c = states('\" + NS + \"_color_hex') | replace('#', '') | lower %}{% if c | length == 6 %}#{{ c }}{% else %}var(--primary-text-color){% endif %}\"\n cards = [\n {'type': 'heading', 'heading': 'Spool ' + str(sid) + ' — ' + cname + ' · CFS Slot ' + str(Line truncated
{"timestamp": "2026-10-08T17:58:58.311092+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": 11.150598526000977, "success": true, "error_message": null, "response_size_bytes": 27628, "user_context": null}