.ha_mcp/logs/mcp_usage.jsonl, .storage/lovelace.printer_stats
This commit is contained in:
@@ -1074,3 +1074,4 @@
|
|||||||
{"timestamp": "2026-08-10T01:23:18.983717+00:00", "tool_name": "ha_get_history", "parameters": {"entity_ids": "sensor.octoprint_filament_used_total", "source": "history", "start_time": "7d", "end_time": null, "minimal_response": true, "significant_changes_only": true, "limit": null, "offset": null, "period": "day", "statistic_types": null, "order": "desc", "fields": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 30.325889587402344, "success": true, "error_message": null, "response_size_bytes": 3669, "user_context": null}
|
{"timestamp": "2026-08-10T01:23:18.983717+00:00", "tool_name": "ha_get_history", "parameters": {"entity_ids": "sensor.octoprint_filament_used_total", "source": "history", "start_time": "7d", "end_time": null, "minimal_response": true, "significant_changes_only": true, "limit": null, "offset": null, "period": "day", "statistic_types": null, "order": "desc", "fields": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 30.325889587402344, "success": true, "error_message": null, "response_size_bytes": 3669, "user_context": null}
|
||||||
{"timestamp": "2026-08-10T01:24:34.356822+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_filament_daily", "sensor.octoprint_filament_weekly", "sensor.octoprint_filament_monthly", "sensor.octoprint_filament_used_total"], "fields": null, "attribute_keys": ["source", "cycle", "status", "last_period", "unit_of_measurement", "state_class"]}, "execution_time_ms": 46.82111740112305, "success": true, "error_message": null, "response_size_bytes": 2248, "user_context": null}
|
{"timestamp": "2026-08-10T01:24:34.356822+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_filament_daily", "sensor.octoprint_filament_weekly", "sensor.octoprint_filament_monthly", "sensor.octoprint_filament_used_total"], "fields": null, "attribute_keys": ["source", "cycle", "status", "last_period", "unit_of_measurement", "state_class"]}, "execution_time_ms": 46.82111740112305, "success": true, "error_message": null, "response_size_bytes": 2248, "user_context": null}
|
||||||
{"timestamp": "2026-08-10T04:45:11.675011+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_elapsed", "sensor.octoprint_time_left"], "fields": null, "attribute_keys": ["unit_of_measurement", "friendly_name", "device_class"]}, "execution_time_ms": 11.638402938842773, "success": true, "error_message": null, "response_size_bytes": 1282, "user_context": null}
|
{"timestamp": "2026-08-10T04:45:11.675011+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_elapsed", "sensor.octoprint_time_left"], "fields": null, "attribute_keys": ["unit_of_measurement", "friendly_name", "device_class"]}, "execution_time_ms": 11.638402938842773, "success": true, "error_message": null, "response_size_bytes": 1282, "user_context": null}
|
||||||
|
{"timestamp": "2026-08-10T04:45:35.977201+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "for section in config['views'][0]['sections']:\n for card in section.get('cards', []):\n if card.get('name') == 'Elapsed':\n card['primary'] = \"Elapsed: {{ (states('sensor.octoprint_elapsed') | float(0) / 3600) | round(1) }} hr\"\n if card.get('name') == 'Remaining':\n card['primary'] = \"Remaining: {{ (states('sensor.octoprint_time_left') | float(0) / 3600) | round(1) }} hr\"", "config_hash": "55ba612ba3e8917f", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": true, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 15.523195266723633, "success": true, "error_message": null, "response_size_bytes": 30505, "user_context": null}
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "custom:mushroom-template-card",
|
"type": "custom:mushroom-template-card",
|
||||||
"primary": "Elapsed: {{ (states('sensor.octoprint_elapsed') | float(0) / 60) | round(0) | int }} min",
|
"primary": "Elapsed: {{ (states('sensor.octoprint_elapsed') | float(0) / 3600) | round(1) }} hr",
|
||||||
"name": "Elapsed",
|
"name": "Elapsed",
|
||||||
"icon": "mdi:clock-start",
|
"icon": "mdi:clock-start",
|
||||||
"grid_options": {
|
"grid_options": {
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "custom:mushroom-template-card",
|
"type": "custom:mushroom-template-card",
|
||||||
"primary": "Remaining: {{ (states('sensor.octoprint_time_left') | float(0) / 60) | round(0) | int }} min",
|
"primary": "Remaining: {{ (states('sensor.octoprint_time_left') | float(0) / 3600) | round(1) }} hr",
|
||||||
"name": "Remaining",
|
"name": "Remaining",
|
||||||
"icon": "mdi:clock-end",
|
"icon": "mdi:clock-end",
|
||||||
"grid_options": {
|
"grid_options": {
|
||||||
|
|||||||
Reference in New Issue
Block a user