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

This commit is contained in:
Home Assistant Version Control
2026-08-23 05:55:21 +00:00
parent 31f43bc6b1
commit c4820f42fe
2 changed files with 13 additions and 11 deletions
+2
View File
@@ -1822,3 +1822,5 @@
{"timestamp": "2026-08-23T05:52:58.895152+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": null, "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": null, "mode": "search", "query": "octoprint"}, "execution_time_ms": 55.083274841308594, "success": true, "error_message": null, "response_size_bytes": 34210, "user_context": null}
{"timestamp": "2026-08-23T05:54:15.316224+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_print_file", "sensor.octoprint_time_left", "sensor.octoprint_print_time_left", "sensor.octoprint_print_status"], "fields": ["entity_id", "state", "attributes"], "attribute_keys": null}, "execution_time_ms": 19.01984214782715, "success": true, "error_message": null, "response_size_bytes": 1462, "user_context": null}
{"timestamp": "2026-08-23T05:54:15.804738+00:00", "tool_name": "ha_list_services", "parameters": {"domain": "telegram_bot", "query": null, "limit": 50, "offset": 0, "detail_level": "full", "service_fields": ["name", "fields"], "fields": null}, "execution_time_ms": 118.43347549438477, "success": true, "error_message": null, "response_size_bytes": 36337, "user_context": null}
{"timestamp": "2026-08-23T05:55:12.976461+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set f = states('sensor.octoprint_print_file') %}\n{% set file = 'No file' if f in ['unknown', 'unavailable', 'none'] else f.replace('.gcode', '') %}\n{% set pct = states('sensor.octoprint_print_progress') | round(0) | int(0) %}\n{% set es = states('sensor.octoprint_elapsed') | int(0) %}\n{% set ts = states('sensor.octoprint_time_left') | int(0) %}\n{% set dt = states('sensor.octoprint_approximate_completion_time') | as_datetime %}\n{% macro dur(s) -%}\n{%- if s >= 3600 -%}{{ (s // 3600) }}h {{ ((s % 3600) // 60) }}m{%- else -%}{{ ((s % 3600) // 60) }}m{%- endif -%}\n{%- endmacro %}\n{% if dt %}\n {% set fin = '~' + as_local(dt).strftime('%I:%M %p').lstrip('0') %}\n{% elif ts > 0 %}\n {% set fin = '~' + (now() + timedelta(seconds=ts)).strftime('%I:%M %p').lstrip('0') %}\n{% else %}\n {% set fin = 'unknown' %}\n{% endif %}\n{{ file }}\nProgress: {{ pct }}% · Elapsed: {{ dur(es) }} · Left: {{ dur(ts) if ts > 0 else 'unknown' }}\nEst. finish: {{ fin }}", "timeout": 3, "report_errors": true}, "execution_time_ms": 20.174026489257812, "success": true, "error_message": null, "response_size_bytes": 1153, "user_context": null}
{"timestamp": "2026-08-23T05:55:15.198336+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set f = states('sensor.octoprint_print_file') %}\n{% set file = 'Print' if f in ['unknown', 'unavailable', 'none'] else f.replace('.gcode', '') %}\n{% set tt = state_attr('sensor.octoprint_print_progress', 'printTime') | int(0) %}\n{% set s = tt if tt > 0 else states('sensor.octoprint_elapsed') | int(0) %}\n{% macro dur(s) -%}\n{%- if s >= 3600 -%}{{ (s // 3600) }}h {{ ((s % 3600) // 60) }}m{%- else -%}{{ ((s % 3600) // 60) }}m{%- endif -%}\n{%- endmacro %}\n{{ file }} finished successfully at {{ now().strftime('%I:%M %p').lstrip('0') }}.\nTotal time: {{ dur(s) }}", "timeout": 3, "report_errors": true}, "execution_time_ms": 11.507987976074219, "success": true, "error_message": null, "response_size_bytes": 737, "user_context": null}
+11 -11
View File
@@ -27,7 +27,7 @@
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"power": 1.9,
"power": 2.1,
"current": 0.1,
"energy": 32.28,
"power_factor": 0.16,
@@ -74,13 +74,13 @@
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"voltage": 121,
"voltage": 121.5,
"state": "ON",
"ac_frequency": 60,
"energy": 129.96,
"power": 0.8,
"current": 0.05,
"power_factor": 0.4,
"power_factor": 0.35,
"update": {
"state": "idle",
"installed_version": 268513381,
@@ -95,11 +95,11 @@
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"voltage": 122,
"energy": 61.24,
"voltage": 122.5,
"energy": 61.25,
"state": "ON",
"power": 26.6,
"current": 0.43,
"power": 33.6,
"current": 0.37,
"ac_frequency": 60,
"power_factor": 0.73,
"update": {
@@ -136,7 +136,7 @@
"0xffffb40e0608864e": {
"led_brightness": 100,
"countdown_to_turn_off": 0,
"voltage": 122.2,
"voltage": 122.7,
"energy": 20.08,
"countdown_to_turn_on": 0,
"state": "ON",
@@ -175,7 +175,7 @@
"voltage": 122.2,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"energy": 3.39,
"energy": 3.4,
"power_on_behavior": "on",
"linkquality": 142,
"current": 0.09,
@@ -192,7 +192,7 @@
},
"0xa4c1380d0679ffff": {
"battery": 100,
"temperature": 27,
"temperature": 26.9,
"temperature_units": "celsius",
"temperature_calibration": 0,
"update": {
@@ -245,7 +245,7 @@
},
"0xb40e060fffe717c5": {
"battery": 100,
"occupancy": false,
"occupancy": true,
"tamper": false,
"battery_low": false,
"linkquality": 138,