From 4c05a5cfc737d60c7f42b4bf21869f045768a0d3 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Thu, 15 Oct 2026 20:56:25 +0000 Subject: [PATCH] .ha_mcp/logs/mcp_usage.jsonl, zigbee2mqtt/state.json --- .ha_mcp/logs/mcp_usage.jsonl | 2 ++ zigbee2mqtt/state.json | 40 ++++++++++++++++++------------------ 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 646f1799..719135a3 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -4678,3 +4678,5 @@ {"timestamp": "2026-10-15T18:55:20.594952+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": null, "query": "== 'box_1_slot_", "describe": false}, "execution_time_ms": 26.458263397216797, "success": true, "error_message": null, "response_size_bytes": 7766, "user_context": null} {"timestamp": "2026-10-15T18:55:20.599956+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% if states('sensor.sparkx_i7_print_status') in ['printing', 'paused'] %}{% set gcm = states('input_number.sparkx_i7_filament_g_cm') | float(0.0298) %}{% set cur = states('sensor.sparkx_i7_used_material_length') | float(0) %}{% set ck = states('input_number.sparkx_i7_spoolman_length_checkpoint') | float(0) %}{% set booked = states('input_number.sparkx_i7_slot_1_grams') | float(0) %}{% set live = booked + ((([cur - ck, 0] | max) * gcm) if states('sensor.sparkx_i7_active_filament_slot') == 'box_1_slot_1' else 0) %}• This print so far: {{ live | round(1) }} g{% else %}• Last print: {{ (states('input_number.sparkx_i7_slot_1_grams') | float(0)) | round(1) }} g{% endif %}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 26.5657901763916, "success": true, "error_message": null, "response_size_bytes": 1075, "user_context": null} {"timestamp": "2026-10-15T20:39:39.628727+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% for pair in [['1','9'],['2','4'],['3','5'],['4','8']] %}{% set n = pair[0] %}{% set e = 'sensor.spoolman_spool_' ~ pair[1] %}{% set hex = state_attr(e, 'filament_color_hex') | default('44739e') %}{% set hc = ('#' ~ hex) if not hex.startswith('#') else hex %}{% set r = hc[1:3] | int(0, 16) %}{% set g = hc[3:5] | int(0, 16) %}{% set b = hc[5:7] | int(0, 16) %}{% set lum = (0.2126 * r + 0.7152 * g + 0.0722 * b) %}slot{{ n }} hex={{ hc }} r={{ r }} g={{ g }} b={{ b }} lum={{ lum | round(0) }} text={{ 'dark #111 (ok)' if lum > 170 else 'WHITE needed' }}\n{% endfor %}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 23.965835571289062, "success": true, "error_message": null, "response_size_bytes": 1037, "user_context": null} +{"timestamp": "2026-10-15T20:56:19.468787+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": "v.halo", "describe": false}, "execution_time_ms": 23.740530014038086, "success": true, "error_message": null, "response_size_bytes": 374, "user_context": null} +{"timestamp": "2026-10-15T20:56:19.470132+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set hex = state_attr('sensor.spoolman_spool_8', 'filament_color_hex') ~ '' %}\n{% set hex_clean = (hex | replace('#','') | lower ~ 'ffffff')[0:6] %}\n{% set remain = states('sensor.spoolman_spool_8') | float(0) %}\n{% set total = state_attr('sensor.spoolman_spool_8', 'filament_weight') | float(1000) %}\n{% set raw_pct = (remain / total * 100) if total > 0 else 0 %}\n{% set pct = [raw_pct, 100] | min %}\n{% set tr = hex_clean[1:3] | int(0, 16) %}\n{% set tg = hex_clean[3:5] | int(0, 16) %}\n{% set tb = hex_clean[5:7] | int(0, 16) %}\n{% set lum = (0.2126 * tr + 0.7152 * tg + 0.0722 * tb) %}\n{% set text = '#ffffff' if (pct >= 60 and lum <= 170) else '#111111' %}\n{% set halo = 'rgba(0,0,0,0.9)' if text == '#ffffff' else 'rgba(255,255,255,0.95)' %}\nhex={{ hex }} clean={{ hex_clean }} remain={{ remain }} total={{ total }} raw_pct={{ raw_pct }} pct={{ pct }} tr={{ tr }} tg={{ tg }} tb={{ tb }} lum={{ lum }} text={{ text }} halo={{ halo }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 26.816844940185547, "success": true, "error_message": null, "response_size_bytes": 1241, "user_context": null} diff --git a/zigbee2mqtt/state.json b/zigbee2mqtt/state.json index b785ab04..5694f1f1 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.4, + "voltage": 120.3, "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.8, + "voltage": 120.2, "countdown_to_turn_on": 0, - "energy": 109.86, - "power_factor": 0.92, + "energy": 109.87, + "power_factor": 0.9, "ac_frequency": 60, "update": { "state": "idle", @@ -58,13 +58,13 @@ "latest_release_notes": null }, "linkquality": 145, - "power": 87.3, - "current": 0.8, + "power": 93.9, + "current": 0.89, "power_on_behavior": "on" }, "0xb40e060fffe031e3": { "battery": 100, - "contact": true, + "contact": false, "tamper": false, "battery_low": false, "linkquality": 149, @@ -74,13 +74,13 @@ "led_brightness": 100, "countdown_to_turn_off": 0, "countdown_to_turn_on": 0, - "voltage": 118.8, + "voltage": 119, "state": "ON", "ac_frequency": 60, - "energy": 223.02, - "power": 100.6, - "current": 0.89, - "power_factor": 0.93, + "energy": 223.04, + "power": 0.8, + "current": 0.05, + "power_factor": 0.38, "update": { "state": "idle", "installed_version": 268513381, @@ -96,12 +96,12 @@ "countdown_to_turn_off": 0, "countdown_to_turn_on": 0, "voltage": 120, - "energy": 104.51, + "energy": 104.53, "state": "ON", - "power": 47.6, - "current": 0.71, + "power": 47.1, + "current": 0.52, "ac_frequency": 60, - "power_factor": 0.77, + "power_factor": 0.83, "update": { "state": "idle", "installed_version": 268513381, @@ -117,9 +117,9 @@ "voltage": 120.1, "ac_frequency": 60, "energy": 15.34, - "current": 0.24, - "power": 28.7, - "power_factor": 0.98, + "current": 0.31, + "power": 0.1, + "power_factor": 0.2, "linkquality": 116, "update": { "state": "idle", @@ -171,7 +171,7 @@ }, "0xa4c1380d0679ffff": { "battery": 100, - "temperature": 12.6, + "temperature": 12.4, "temperature_units": "celsius", "temperature_calibration": 0, "update": {