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

This commit is contained in:
Home Assistant Version Control
2026-10-15 16:43:38 +00:00
parent 340f99bbb2
commit 169eb77bb8
2 changed files with 17 additions and 16 deletions
+1
View File
@@ -4627,3 +4627,4 @@
{"timestamp": "2026-10-15T16:23:44.717202+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set ns = namespace(cards=[]) %}\n{% for n in [1, 2, 3, 4] %}\n {% set sp = namespace(ent='') %}\n {% for s in states.sensor %}\n {% if sp.ent == '' and s.entity_id.startswith('sensor.spoolman_spool_') %}\n {% set loc = (s.attributes.location | default('')) | lower %}\n {% if loc == ('cfs lite ' ~ n) %}\n {% set sp.ent = s.entity_id %}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% if sp.ent != '' %}\n {% set hex = state_attr(sp.ent, 'filament_color_hex') | default('44739e') %}\n {% set hex_clean = hex if hex.startswith('#') else '#' ~ hex %}\n {% set remain = (state_attr(sp.ent, 'remaining_weight') | default(states(sp.ent)) | float(0)) | round(1) %}\n {% set total = state_attr(sp.ent, 'filament_weight') | float(0) %}\n {% set raw_pct = ((remain / total) * 100) | round(1) if total > 0 else 0 %}\n {% set pct = 0 if raw_pct < 0 else (100 if raw_pct > 100 else raw_pct) %}\n {% set card = {\"slot\": n, \"entity\": sp.ent, \"hex\": hex_clean, \"remain\": remain, \"total\": total, \"pct\": pct} %}\n {% set ns.cards = ns.cards + [card] %}\n {% endif %}\n{% endfor %}\n{{ ns.cards | tojson }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 157.8845977783203, "success": true, "error_message": null, "response_size_bytes": 1866, "user_context": null}
{"timestamp": "2026-10-15T16:26:20.673229+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "3d-printer-cellphone", "list_only": false, "force_reload": false, "entity_id": null, "card_type": "custom:auto-entities", "heading": null, "include_config": true, "include_screenshot": false, "view_path": null, "query": null, "describe": false}, "execution_time_ms": 153.18608283996582, "success": true, "error_message": null, "response_size_bytes": 4216, "user_context": null}
{"timestamp": "2026-10-15T16:26:20.681802+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set ns = namespace(out=[]) %}\n{% for n in [1, 2, 3, 4] %}\n {% set sp = namespace(ent='') %}\n {% for s in states.sensor %}\n {% if sp.ent == '' and s.entity_id.startswith('sensor.spoolman_spool_') %}\n {% set loc = (s.attributes.location | default('')) | lower %}\n {% if loc == ('cfs lite ' ~ n) %}\n {% set sp.ent = s.entity_id %}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% if sp.ent != '' %}\n {% set hex = state_attr(sp.ent, 'filament_color_hex') | default('44739e') %}\n {% set hex_clean = hex if hex.startswith('#') else '#' ~ hex %}\n {% set remain = (state_attr(sp.ent, 'remaining_weight') | default(states(sp.ent)) | float(0)) | round(1) %}\n {% set total = state_attr(sp.ent, 'filament_weight') | float(0) %}\n {% set pct = ((remain / total) * 100) | round(0) | int if total > 0 else 0 %}\n {% set ns.out = ns.out + ['Slot ' ~ n ~ ': ' ~ state_attr(sp.ent, 'filament_name') ~ ' | ' ~ remain ~ 'g | ' ~ pct ~ '% | ' ~ hex_clean] %}\n {% else %}\n {% set ns.out = ns.out + ['Slot ' ~ n ~ ': (no spool matched)'] %}\n {% endif %}\n{% endfor %}\n{{ ns.out | join('\\n') }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 162.2483730316162, "success": true, "error_message": null, "response_size_bytes": 1580, "user_context": null}
{"timestamp": "2026-10-15T16:43:30.907072+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "3d-printer-cellphone", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": null, "query": null, "describe": false}, "execution_time_ms": 1.7998218536376953, "success": true, "error_message": null, "response_size_bytes": 8427, "user_context": null}
+16 -16
View File
@@ -4,7 +4,7 @@
"state": "ON",
"led_brightness": 100,
"countdown_to_turn_off": 0,
"voltage": 119.8,
"voltage": 120.5,
"countdown_to_turn_on": 0,
"ac_frequency": 60,
"power_factor": 0.14,
@@ -45,10 +45,10 @@
"state": "ON",
"led_brightness": 100,
"countdown_to_turn_off": 0,
"voltage": 119.2,
"voltage": 119.6,
"countdown_to_turn_on": 0,
"energy": 109.63,
"power_factor": 0.1,
"power_factor": 0.2,
"ac_frequency": 60,
"update": {
"state": "idle",
@@ -74,13 +74,13 @@
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"voltage": 118.4,
"voltage": 118.1,
"state": "ON",
"ac_frequency": 60,
"energy": 222.75,
"power": 1.1,
"current": 0.05,
"power_factor": 0.39,
"energy": 222.76,
"power": 103.6,
"current": 0.95,
"power_factor": 0.95,
"update": {
"state": "idle",
"installed_version": 268513381,
@@ -95,13 +95,13 @@
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"voltage": 119.6,
"energy": 104.3,
"voltage": 120.2,
"energy": 104.31,
"state": "ON",
"power": 51.4,
"current": 0.45,
"power": 38.3,
"current": 0.43,
"ac_frequency": 60,
"power_factor": 0.81,
"power_factor": 0.74,
"update": {
"state": "idle",
"installed_version": 268513381,
@@ -114,7 +114,7 @@
},
"0xffffb40e060895b3": {
"state": "ON",
"voltage": 119.6,
"voltage": 120.1,
"ac_frequency": 60,
"energy": 15.31,
"current": 0.01,
@@ -136,14 +136,14 @@
"0xffffb40e0608864e": {
"led_brightness": 100,
"countdown_to_turn_off": 0,
"voltage": 119.8,
"voltage": 120,
"energy": 37.97,
"countdown_to_turn_on": 0,
"state": "ON",
"current": 0.04,
"ac_frequency": 60,
"power": 2.1,
"power_factor": 0.48,
"power_factor": 0.41,
"update": {
"state": "idle",
"installed_version": 268513381,