.ha_mcp/logs/mcp_usage.jsonl, zigbee2mqtt/state.json

This commit is contained in:
Home Assistant Version Control
2026-10-14 17:18:31 +00:00
parent 08f5221f71
commit eec92ee548
2 changed files with 17 additions and 15 deletions
+2
View File
@@ -4503,3 +4503,5 @@
{"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: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: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} {"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}
{"timestamp": "2026-10-14T17:18:25.908496+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.sparkx_i7_print_status", "sensor.sparkx_i7_expected_material_length", "sensor.sparkx_i7_expected_material_weight", "sensor.sparkx_i7_used_material_length"], "fields": null, "attribute_keys": ["material", "color", "slicer", "estimated_time_s", "gcode_file"]}, "execution_time_ms": 4.500865936279297, "success": true, "error_message": null, "response_size_bytes": 2634, "user_context": null}
{"timestamp": "2026-10-14T17:18:25.962205+00:00", "tool_name": "ha_get_automation_traces", "parameters": {"automation_id": "automation.sparkx_i7_filament_sufficiency_check_at_print_start", "run_id": null, "limit": 3, "deduplicate": true, "detailed": false, "sections": null, "offset": 0, "order": "newest", "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 74.97596740722656, "success": true, "error_message": null, "response_size_bytes": 526, "user_context": null}
+15 -15
View File
@@ -27,7 +27,7 @@
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"power": 1.9, "power": 2,
"current": 0.09, "current": 0.09,
"energy": 56.31, "energy": 56.31,
"power_factor": 0.18, "power_factor": 0.18,
@@ -47,8 +47,8 @@
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"voltage": 118.3, "voltage": 118.3,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"energy": 108.83, "energy": 108.84,
"power_factor": 0.91, "power_factor": 0.9,
"ac_frequency": 60, "ac_frequency": 60,
"update": { "update": {
"state": "idle", "state": "idle",
@@ -58,8 +58,8 @@
"latest_release_notes": null "latest_release_notes": null
}, },
"linkquality": 145, "linkquality": 145,
"power": 92.8, "power": 85.2,
"current": 0.9, "current": 0.79,
"power_on_behavior": "on" "power_on_behavior": "on"
}, },
"0xb40e060fffe031e3": { "0xb40e060fffe031e3": {
@@ -77,10 +77,10 @@
"voltage": 117.6, "voltage": 117.6,
"state": "ON", "state": "ON",
"ac_frequency": 60, "ac_frequency": 60,
"energy": 221.03, "energy": 221.04,
"power": 96.5, "power": 93.6,
"current": 0.91, "current": 0.86,
"power_factor": 0.39, "power_factor": 0.66,
"update": { "update": {
"state": "idle", "state": "idle",
"installed_version": 268513381, "installed_version": 268513381,
@@ -96,12 +96,12 @@
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"voltage": 118.8, "voltage": 118.8,
"energy": 103.6, "energy": 103.61,
"state": "ON", "state": "ON",
"power": 27.7, "power": 29.4,
"current": 0.43, "current": 0.44,
"ac_frequency": 60, "ac_frequency": 60,
"power_factor": 0.54, "power_factor": 0.57,
"update": { "update": {
"state": "idle", "state": "idle",
"installed_version": 268513381, "installed_version": 268513381,
@@ -117,8 +117,8 @@
"voltage": 118.8, "voltage": 118.8,
"ac_frequency": 60, "ac_frequency": 60,
"energy": 15.19, "energy": 15.19,
"current": 0, "current": 0.01,
"power": 0.2, "power": 0.1,
"power_factor": 0.11, "power_factor": 0.11,
"linkquality": 116, "linkquality": 116,
"update": { "update": {