.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control
2026-08-10 05:03:30 +00:00
parent 9803395a61
commit 952c72ffd8
+1
View File
@@ -1085,3 +1085,4 @@
{"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}
{"timestamp": "2026-08-10T05:03:25.311950+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "sensor.octoprint_recent_prints", "fields": ["state", "attributes"], "attribute_keys": ["allPrintJobs"]}, "execution_time_ms": 32.81092643737793, "success": true, "error_message": null, "response_size_bytes": 531, "user_context": null}