.ha_mcp/logs/mcp_usage.jsonl, zigbee2mqtt/state.json
This commit is contained in:
@@ -1084,3 +1084,4 @@
|
||||
{"timestamp": "2026-08-10T04:57:13.869159+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "sensor.octoprint_filament_used_total", "fields": null, "attribute_keys": ["fileName", "printStatusResult", "duration", "printStartDateTimeFormatted"]}, "execution_time_ms": 7.111787796020508, "success": true, "error_message": null, "response_size_bytes": 831, "user_context": null}
|
||||
{"timestamp": "2026-08-10T04:58:07.325453+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_memory_usage", "sensor.octoprint_cpu_usage"], "fields": null, "attribute_keys": null}, "execution_time_ms": 22.00794219970703, "success": true, "error_message": null, "response_size_bytes": 1322, "user_context": null}
|
||||
{"timestamp": "2026-08-10T05:00:45.814584+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "secs = config['views'][1]['sections']\nph = secs[2]['cards']\nph.insert(1, {\"type\": \"markdown\", \"content\": \"**Successful:** {{ states('sensor.octoprint_successful_prints_count') }} | **Failed:** {{ states('sensor.octoprint_failed_prints_count') }}\"})\nph.append({\"type\": \"markdown\", \"title\": \"Recent Prints\", \"content\": \"{% for j in state_attr('sensor.octoprint_recent_prints', 'json_attributes') | default([]) %}\\n{% set d = j.get('duration', 0) | int %}\\n- **{{ j.fileName }}** — {{ j.printStatusResult | title }}, {{ (d / 3600) | int }}h {{ ((d % 3600) / 60) | int }}m, {{ j.get('filamentModels', {}).get('total', {}).get('usedLength', 0) | round(0) }}mm\\n{% endfor %}\"})\nf = secs[3]['cards'][1]\nf['series'].append({\"entity\": \"sensor.octoprint_filament_weekly\", \"name\": \"Weekly (mm)\", \"color\": \"#ffca28\", \"type\": \"column\", \"group_by\": {\"func\": \"last\", \"duration\": \"1d\", \"start_with_last\": True}})\nsecs.append({\"type\": \"grid\", \"cards\": [{\"type\": \"heading\", \"heading\": \"OctoPrint Host\", \"icon\": \"mdi:server\"}, {\"type\": \"tile\", \"entity\": \"sensor.octoprint_disk_usage\", \"icon\": \"mdi:harddisk\"}, {\"type\": \"tile\", \"entity\": \"sensor.octoprint_cpu_usage\", \"icon\": \"mdi:cpu-64-bit\"}, {\"type\": \"tile\", \"entity\": \"sensor.octoprint_memory_usage\", \"icon\": \"mdi:memory\"}, {\"type\": \"tile\", \"entity\": \"sensor.octoprint_core_0_temperature\", \"icon\": \"mdi:thermometer\"}, {\"type\": \"tile\", \"entity\": \"sensor.octoprint_uptime\", \"icon\": \"mdi:clock-outline\"}]})", "config_hash": "a952c9f31934c855", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": true, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 12.96687126159668, "success": true, "error_message": null, "response_size_bytes": 31542, "user_context": null}
|
||||
{"timestamp": "2026-08-10T05:02:05.882519+00:00", "tool_name": "ha_restart", "parameters": {"confirm": true}, "execution_time_ms": 197.76225090026855, "success": true, "error_message": null, "response_size_bytes": 221, "user_context": null}
|
||||
|
||||
+17
-17
@@ -45,7 +45,7 @@
|
||||
"state": "ON",
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"voltage": 119.6,
|
||||
"voltage": 120.2,
|
||||
"countdown_to_turn_on": 0,
|
||||
"energy": 52.41,
|
||||
"power_factor": 0.9,
|
||||
@@ -58,8 +58,8 @@
|
||||
"latest_release_notes": null
|
||||
},
|
||||
"linkquality": 134,
|
||||
"power": 95.5,
|
||||
"current": 0.9,
|
||||
"power": 84.5,
|
||||
"current": 0.85,
|
||||
"power_on_behavior": "on"
|
||||
},
|
||||
"0xb40e060fffe031e3": {
|
||||
@@ -74,11 +74,11 @@
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"voltage": 119,
|
||||
"voltage": 118.8,
|
||||
"state": "ON",
|
||||
"ac_frequency": 60,
|
||||
"energy": 107.67,
|
||||
"power": 104.4,
|
||||
"energy": 107.68,
|
||||
"power": 102.8,
|
||||
"current": 0.93,
|
||||
"power_factor": 0.96,
|
||||
"update": {
|
||||
@@ -95,11 +95,11 @@
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"voltage": 119.1,
|
||||
"energy": 46.64,
|
||||
"voltage": 119,
|
||||
"energy": 46.65,
|
||||
"state": "ON",
|
||||
"power": 59.8,
|
||||
"current": 0.66,
|
||||
"power": 73.9,
|
||||
"current": 0.75,
|
||||
"ac_frequency": 60,
|
||||
"power_factor": 0.78,
|
||||
"update": {
|
||||
@@ -114,12 +114,12 @@
|
||||
},
|
||||
"0xffffb40e060895b3": {
|
||||
"state": "ON",
|
||||
"voltage": 120.4,
|
||||
"voltage": 119.9,
|
||||
"ac_frequency": 60,
|
||||
"energy": 7.13,
|
||||
"current": 0.01,
|
||||
"power": 0.1,
|
||||
"power_factor": 0.11,
|
||||
"power_factor": 0.22,
|
||||
"linkquality": 123,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
@@ -136,7 +136,7 @@
|
||||
"0xffffb40e0608864e": {
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"voltage": 120.7,
|
||||
"voltage": 121.2,
|
||||
"energy": 17.48,
|
||||
"countdown_to_turn_on": 0,
|
||||
"state": "ON",
|
||||
@@ -172,13 +172,13 @@
|
||||
"0xffffb40e060893d8": {
|
||||
"state": "ON",
|
||||
"led_brightness": 100,
|
||||
"voltage": 121.4,
|
||||
"voltage": 120.8,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"energy": 3.05,
|
||||
"power_on_behavior": "on",
|
||||
"linkquality": 87,
|
||||
"current": 0.02,
|
||||
"current": 0.03,
|
||||
"ac_frequency": 60,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
@@ -187,8 +187,8 @@
|
||||
"latest_source": "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/ThirdReality/SmartPlug_Zigbee_PROD_OTA_V101_1.01.01.ota",
|
||||
"latest_release_notes": null
|
||||
},
|
||||
"power_factor": 0.27,
|
||||
"power": 0.3
|
||||
"power_factor": 0.12,
|
||||
"power": 1.4
|
||||
},
|
||||
"0xa4c1380d0679ffff": {
|
||||
"battery": 100,
|
||||
|
||||
Reference in New Issue
Block a user