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

This commit is contained in:
Home Assistant Version Control
2026-10-14 13:30:27 +00:00
parent 70be1b658e
commit 7afb069afe
2 changed files with 18 additions and 17 deletions
+1
View File
@@ -4485,3 +4485,4 @@
{"timestamp": "2026-10-14T13:16:55.715156+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.sparkx_i7_print_status", "sensor.sparkx_i7_expected_material_length", "sensor.sparkx_i7_active_filament_slot", "input_number.sparkx_i7_filament_g_cm"], "fields": ["entity_id", "state"], "attribute_keys": null}, "execution_time_ms": 8.612394332885742, "success": true, "error_message": null, "response_size_bytes": 851, "user_context": null}
{"timestamp": "2026-10-14T13:16:55.812722+00:00", "tool_name": "ha_search", "parameters": {"query": "spoolman_spool_8", "domain_filter": "sensor", "area_filter": null, "search_types": null, "limit": 10, "offset": 0, "exact_match": true, "include_hidden": true, "include_config": false, "group_by_domain": false, "per_domain_limit": null, "state_filter": null, "result_fields": ["entity_id", "state"], "fields": null, "config_time_budget": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 108.16359519958496, "success": true, "error_message": null, "response_size_bytes": 1441, "user_context": null}
{"timestamp": "2026-10-14T13:17:10.876096+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set gm = states('input_number.sparkx_i7_filament_g_cm') | float(0.0298) %}{% set req = (states('sensor.sparkx_i7_expected_material_length') | float(0)) * gm %}{% set ns = namespace(lines=[], avail=0.0, missing=0, count=0) %}{% for s in ['1', '2', '3', '4'] %}{% set col = states('sensor.sparkx_i7_cfs_box_1_slot_' ~ s ~ '_color') | replace('#', '') | lower %}{% set mat = states('sensor.sparkx_i7_cfs_box_1_slot_' ~ s ~ '_filament') %}{% if col not in ['', 'unknown', 'unavailable', 'none'] and mat not in ['', 'unknown', 'unavailable', 'none'] %}{% set ns.count = ns.count + 1 %}{% set sid = namespace(id='') %}{% for e in integration_entities('spoolman') %}{% if sid.id == '' and e.endswith('_color_hex') and (states(e) | replace('#', '') | lower) == col and (state_attr(e[:-10], 'location') | default('', true) | lower) == 'cfs lite' and (states(e[:-10]) | float(0)) > 0 %}{% set sid.id = e[:-10] %}{% endif %}{% endfor %}{% if sid.id == '' %}{% set ns.missing = ns.missing + 1 %}{% set ns.lines = ns.lines + ['Slot ' ~ s ~ ' ' ~ mat ~ ' (#' ~ (col | upper) ~ '): no Spoolman spool in CFS Lite'] %}{% else %}{% set rem = states(sid.id) | float(0) %}{% set ns.avail = ns.avail + rem %}{% set ns.lines = ns.lines + ['Slot ' ~ s ~ ' ' ~ mat ~ ' (#' ~ (col | upper) ~ '): ' ~ (rem | round(1)) ~ ' g'] %}{% endif %}{% endif %}{% endfor %}{% set a = ns.avail | round(1) %}{% set r = req | round(1) %}{% set status = ('Cannot verify: no loaded CFS slot detected' if ns.count == 0 else (('Cannot verify: slicer estimate not available yet (available ' ~ a ~ ' g)') if req <= 0 else (('NOT ENOUGH: needs ~' ~ r ~ ' g, available ' ~ a ~ ' g (short ~' ~ ((req - ns.avail) | round(1)) ~ ' g)') if ns.avail < req else ('Enough: needs ~' ~ r ~ ' g, available ' ~ a ~ ' g')))) %}{% set tip = ((ns.missing | string) ~ ' loaded colour(s) have no Spoolman spool in CFS Lite') if ns.missing > 0 else '' %}{{ [status, tip, (ns.lines | join('\\n'))] | select | join('\\n') }}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 136.10172271728516, "success": true, "error_message": null, "response_size_bytes": 3072, "user_context": null}
{"timestamp": "2026-10-14T13:30:20.716554+00:00", "tool_name": "ha_search", "parameters": {"query": "sparkx_i7", "domain_filter": null, "area_filter": null, "search_types": null, "limit": 100, "offset": 0, "exact_match": true, "include_hidden": true, "include_config": false, "group_by_domain": false, "per_domain_limit": null, "state_filter": null, "result_fields": ["entity_id", "state"], "fields": null, "config_time_budget": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 515.5932903289795, "success": true, "error_message": null, "response_size_bytes": 15393, "user_context": null}
+17 -17
View File
@@ -4,7 +4,7 @@
"state": "ON",
"led_brightness": 100,
"countdown_to_turn_off": 0,
"voltage": 118.8,
"voltage": 119.5,
"countdown_to_turn_on": 0,
"ac_frequency": 60,
"power_factor": 0.14,
@@ -45,9 +45,9 @@
"state": "ON",
"led_brightness": 100,
"countdown_to_turn_off": 0,
"voltage": 118.3,
"voltage": 117.8,
"countdown_to_turn_on": 0,
"energy": 108.7,
"energy": 108.71,
"power_factor": 0.91,
"ac_frequency": 60,
"update": {
@@ -58,8 +58,8 @@
"latest_release_notes": null
},
"linkquality": 145,
"power": 90.5,
"current": 0.84,
"power": 84.2,
"current": 0.78,
"power_on_behavior": "on"
},
"0xb40e060fffe031e3": {
@@ -74,13 +74,13 @@
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"voltage": 118.3,
"voltage": 116.2,
"state": "ON",
"ac_frequency": 60,
"energy": 220.67,
"power": 0.7,
"current": 0.05,
"power_factor": 0.36,
"energy": 220.69,
"power": 97.3,
"current": 0.89,
"power_factor": 0.94,
"update": {
"state": "idle",
"installed_version": 268513381,
@@ -95,11 +95,11 @@
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"voltage": 118.6,
"energy": 103.51,
"voltage": 119.4,
"energy": 103.52,
"state": "ON",
"power": 17.2,
"current": 0.25,
"power": 17,
"current": 0.26,
"ac_frequency": 60,
"power_factor": 0.54,
"update": {
@@ -114,12 +114,12 @@
},
"0xffffb40e060895b3": {
"state": "ON",
"voltage": 118.6,
"voltage": 117.6,
"ac_frequency": 60,
"energy": 15.19,
"current": 0.01,
"power": 0.1,
"power_factor": 0.11,
"power_factor": 0.22,
"linkquality": 116,
"update": {
"state": "idle",
@@ -136,7 +136,7 @@
"0xffffb40e0608864e": {
"led_brightness": 100,
"countdown_to_turn_off": 0,
"voltage": 120,
"voltage": 118.3,
"energy": 36.92,
"countdown_to_turn_on": 0,
"state": "ON",