From 1fd82d4b5ec0f82de7636b82785110af10eb292a Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Sat, 10 Oct 2026 07:04:42 +0000 Subject: [PATCH] .ha_mcp/logs/mcp_usage.jsonl --- .ha_mcp/logs/mcp_usage.jsonl | 1 + 1 file changed, 1 insertion(+) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index e84c3880..5eaeaa77 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -4339,3 +4339,4 @@ {"timestamp": "2026-10-10T06:58:22.795466+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": null, "mode": null, "query": null}, "execution_time_ms": 15.183687210083008, "success": true, "error_message": null, "response_size_bytes": 23642, "user_context": null} {"timestamp": "2026-10-10T07:02:52.632073+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "config['views'][2]['sections'].extend([\n {\n \"type\": \"grid\",\n \"cards\": [\n {\n \"type\": \"custom:mushroom-title-card\",\n \"title\": \"BeHappy2021 Dashboard\",\n \"subtitle\": \"{{ states('sensor.sparkx_moonraker_current_print_state') }}\",\n \"alignment\": \"center\",\n \"title_tap_action\": {\"action\": \"url\", \"url_path\": \"http://moonraker.local/\"}\n }\n ]\n },\n {\n \"type\": \"grid\",\n \"title\": \"3D Printer\",\n \"cards\": [\n {\n \"type\": \"custom:state-switch\",\n \"entity\": \"sensor.sparkx_moonraker_current_print_state\",\n \"transition\": \"flip-x\",\n \"states\": {\n \"unavailable\": {\n \"type\": \"vertical-stack\",\n \"cards\": [\n {\"type\": \"custom:mushroom-entity-card\", \"entity\": \"input_text.job_filament\", \"name\": \"Filament used in last job\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"none\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}},\n {\"type\": \"custom:mushroom-entity-card\", \"entity\": \"input_text.total_filament\", \"name\": \"Total Filament Used\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"none\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}},\n {\"type\": \"custom:mushroom-entity-card\", \"entity\": \"input_text.total_jobs\", \"name\": \"Total Jobs\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"none\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}},\n {\"type\": \"custom:mushroom-entity-card\", \"entity\": \"input_text.total_time\", \"name\": \"Total Time\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"none\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}}\n ]\n },\n \"standby\": {\n \"type\": \"custom:mushroom-template-card\",\n \"primary\": \"Printer is standing by\",\n \"layout\": \"vertical\",\n \"tap_action\": {\"action\": \"url\", \"url_path\": \"http://moonraker.local/\"},\n \"hold_action\": {\"action\": \"none\"},\n \"double_tap_action\": {\"action\": \"none\"},\n \"icon_color\": \"yellow\",\n \"icon\": \"mdi:printer-3d\"\n },\n \"printing\": {\n \"type\": \"vertical-stack\",\n \"cards\": [\n {\n \"type\": \"custom:mushroom-template-card\",\n \"secondary\": \"Current filename - {{ states('sensor.sparkx_moonraker_filename') }}\",\n \"fill_container\": True,\n \"multiline_secondary\": True,\n \"layout\": \"vertical\",\n \"tap_action\": {\"action\": \"url\", \"url_path\": \"http://moonraker.local/\"},\n \"hold_action\": {\"action\": \"none\"},\n \"double_tap_action\": {\"action\": \"none\"},\n \"icon_color\": \"green\",\n \"icon\": \"mdi:printer-3d\"\n },\n {\n \"type\": \"horizontal-stack\",\n \"cards\": [\n {\"type\": \"custom:mushroom-entity-card\", \"entity\": \"sensor.sparkx_moonraker_current_print_state\", \"name\": \"Status\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"none\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}},\n {\"type\": \"custom:mushroom-entity-card\", \"entity\": \"sensor.sparkx_moonraker_print_duration\", \"name\": \"Elapsed\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"none\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}},\n {\"type\": \"custom:mushroom-entity-card\", \"entity\": \"sensor.sparkx_moonraker_print_eta\", \"name\": \"Completion\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"none\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}},\n {\"type\": \"custom:mushroom-entity-card\", \"entity\": \"binary_sensor.sparkx_moonraker_filament_sensor\", \"name\": \"Filament\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"none\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}}\n ]\n }\n ]\n },\n \"complete\": {\n \"type\": \"custom:mushroom-template-card\",\n \"primary\": \"Printing has finished\",\n \"layout\": \"vertical\",\n \"fill_container\": True,\n \"tap_action\": {\"action\": \"url\", \"url_path\": \"http://moonraker.local/\"},\n \"hold_action\": {\"action\": \"none\"},\n \"double_tap_action\": {\"action\": \"none\"},\n \"icon_color\": \"green\",\n \"icon\": \"mdi:printer-3d\"\n }\n }\n },\n {\n \"type\": \"custom:state-switch\",\n \"entity\": \"sensor.sparkx_moonraker_current_print_state\",\n \"transition\": \"flip-x\",\n \"states\": {\n \"printing\": {\n \"type\": \"vertical-stack\",\n \"cards\": [\n {\"type\": \"tile\", \"name\": \"Print progress..\", \"icon\": \"mdi:clock-end\", \"entity\": \"sensor.sparkx_moonraker_progress\", \"features\": [{\"type\": \"bar-gauge\", \"min\": 0, \"max\": 100}]},\n {\"type\": \"tile\", \"name\": \"Fan speed\", \"icon\": \"mdi:fan\", \"entity\": \"sensor.sparkx_moonraker_hotend_fan\", \"features\": [{\"type\": \"bar-gauge\", \"min\": 0, \"max\": 100}]},\n {\"type\": \"tile\", \"name\": \"Filament used\", \"tap_action\": {\"action\": \"none\"}, \"icon_tap_action\": {\"action\": \"none\"}, \"entity\": \"sensor.sparkx_moonraker_filament_used\"},\n {\"type\": \"picture-entity\", \"show_state\": False, \"show_name\": False, \"camera_view\": \"auto\", \"name\": \"Thumbnail\", \"tap_action\": {\"action\": \"none\"}, \"icon_tap_action\": {\"action\": \"none\"}, \"entity\": \"camera.sparkx_moonraker_thumbnail\"}\n ]\n },\n \"complete\": {\n \"type\": \"vertical-stack\",\n \"cards\": [\n {\"type\": \"tile\", \"name\": \"Print progress..\", \"icon\": \"mdi:clock-end\", \"entity\": \"sensor.sparkx_moonraker_progress\", \"features\": [{\"type\": \"bar-gauge\", \"min\": 0, \"max\": 100}]},\n {\"type\": \"tile\", \"name\": \"Filament used\", \"tap_action\": {\"action\": \"none\"}, \"icon_tap_action\": {\"action\": \"none\"}, \"entity\": \"input_text.job_filament\"}\n ]\n },\n \"standby\": {\n \"type\": \"vertical-stack\",\n \"cards\": [\n {\"type\": \"custom:mushroom-template-card\", \"primary\": \"Job progress will appear here\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"url\", \"url_path\": \"http://moonraker.local/\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}, \"icon_color\": \"yellow\", \"icon\": \"mdi:printer-3d\"},\n {\"type\": \"tile\", \"name\": \"Filament used in last job\", \"vertical\": True, \"tap_action\": {\"action\": \"none\"}, \"icon_tap_action\": {\"action\": \"none\"}, \"entity\": \"input_text.job_filament\"}\n ]\n }\n }\n }\n ]\n },\n {\n \"type\": \"grid\",\n \"title\": \" \",\n \"cards\": [\n {\n \"type\": \"custom:state-switch\",\n \"entity\": \"sensor.sparkx_moonraker_current_print_state\",\n \"transition\": \"flip-x\",\n \"states\": {\n \"unavailable\": {\n \"type\": \"custom:mushroom-template-card\",\n \"primary\": \"Printer turned off\",\n \"layout\": \"vertical\",\n \"tap_action\": {\"action\": \"none\"},\n \"hold_action\": {\"action\": \"none\"},\n \"double_tap_action\": {\"action\": \"none\"},\n \"icon_color\": \"red\",\n \"icon\": \"mdi:printer-3d\"\n },\n \"printing\": {\n \"type\": \"horizontal-stack\",\n \"cards\": [\n {\"type\": \"custom:button-card\", \"name\": \"Pause\", \"tap_action\": {\"action\": \"toggle\"}, \"entity\": \"button.sparkx_moonraker_pause_print\"},\n {\"type\": \"custom:button-card\", \"name\": \"Resume\", \"tap_action\": {\"action\": \"toggle\"}, \"entity\": \"button.sparkx_moonraker_resume_print\"},\n {\"type\": \"custom:button-card\", \"name\": \"Cancel\", \"tap_action\": {\"action\": \"toggle\"}, \"entity\": \"button.sparkx_moonraker_cancel_print\"},\n {\"type\": \"custom:button-card\", \"name\": \"Emergency\", \"tap_action\": {\"action\": \"toggle\"}, \"color\": \"red\", \"confirmation\": {\"text\": \"This will REBOOT the printer. Are you sure?\"}, \"entity\": \"button.sparkx_moonraker_emergency_stop\"}\n ]\n },\n \"standby\": {\n \"type\": \"custom:mushroom-template-card\",\n \"primary\": \"Controls will appear here\",\n \"layout\": \"vertical\",\n \"tap_action\": {\"action\": \"url\", \"url_path\": \"http://moonraker.local/\"},\n \"hold_action\": {\"action\": \"none\"},\n \"double_tap_action\": {\"action\": \"none\"},\n \"icon_color\": \"yellow\",\n \"icon\": \"mdi:printer-3d\"\n }\n }\n },\n {\n \"square\": True,\n \"type\": \"grid\",\n \"columns\": 1,\n \"cards\": [\n {\n \"type\": \"conditional\",\n \"conditions\": [{\"condition\": \"state\", \"entity\": \"sensor.sparkx_moonraker_current_print_state\", \"state\": \"printing\"}],\n \"card\": {\n \"type\": \"custom:apexcharts-card\",\n \"graph_span\": \"1h\",\n \"span\": {\"start\": \"hour\", \"offset\": \"-10min\"},\n \"header\": {\"show\": True, \"title\": \"Temperatures\", \"show_states\": True, \"colorize_states\": True},\n \"now\": {\"show\": True, \"label\": \"Now\", \"color\": \"#00ff00\"},\n \"all_series_config\": {\"show\": {\"legend_value\": False}, \"float_precision\": 0},\n \"apex_config\": {\"legend\": {\"show\": False}},\n \"series\": [\n {\"entity\": \"sensor.sparkx_moonraker_extruder_temperature\", \"name\": \"Nozzle\", \"opacity\": 0.4},\n {\"entity\": \"number.sparkx_moonraker_extruder_target\", \"name\": \"Nozzle target\", \"opacity\": 0.4},\n {\"entity\": \"sensor.sparkx_moonraker_bed_temperature\", \"name\": \"Bed\", \"opacity\": 0.4},\n {\"entity\": \"number.sparkx_moonraker_bed_target\", \"name\": \"Bed target\", \"opacity\": 0.4},\n {\"entity\": \"sensor.sparkx_moonraker_mcu_temp\", \"name\": \"MCU\", \"opacity\": 0.4}\n ]\n }\n },\n {\n \"type\": \"conditional\",\n \"conditions\": [{\"condition\": \"state\", \"entity\": \"sensor.sparkx_moonraker_current_print_state\", \"state\": \"standby\"}],\n \"card\": {\n \"type\": \"custom:mushroom-template-card\",\n \"primary\": \"Temperatures will appear here\",\n \"layout\": \"vertical\",\n \"tap_action\": {\"action\": \"url\", \"url_path\": \"http://moonraker.local/\"},\n \"hold_action\": {\"action\": \"none\"},\n \"double_tap_action\": {\"action\": \"none\"},\n \"icon_color\": \"yellow\",\n \"icon\": \"mdi:printer-3d\"\n }\n }\n ]\n }\n ]\n },\n {\n \"type\": \"grid\",\n \"cards\": [\n {\"type\": \"heading\", \"heading\": \"Spoolman\", \"icon\": \"mdi:spool\"},\n {\n \"type\": \"custom:mushroom-template-card\",\n \"entity\": \"sensor.active_spool\",\n \"primary\": \"{{ states('sensor.active_spool') }}\",\n \"secondary\": \"Active spool\",\n \"icon\": \"mdi:circle\",\n \"icon_color\": \"{% set sid = states('sensor.sparkx_moonraker_spool_id') | int(0) %}{% set eid = 'sensor.spoolman_spool_' ~ sid %}{% set h = state_attr(eid, 'filament_color_hex') %}{{ ('#' ~ h) if h else '#999999' }}\",\n \"tap_action\": {\"action\": \"more-info\"}\n }\n ]\n }\n])", "config_hash": "3178a4b1bd30e47b", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": false, "BestPracticeKey": null, "return_screenshot": false, "view_path": null, "patch": null}, "execution_time_ms": 32.300710678100586, "success": true, "error_message": null, "response_size_bytes": 12185, "user_context": null} {"timestamp": "2026-10-10T07:04:18.034674+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": "test", "mode": null, "query": null}, "execution_time_ms": 23.795604705810547, "success": true, "error_message": null, "response_size_bytes": 13879, "user_context": null} +{"timestamp": "2026-10-10T07:04:35.855579+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.active_spool", "input_text.job_filament", "input_text.total_filament", "input_text.total_jobs", "input_text.total_time", "number.sparkx_moonraker_extruder_target", "number.sparkx_moonraker_bed_target", "sensor.sparkx_moonraker_current_print_state"], "fields": ["state"], "attribute_keys": null}, "execution_time_ms": 1.8167495727539062, "success": true, "error_message": null, "response_size_bytes": 825, "user_context": null}