.ha_mcp/logs/mcp_usage.jsonl, zigbee2mqtt/state.json
This commit is contained in:
@@ -1828,3 +1828,4 @@
|
||||
{"timestamp": "2026-08-23T05:56:25.081414+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.3d_print_complete_snapshot", "python_transform": "body = \"{% set f = states('sensor.octoprint_print_file') %}{% set file = 'Print' if f in ['unknown', 'unavailable', 'none'] else f.replace('.gcode', '') %}{% set tt = state_attr('sensor.octoprint_print_progress', 'printTime') | int(0) %}{% set s = tt if tt > 0 else states('sensor.octoprint_elapsed') | int(0) %}{% macro dur(s) -%}{%- if s >= 3600 -%}{{ (s // 3600) }}h {{ ((s % 3600) // 60) }}m{%- else -%}{{ ((s % 3600) // 60) }}m{%- endif -%}{%- endmacro %}{{ file }} finished successfully at {{ now().strftime('%I:%M %p').lstrip('0') }}.\\nTotal time: {{ dur(s) }}\"; targets = [\"notify.mobile_app_sm_f956w\", \"notify.mobile_app_motorola_one_vision\", \"notify.mobile_app_francos_ipad\", \"notify.mobile_app_sm_t387w\"]; steps = [{\"action\": t, \"data\": {\"title\": \"3D print complete\", \"message\": body, \"data\": {\"image\": \"/local/octoprint_snapshot.jpg\"}}} for t in targets]; steps.append({\"action\": \"telegram_bot.send_photo\", \"data\": {\"entity_id\": \"notify.franco\", \"file\": \"/config/www/octoprint_snapshot.jpg\", \"caption\": body, \"parse_mode\": \"plain_text\"}}); config[\"actions\"] = [{\"action\": \"camera.snapshot\", \"target\": {\"entity_id\": \"camera.endercamera_duckdns_org\"}, \"data\": {\"filename\": \"/config/www/octoprint_snapshot.jpg\"}}, {\"parallel\": steps}]", "config_hash": "33ecc92b2b703793", "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 1418.161392211914, "success": true, "error_message": null, "response_size_bytes": 1614, "user_context": null}
|
||||
{"timestamp": "2026-08-23T05:56:37.571995+00:00", "tool_name": "ha_call_service", "parameters": {"domain": "automation", "service": "trigger", "entity_id": "automation.3d_print_complete_snapshot", "data": null, "return_response": false, "wait": true, "verbose": false, "result_fields": null, "result_attribute_keys": null, "ws_command": null}, "execution_time_ms": 1632.246494293213, "success": true, "error_message": null, "response_size_bytes": 206, "user_context": null}
|
||||
{"timestamp": "2026-08-23T05:56:45.028393+00:00", "tool_name": "ha_get_automation_traces", "parameters": {"automation_id": "automation.3d_print_complete_snapshot", "run_id": null, "limit": 1, "deduplicate": true, "detailed": false, "sections": "actions", "offset": 0, "order": "newest", "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 10.793924331665039, "success": true, "error_message": null, "response_size_bytes": 447, "user_context": null}
|
||||
{"timestamp": "2026-08-23T17:55:37.512647+00:00", "tool_name": "ha_search", "parameters": {"query": "3d_printer_lights", "domain_filter": null, "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": null, "fields": null, "config_time_budget": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 11308.37869644165, "success": true, "error_message": null, "response_size_bytes": 1405, "user_context": null}
|
||||
|
||||
+28
-28
@@ -4,10 +4,10 @@
|
||||
"state": "ON",
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"voltage": 121.6,
|
||||
"voltage": 121.1,
|
||||
"countdown_to_turn_on": 0,
|
||||
"ac_frequency": 60,
|
||||
"power_factor": 0.14,
|
||||
"power_factor": 0.11,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
"installed_version": 268513381,
|
||||
@@ -22,15 +22,15 @@
|
||||
},
|
||||
"0xffffb40e0607af27": {
|
||||
"state": "ON",
|
||||
"voltage": 121.1,
|
||||
"voltage": 120.6,
|
||||
"ac_frequency": 60,
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"power": 62.5,
|
||||
"current": 1.43,
|
||||
"power": 2.8,
|
||||
"current": 0.1,
|
||||
"energy": 32.45,
|
||||
"power_factor": 0.36,
|
||||
"power_factor": 0.19,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
"installed_version": 268513381,
|
||||
@@ -45,10 +45,10 @@
|
||||
"state": "ON",
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"voltage": 121,
|
||||
"voltage": 120.5,
|
||||
"countdown_to_turn_on": 0,
|
||||
"energy": 64.46,
|
||||
"power_factor": 0.88,
|
||||
"energy": 64.48,
|
||||
"power_factor": 0.2,
|
||||
"ac_frequency": 60,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
@@ -58,8 +58,8 @@
|
||||
"latest_release_notes": null
|
||||
},
|
||||
"linkquality": 138,
|
||||
"power": 83.5,
|
||||
"current": 0.81,
|
||||
"power": 83.8,
|
||||
"current": 0.8,
|
||||
"power_on_behavior": "on"
|
||||
},
|
||||
"0xb40e060fffe031e3": {
|
||||
@@ -74,13 +74,13 @@
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"voltage": 121,
|
||||
"voltage": 120.2,
|
||||
"state": "ON",
|
||||
"ac_frequency": 60,
|
||||
"energy": 130.57,
|
||||
"power": 0.7,
|
||||
"current": 0.02,
|
||||
"power_factor": 0.41,
|
||||
"energy": 130.6,
|
||||
"power": 3.7,
|
||||
"current": 0.05,
|
||||
"power_factor": 0.36,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
"installed_version": 268513381,
|
||||
@@ -95,13 +95,13 @@
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"voltage": 121.5,
|
||||
"energy": 61.67,
|
||||
"voltage": 120.8,
|
||||
"energy": 61.72,
|
||||
"state": "ON",
|
||||
"power": 63.3,
|
||||
"current": 0.85,
|
||||
"power": 81.8,
|
||||
"current": 0.94,
|
||||
"ac_frequency": 60,
|
||||
"power_factor": 0.67,
|
||||
"power_factor": 0.77,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
"installed_version": 268513381,
|
||||
@@ -114,7 +114,7 @@
|
||||
},
|
||||
"0xffffb40e060895b3": {
|
||||
"state": "ON",
|
||||
"voltage": 121.5,
|
||||
"voltage": 121,
|
||||
"ac_frequency": 60,
|
||||
"energy": 8.78,
|
||||
"current": 0.01,
|
||||
@@ -136,14 +136,14 @@
|
||||
"0xffffb40e0608864e": {
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"voltage": 122,
|
||||
"voltage": 121.5,
|
||||
"energy": 20.08,
|
||||
"countdown_to_turn_on": 0,
|
||||
"state": "ON",
|
||||
"current": 0.02,
|
||||
"ac_frequency": 60,
|
||||
"power": 0.3,
|
||||
"power_factor": 0.14,
|
||||
"power_factor": 0.18,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
"installed_version": 268513381,
|
||||
@@ -172,13 +172,13 @@
|
||||
"0xffffb40e060893d8": {
|
||||
"state": "ON",
|
||||
"led_brightness": 100,
|
||||
"voltage": 121.5,
|
||||
"voltage": 118.8,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"energy": 3.46,
|
||||
"power_on_behavior": "on",
|
||||
"linkquality": 142,
|
||||
"current": 0.06,
|
||||
"current": 0.09,
|
||||
"ac_frequency": 60,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
@@ -188,7 +188,7 @@
|
||||
"latest_release_notes": null
|
||||
},
|
||||
"power_factor": 0.85,
|
||||
"power": 9.7
|
||||
"power": 9.6
|
||||
},
|
||||
"0xa4c1380d0679ffff": {
|
||||
"battery": 100,
|
||||
@@ -245,7 +245,7 @@
|
||||
},
|
||||
"0xb40e060fffe717c5": {
|
||||
"battery": 100,
|
||||
"occupancy": true,
|
||||
"occupancy": false,
|
||||
"tamper": false,
|
||||
"battery_low": false,
|
||||
"linkquality": 138,
|
||||
|
||||
Reference in New Issue
Block a user