diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 3b4c8f7..8349bc3 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -983,3 +983,5 @@ {"timestamp": "2026-08-08T03:10:06.196038+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_filament_daily", "sensor.octoprint_filament_monthly"], "fields": ["entity_id", "state", "attributes"], "attribute_keys": null}, "execution_time_ms": 46.482086181640625, "success": true, "error_message": null, "response_size_bytes": 1130, "user_context": null} {"timestamp": "2026-08-08T03:11:06.026985+00:00", "tool_name": "ha_config_set_helper", "parameters": {"helper_type": "utility_meter", "name": "OctoPrint Filament Weekly", "helper_id": null, "entry_id": null, "subentry_type": null, "subentry_id": null, "show_advanced_options": false, "icon": null, "area_id": null, "labels": null, "min_value": null, "max_value": null, "step": null, "unit_of_measurement": null, "options": null, "initial": null, "mode": null, "has_date": null, "has_time": null, "restore": null, "duration": null, "monday": null, "tuesday": null, "wednesday": null, "thursday": null, "friday": null, "saturday": null, "sunday": null, "latitude": null, "longitude": null, "radius": null, "passive": null, "user_id": null, "device_trackers": null, "picture": null, "tag_id": null, "description": null, "category": null, "config": {"source": "sensor.octoprint_filament_used_total", "cycle": "weekly"}, "wait": true, "action": null, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 453.2773494720459, "success": true, "error_message": null, "response_size_bytes": 372, "user_context": null} {"timestamp": "2026-08-08T03:11:06.057482+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "printer-stats", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": "print", "mode": null, "query": null}, "execution_time_ms": 13.875961303710938, "success": true, "error_message": null, "response_size_bytes": 6118, "user_context": null} +{"timestamp": "2026-08-08T03:11:25.220711+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "config['views'][0]['sections'].append({\n 'type': 'grid',\n 'cards': [\n {'type': 'heading', 'heading': 'Filament Usage', 'icon': 'mdi:spool'},\n {'type': 'tile', 'entity': 'sensor.octoprint_last_print_filament', 'name': 'Last Job', 'icon': 'mdi:spool', 'grid_options': {'columns': 4}},\n {'type': 'tile', 'entity': 'sensor.octoprint_filament_daily', 'name': 'Filament Today', 'icon': 'mdi:chart-donut', 'grid_options': {'columns': 4}},\n {'type': 'tile', 'entity': 'sensor.octoprint_filament_weekly', 'name': 'Filament This Week', 'icon': 'mdi:calendar-week', 'grid_options': {'columns': 4}},\n {'type': 'tile', 'entity': 'sensor.octoprint_filament_monthly', 'name': 'Filament This Month', 'icon': 'mdi:calendar-month', 'grid_options': {'columns': 4}},\n {'type': 'tile', 'entity': 'sensor.octoprint_filament_used_total', 'name': 'Grand Total', 'icon': 'mdi:spool', 'grid_options': {'columns': 4}},\n ]\n})", "config_hash": "0086675d7c081403", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": false, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 12.127399444580078, "success": true, "error_message": null, "response_size_bytes": 1513, "user_context": null} +{"timestamp": "2026-08-08T03:11:29.730563+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "printer-stats", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": "print", "mode": null, "query": null}, "execution_time_ms": 4.149675369262695, "success": true, "error_message": null, "response_size_bytes": 6964, "user_context": null} diff --git a/.storage/lovelace.printer_stats b/.storage/lovelace.printer_stats index 16d24da..0d2a248 100644 --- a/.storage/lovelace.printer_stats +++ b/.storage/lovelace.printer_stats @@ -354,6 +354,61 @@ } } ] + }, + { + "type": "grid", + "cards": [ + { + "type": "heading", + "heading": "Filament Usage", + "icon": "mdi:spool" + }, + { + "type": "tile", + "entity": "sensor.octoprint_last_print_filament", + "name": "Last Job", + "icon": "mdi:spool", + "grid_options": { + "columns": 4 + } + }, + { + "type": "tile", + "entity": "sensor.octoprint_filament_daily", + "name": "Filament Today", + "icon": "mdi:chart-donut", + "grid_options": { + "columns": 4 + } + }, + { + "type": "tile", + "entity": "sensor.octoprint_filament_weekly", + "name": "Filament This Week", + "icon": "mdi:calendar-week", + "grid_options": { + "columns": 4 + } + }, + { + "type": "tile", + "entity": "sensor.octoprint_filament_monthly", + "name": "Filament This Month", + "icon": "mdi:calendar-month", + "grid_options": { + "columns": 4 + } + }, + { + "type": "tile", + "entity": "sensor.octoprint_filament_used_total", + "name": "Grand Total", + "icon": "mdi:spool", + "grid_options": { + "columns": 4 + } + } + ] } ] },