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

This commit is contained in:
Home Assistant Version Control
2026-10-15 16:47:22 +00:00
parent 34689c374e
commit 00c2f5c77d
2 changed files with 17 additions and 16 deletions
+1
View File
@@ -4634,3 +4634,4 @@
{"timestamp": "2026-10-15T16:45:32.423431+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set out = [] %}\n{% for n in [1,2,3,4] %}\n {% set sp = namespace(ent='', loc='') %}\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) %}{% set sp.ent = s.entity_id %}{% set sp.loc = s.attributes.location %}{% endif %}\n {% endif %}\n {% endfor %}\n {% if sp.ent != '' %}\n {% set r = states(sp.ent) | float(0) %}\n {% set band = 2 if r < 25 else (1 if r < 100 else 0) %}\n {% set out = out + ['Slot ' ~ n ~ ' -> ' ~ sp.loc ~ ' (' ~ (r|round(1)) ~ ' g, band ' ~ band ~ ')'] %}\n {% else %}\n {% set out = out + ['Slot ' ~ n ~ ' -> NO MATCHING SPOOL (tube would be omitted from card)'] %}\n {% endif %}\n{% endfor %}\n{{ out | join('\\n') }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 231.8730354309082, "success": true, "error_message": null, "response_size_bytes": 1068, "user_context": null}
{"timestamp": "2026-10-15T16:46:12.911741+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set results = [] %}\n{% set r1 = 'unavailable' | round(2) %}\nOK", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 252.5191307067871, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"ValueError: Template error: round got invalid input 'unavailable' when rendering template '{% set results = [] %}\\n{% set r1 = 'unavailable' | round(2) %}\\nOK' but no default was specified\",\n \"suggestion\": \"Fix the template at the reported line, if one is given, then evaluate it again\",\n \"suggestions\": [\n \"Fix the template at the reported line, if one is given, then evaluate it again\",\n \"Use default values for missing data: {{ states('sensor.temp') | float(0) }}\",\n \"Verify entity_ids exist using ha_get_state() or ha_search()\",\n \"Pass values the template expects through 'variables'\"\n ]\n },\n \"template\": \"{% set results = [] %}\\n{% set r1 = 'unavailable' | round(2) %}\\nOK\",\n \"line\": 2,\n \"source_line\": \"{% set r1 = 'unavailable' | round(2) %}\"\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-10-15T16:46:12.922819+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='', loc='') %}\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) %}{% set sp.ent = s.entity_id %}{% set sp.loc = s.attributes.location %}{% endif %}\n {% endif %}\n {% endfor %}\n {% if sp.ent != '' %}\n {% set r = states(sp.ent) | float(0) %}\n {% set band = 2 if r < 25 else (1 if r < 100 else 0) %}\n {% set ns.out = ns.out + ['Slot ' ~ n ~ ' -> ' ~ sp.loc ~ ' | ' ~ (r|round(1)) ~ ' g | band ' ~ band] %}\n {% else %}\n {% set ns.out = ns.out + ['Slot ' ~ n ~ ' -> NO MATCHING SPOOL -> tube OMITTED from card'] %}\n {% endif %}\n{% endfor %}\n{{ ns.out | join('\\n') }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 262.3310089111328, "success": true, "error_message": null, "response_size_bytes": 1247, "user_context": null}
{"timestamp": "2026-10-15T16:47:15.086730+00:00", "tool_name": "ha_get_history", "parameters": {"entity_ids": "sensor.sparkx_i7_real_time_flow", "source": "statistics", "start_time": "2d", "end_time": null, "minimal_response": true, "significant_changes_only": true, "limit": null, "offset": null, "period": "day", "statistic_types": ["max", "min"], "order": "desc", "fields": null, "include_schema": false, "core_options": null, "ctx": "Context(_STATE_TTL_SECONDS=86400)"}, "execution_time_ms": 67.47126579284668, "success": true, "error_message": null, "response_size_bytes": 1230, "user_context": null}
+16 -16
View File
@@ -4,7 +4,7 @@
"state": "ON",
"led_brightness": 100,
"countdown_to_turn_off": 0,
"voltage": 120.5,
"voltage": 120,
"countdown_to_turn_on": 0,
"ac_frequency": 60,
"power_factor": 0.14,
@@ -22,7 +22,7 @@
},
"0xffffb40e0607af27": {
"state": "ON",
"voltage": 119.5,
"voltage": 119.7,
"ac_frequency": 60,
"led_brightness": 100,
"countdown_to_turn_off": 0,
@@ -30,7 +30,7 @@
"power": 1.1,
"current": 0.09,
"energy": 57.13,
"power_factor": 0.16,
"power_factor": 0.11,
"update": {
"state": "idle",
"installed_version": 268513381,
@@ -45,10 +45,10 @@
"state": "ON",
"led_brightness": 100,
"countdown_to_turn_off": 0,
"voltage": 119.6,
"voltage": 119.1,
"countdown_to_turn_on": 0,
"energy": 109.63,
"power_factor": 0.2,
"energy": 109.64,
"power_factor": 0.89,
"ac_frequency": 60,
"update": {
"state": "idle",
@@ -58,8 +58,8 @@
"latest_release_notes": null
},
"linkquality": 145,
"power": 0.2,
"current": 0.01,
"power": 85.3,
"current": 0.82,
"power_on_behavior": "on"
},
"0xb40e060fffe031e3": {
@@ -74,11 +74,11 @@
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"voltage": 118.1,
"voltage": 118.6,
"state": "ON",
"ac_frequency": 60,
"energy": 222.76,
"power": 103.6,
"energy": 222.77,
"power": 103.5,
"current": 0.95,
"power_factor": 0.95,
"update": {
@@ -95,11 +95,11 @@
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"voltage": 120.2,
"voltage": 119.5,
"energy": 104.31,
"state": "ON",
"power": 38.3,
"current": 0.43,
"power": 62.8,
"current": 0.62,
"ac_frequency": 60,
"power_factor": 0.74,
"update": {
@@ -119,7 +119,7 @@
"energy": 15.31,
"current": 0.01,
"power": 0.1,
"power_factor": 0.13,
"power_factor": 0.11,
"linkquality": 116,
"update": {
"state": "idle",
@@ -239,7 +239,7 @@
},
"0xb40e060fffe7180a": {
"battery": 100,
"occupancy": false,
"occupancy": true,
"tamper": false,
"battery_low": false,
"linkquality": 83,