diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 7bb1bc1d..124f2470 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -1233,3 +1233,4 @@ {"timestamp": "2026-08-14T15:44:26.412858+00:00", "tool_name": "ha_search", "parameters": {"query": "time_left", "domain_filter": null, "area_filter": null, "search_types": null, "limit": 20, "offset": 0, "exact_match": true, "include_hidden": true, "include_config": false, "group_by_domain": false, "per_domain_limit": null, "state_filter": null, "result_fields": ["entity_id", "friendly_name", "state", "area"], "fields": null, "config_time_budget": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 9196.516990661621, "success": true, "error_message": null, "response_size_bytes": 1572, "user_context": null} {"timestamp": "2026-08-14T15:45:04.482550+00:00", "tool_name": "ha_get_integration", "parameters": {"entry_id": "01KZE886307286YXMBE4G8435Y", "query": null, "domain": null, "include_options": true, "include_schema": false, "include_subentries": false, "include_subentry_schema": false, "subentry_type": null, "subentry_id": null, "show_advanced_options": false, "exact_match": true, "limit": 50, "offset": 0, "include_diagnostics": false, "include_knx_project": false, "device_id": null, "diagnostics_fields": null, "diagnostics_truncate_at_bytes": null, "diagnostics_data_path": null, "diagnostics_data_offset": 0, "diagnostics_data_limit": null}, "execution_time_ms": 55.383920669555664, "success": true, "error_message": null, "response_size_bytes": 910, "user_context": null} {"timestamp": "2026-08-14T15:45:04.917745+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_print_time_left_live", "sensor.octoprint_print_time_left", "sensor.octoprint_time_left", "binary_sensor.octoprint_printing"], "fields": ["entity_id", "state"], "attribute_keys": null}, "execution_time_ms": 79.62250709533691, "success": true, "error_message": null, "response_size_bytes": 809, "user_context": null} +{"timestamp": "2026-08-14T15:45:26.548905+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "config['views'][0]['sections'][0]['cards'][7]['content'] = \"**File:** {{ states('sensor.octoprint_print_file') }}\\n**Size:** {{ (states('sensor.octoprint_print_file_size') | int(0) / 1048576) | round(1) }} MB\\n**User:** {{ states('sensor.octoprint_print_user') }}\"; config['views'][0]['sections'][1]['cards'][3]['primary'] = \"{% set s = states('sensor.octoprint_time_left') | float(-1) %}{% if s <= 0 %}Remaining: No estimate{% else %}{% set h = (s / 3600) | int %}{% set m = ((s % 3600) / 60) | int %}Remaining: {% if h %}{{ h }} hr {{ m }} min{% else %}{{ m }} min{% endif %}{% endif %}\"", "config_hash": "bd5b4fe345bbe46d", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": false, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 49.88217353820801, "success": true, "error_message": null, "response_size_bytes": 1200, "user_context": null} diff --git a/.storage/lovelace.printer_stats b/.storage/lovelace.printer_stats index 74e40d91..b6790c4b 100644 --- a/.storage/lovelace.printer_stats +++ b/.storage/lovelace.printer_stats @@ -74,7 +74,7 @@ }, { "type": "markdown", - "content": "**File:** {{ states('sensor.octoprint_print_file') }}\n**Size:** {{ (states('sensor.octoprint_print_file_size') | int(0) / 1024) | round(1) }} KB\n**User:** {{ states('sensor.octoprint_print_user') }}", + "content": "**File:** {{ states('sensor.octoprint_print_file') }}\n**Size:** {{ (states('sensor.octoprint_print_file_size') | int(0) / 1048576) | round(1) }} MB\n**User:** {{ states('sensor.octoprint_print_user') }}", "grid_options": { "columns": "full" } @@ -126,7 +126,7 @@ }, { "type": "custom:mushroom-template-card", - "primary": "{% set s = states('sensor.octoprint_time_left') | float(0) %}{% set h = (s / 3600) | int %}{% set m = ((s % 3600) / 60) | int %}Remaining: {% if h %}{{ h }} hr {{ m }} min{% else %}{{ m }} min{% endif %}", + "primary": "{% set s = states('sensor.octoprint_time_left') | float(-1) %}{% if s <= 0 %}Remaining: No estimate{% else %}{% set h = (s / 3600) | int %}{% set m = ((s % 3600) / 60) | int %}Remaining: {% if h %}{{ h }} hr {{ m }} min{% else %}{{ m }} min{% endif %}{% endif %}", "name": "Remaining", "icon": "mdi:clock-end", "grid_options": {