.ha_mcp/logs/mcp_usage.jsonl, .storage/lovelace.sparkx_i7
This commit is contained in:
@@ -4502,3 +4502,4 @@
|
||||
{"timestamp": "2026-10-14T17:08:24.543434+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% for n in ['1','2','3','4'] %}\n{% set c = states('sensor.sparkx_i7_cfs_box_1_slot_' ~ n ~ '_color') | replace('#','') | lower %}\n{% set ns = namespace(id='', rem=0) %}\n{% for e in integration_entities('spoolman') if e.endswith('_color_hex') %}\n{% if ns.id == '' and (states(e) | replace('#','') | lower) == c and (state_attr(e[:-10], 'location') | default('', true) | lower) == 'cfs lite' %}\n{% set ns.id = states(e[:-10] ~ '_id') %}\n{% set ns.rem = states(e[:-10]) | float(0) %}\n{% endif %}\n{% endfor %}\n{% set cname = states('sensor.sparkx_i7_slot_' ~ n ~ '_color_name') %}\n{{ n }} | color={{ c }} | name={{ cname }} | pct={{ states('sensor.sparkx_i7_cfs_box_1_slot_' ~ n ~ '_remaining') }} | filament={{ states('sensor.sparkx_i7_cfs_box_1_slot_' ~ n ~ '_filament') }} | spool={{ ns.id }} | spool_g={{ ns.rem | round(1) }}\n{% endfor %}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 96.50087356567383, "success": true, "error_message": null, "response_size_bytes": 2604, "user_context": null}
|
||||
{"timestamp": "2026-10-14T17:11:23.484675+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.spoolman_spool_3", "sensor.spoolman_spool_4", "sensor.spoolman_spool_5", "sensor.spoolman_spool_8"], "fields": ["entity_id", "state", "attributes"], "attribute_keys": ["filament_weight", "used_weight", "used_percentage", "remaining_weight", "initial_weight", "remaining_length", "used_length", "filament_name", "location"]}, "execution_time_ms": 178.58076095581055, "success": true, "error_message": null, "response_size_bytes": 1920, "user_context": null}
|
||||
{"timestamp": "2026-10-14T17:11:40.215417+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% for n in ['1','2','3','4'] %}\n{% set cname = states('sensor.sparkx_i7_slot_' ~ n ~ '_color_name') %}\n{% set color = states('sensor.sparkx_i7_cfs_box_1_slot_' ~ n ~ '_color') | replace('#','') | lower %}\n{% set ns = namespace(id='', rem=0, base=0) %}\n{% for e in integration_entities('spoolman') if e.endswith('_color_hex') %}\n{% if ns.id == '' and (states(e) | replace('#','') | lower) == color and (state_attr(e[:-10], 'location') | default('', true) | lower) == 'cfs lite' %}\n{% set ns.id = states(e[:-10] ~ '_id') %}\n{% set ns.rem = states(e[:-10]) | float(0) %}\n{% set ns.base = state_attr(e[:-10], 'filament_weight') | float(0) %}\n{% endif %}\n{% endfor %}\nSlot {{ n }}: {{ cname }} · {{ ns.rem | round(0) | int }} g left ({{ (ns.rem / ns.base * 100) | round(0) | int if ns.base > 0 else 0 }}%) [spool {{ ns.id }}, base {{ ns.base | round(0) | int }} g]\n{% endfor %}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 34.05904769897461, "success": true, "error_message": null, "response_size_bytes": 2139, "user_context": null}
|
||||
{"timestamp": "2026-10-14T17:13:29.725516+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": "cfs-fans", "mode": null, "query": null}, "execution_time_ms": 180.4063320159912, "success": true, "error_message": null, "response_size_bytes": 9064, "user_context": null}
|
||||
|
||||
@@ -851,7 +851,7 @@
|
||||
"multiline_secondary": true,
|
||||
"name": "Slot 4",
|
||||
"primary": "{{ states('sensor.sparkx_i7_cfs_box_1_slot_4_filament') }}",
|
||||
"secondary": "{% set col = states('sensor.sparkx_i7_slot_4_color_name') %}{% if col %}{{ col }} · {% endif %}{{ states('sensor.sparkx_i7_cfs_box_1_slot_4_remaining') }}% left",
|
||||
"secondary": "{% set col = states('sensor.sparkx_i7_slot_4_color_name') %}{% set color = states('sensor.sparkx_i7_cfs_box_1_slot_4_color') | replace('#','') | lower %}{% set ns = namespace(id='', rem=0, base=0) %}{% for e in integration_entities('spoolman') if e.endswith('_color_hex') %}{% if ns.id == '' and (states(e) | replace('#','') | lower) == color and (state_attr(e[:-10], 'location') | default('', true) | lower) == 'cfs lite' %}{% set ns.id = states(e[:-10] ~ '_id') %}{% set ns.rem = states(e[:-10]) | float(0) %}{% set ns.base = state_attr(e[:-10], 'filament_weight') | float(0) %}{% endif %}{% endfor %}{% if col %}{{ col }} · {% endif %}{% if ns.id != '' %}{{ ns.rem | round(0) | int }} g left ({{ (ns.rem / ns.base * 100) | round(0) | int if ns.base > 0 else 0 }}%){% else %}no spool matched{% endif %}",
|
||||
"type": "custom:mushroom-template-card"
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user