From ae6a6439ff9fe5fd03862f21b3bdb8562d355fe5 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Thu, 15 Oct 2026 17:07:29 +0000 Subject: [PATCH] .ha_mcp/logs/mcp_usage.jsonl, zigbee2mqtt/state.json --- .ha_mcp/logs/mcp_usage.jsonl | 1 + zigbee2mqtt/state.json | 46 ++++++++++++++++++------------------ 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index b4c521b8..8cf2b8f1 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -4635,3 +4635,4 @@ {"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} +{"timestamp": "2026-10-15T17:07:22.988750+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{{ {'is_number_unavail': is_number(states('sensor.sparkx_moonraker_print_eta')) is sameas false, 'ok': is_number('12.5'), 'bad': is_number('unavailable')} }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 16.196489334106445, "success": true, "error_message": null, "response_size_bytes": 365, "user_context": null} diff --git a/zigbee2mqtt/state.json b/zigbee2mqtt/state.json index 8e47f45b..a02f9cac 100644 --- a/zigbee2mqtt/state.json +++ b/zigbee2mqtt/state.json @@ -4,7 +4,7 @@ "state": "ON", "led_brightness": 100, "countdown_to_turn_off": 0, - "voltage": 120, + "voltage": 119.9, "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.1, + "voltage": 118.6, "countdown_to_turn_on": 0, - "energy": 109.64, - "power_factor": 0.89, + "energy": 109.68, + "power_factor": 0.99, "ac_frequency": 60, "update": { "state": "idle", @@ -58,8 +58,8 @@ "latest_release_notes": null }, "linkquality": 145, - "power": 85.3, - "current": 0.82, + "power": 196.3, + "current": 1.69, "power_on_behavior": "on" }, "0xb40e060fffe031e3": { @@ -74,13 +74,13 @@ "led_brightness": 100, "countdown_to_turn_off": 0, "countdown_to_turn_on": 0, - "voltage": 118.6, + "voltage": 117.9, "state": "ON", "ac_frequency": 60, - "energy": 222.77, - "power": 103.5, - "current": 0.95, - "power_factor": 0.95, + "energy": 222.8, + "power": 95.1, + "current": 0.87, + "power_factor": 0.94, "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.5, - "energy": 104.31, + "voltage": 119.8, + "energy": 104.33, "state": "ON", - "power": 62.8, - "current": 0.62, + "power": 50.7, + "current": 0.57, "ac_frequency": 60, - "power_factor": 0.74, + "power_factor": 0.77, "update": { "state": "idle", "installed_version": 268513381, @@ -114,12 +114,12 @@ }, "0xffffb40e060895b3": { "state": "ON", - "voltage": 120.1, + "voltage": 119.5, "ac_frequency": 60, "energy": 15.31, "current": 0.01, "power": 0.1, - "power_factor": 0.11, + "power_factor": 0.22, "linkquality": 116, "update": { "state": "idle", @@ -137,13 +137,13 @@ "led_brightness": 100, "countdown_to_turn_off": 0, "voltage": 120, - "energy": 37.97, + "energy": 37.98, "countdown_to_turn_on": 0, "state": "ON", "current": 0.04, "ac_frequency": 60, - "power": 2.1, - "power_factor": 0.41, + "power": 0.4, + "power_factor": 0.14, "update": { "state": "idle", "installed_version": 268513381, @@ -171,7 +171,7 @@ }, "0xa4c1380d0679ffff": { "battery": 100, - "temperature": 11.1, + "temperature": 11.2, "temperature_units": "celsius", "temperature_calibration": 0, "update": { @@ -239,7 +239,7 @@ }, "0xb40e060fffe7180a": { "battery": 100, - "occupancy": true, + "occupancy": false, "tamper": false, "battery_low": false, "linkquality": 83,