.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control
2026-10-08 18:30:27 +00:00
parent 8a40fdbb82
commit 383f4a5d1c
+2
View File
@@ -4044,3 +4044,5 @@
{"timestamp": "2026-10-08T18:11:17.122224+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.spoolman_spool_3_used_weight", "sensor.spoolman_spool_3_used_percentage", "sensor.spoolman_spool_7", "sensor.spoolman_spool_8"], "fields": "entity_id,state,attributes", "attribute_keys": null}, "execution_time_ms": 19.273757934570312, "success": true, "error_message": null, "response_size_bytes": 1942, "user_context": null}
{"timestamp": "2026-10-08T18:23:38.413403+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": 12.33530044555664, "success": true, "error_message": null, "response_size_bytes": 27628, "user_context": null}
{"timestamp": "2026-10-08T18:28:53.634943+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set bb = 'sensor.spoolman_spool_3' %}\n**Spool {{ states(bb ~ '_id') }}** · {{ state_attr(bb, 'filament_vendor_name') }} · {{ state_attr(bb, 'filament_material') }}\n**Filament:** {{ state_attr(bb, 'filament_name') }} · #{{ state_attr(bb, 'filament_color_hex') | replace('#', '') | upper }}\n**Remaining:** {{ state_attr(bb, 'remaining_weight') }} g · used {{ state_attr(bb, 'used_weight') }} g ({{ state_attr(bb, 'used_percentage') }}%)\n**Length:** {{ state_attr(bb, 'remaining_length') }} mm left · {{ state_attr(bb, 'used_length') }} mm used\n**Spool:** Ø{{ state_attr(bb, 'filament_diameter') }} mm · {{ state_attr(bb, 'filament_density') }} g/cm³ · {{ state_attr(bb, 'filament_weight') }} g\n**Temps:** bed {{ state_attr(bb, 'filament_settings_bed_temp') }}°C / hotend {{ state_attr(bb, 'filament_settings_extruder_temp') }}°C\n**Flow:** {{ states(bb ~ '_flow_rate') }} · **Runout:** {{ states(bb ~ '_estimated_runout') }}\n**Registered:** {{ state_attr(bb, 'registered') }} · **Location:** {{ state_attr(bb, 'location') }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 60.36734580993652, "success": true, "error_message": null, "response_size_bytes": 1650, "user_context": null}
{"timestamp": "2026-10-08T18:30:20.847753+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": 126.52206420898438, "success": true, "error_message": null, "response_size_bytes": 27628, "user_context": null}
{"timestamp": "2026-10-08T18:30:20.864219+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set color = states('sensor.sparkx_i7_cfs_box_1_slot_1_color') | 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 %}{% set bb = 'sensor.spoolman_spool_' ~ ns.id %}{% if ns.id %}MATCH id={{ ns.id }} base={{ bb }} color={{ color }} state={{ states(bb) }} loc={{ state_attr(bb, 'location') }} reg={{ state_attr(bb, 'registered') }} vendor={{ state_attr(bb, 'filament_vendor_name') }} mat={{ state_attr(bb, 'filament_material') }} name={{ state_attr(bb, 'filament_name') }} dens={{ state_attr(bb, 'filament_density') }} diam={{ state_attr(bb, 'filament_diameter') }} w={{ state_attr(bb, 'filament_weight') }} ters={{ state_attr(bb, 'filament_settings_extruder_temp') }} tbed={{ state_attr(bb, 'filament_settings_bed_temp') }} extra={{ state_attr(bb, 'not_a_real_attr') }} flow={{ states(bb ~ '_flow_rate') }} runout={{ states(bb ~ '_estimated_runout') }}{% else %}NO_MATCH{% endif %}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 145.97225189208984, "success": true, "error_message": null, "response_size_bytes": 1825, "user_context": null}