From 16af69df51b9525765b13e1b786a4c5eb09945e9 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Fri, 24 Jul 2026 19:37:38 +0000 Subject: [PATCH] .ha_mcp/logs/mcp_usage.jsonl, automations.yaml --- .ha_mcp/logs/mcp_usage.jsonl | 1 + automations.yaml | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 91711d3..001a13b 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -15,3 +15,4 @@ {"timestamp": "2026-07-23T19:07:06.747984+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.office_lamp_on_at_6pm"}, "execution_time_ms": 103.78479957580566, "success": true, "error_message": null, "response_size_bytes": 413, "user_context": null} {"timestamp": "2026-07-23T19:07:15.081115+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_lamp_on_at_6pm", "python_transform": "config['triggers'].append({'trigger': 'state', 'entity_id': ['binary_sensor.entryway'], 'to': ['on'], 'id': 'entryway_motion'})\nconfig['description'] = 'Turn on the office lamp every day at 6:00 PM, or whenever motion is detected in the entryway'", "config_hash": "5f51e207357bbf3f", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 350.6944179534912, "success": true, "error_message": null, "response_size_bytes": 59968, "user_context": null} {"timestamp": "2026-07-24T19:37:16.865894+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"alias": "MCP Backup Test", "description": "Testing ha-direct backup functionality", "triggers": [{"trigger": "time", "at": "12:00:00"}], "actions": [{"action": "notify.persistent_notification", "data": {"title": "Backup Test", "message": "This is the ORIGINAL message"}}]}, "identifier": null, "python_transform": null, "config_hash": null, "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 242.6166534423828, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"INTERNAL_ERROR\",\n \"message\": \"An unexpected error occurred\",\n \"details\": \"Task cb=[TaskGroup._spawn..task_done() at /usr/local/lib/python3.14/site-packages/anyio/_backends/_asyncio.py:821]> got Future ._outer_done_callback() at /usr/local/lib/python3.14/asyncio/tasks.py:993]> attached to a different loop\",\n \"suggestion\": \"Check automation configuration format\",\n \"suggestions\": [\n \"Check automation configuration format\",\n \"Ensure required fields: alias, triggers, actions\",\n \"Use entity_id format: automation.morning_routine or unique_id\",\n \"Use ha_search(domain_filter='automation') to find automations\",\n \"Use ha_get_skill_guide for automation examples\",\n \"For Home Assistant best-practice guidance, call ha_get_skill_guide(skill='home-assistant-best-practices') and consult the relevant reference file before retrying.\"\n ]\n },\n \"identifier\": null\n}", "response_size_bytes": null, "user_context": null} +{"timestamp": "2026-07-24T19:37:32.732069+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"alias": "MCP Backup Test", "description": "Testing ha-direct backup functionality", "triggers": [{"at": "12:00:00", "trigger": "time"}], "actions": [{"action": "notify.persistent_notification", "data": {"title": "Backup Test", "message": "This is the ORIGINAL message"}}]}, "identifier": null, "python_transform": null, "config_hash": null, "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 170.91965675354004, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"INTERNAL_ERROR\",\n \"message\": \"An unexpected error occurred\",\n \"details\": \"Event loop is closed\",\n \"suggestion\": \"Check automation configuration format\",\n \"suggestions\": [\n \"Check automation configuration format\",\n \"Ensure required fields: alias, triggers, actions\",\n \"Use entity_id format: automation.morning_routine or unique_id\",\n \"Use ha_search(domain_filter='automation') to find automations\",\n \"Use ha_get_skill_guide for automation examples\",\n \"For Home Assistant best-practice guidance, call ha_get_skill_guide(skill='home-assistant-best-practices') and consult the relevant reference file before retrying.\"\n ]\n },\n \"identifier\": null\n}", "response_size_bytes": null, "user_context": null} diff --git a/automations.yaml b/automations.yaml index 40c0266..1041450 100644 --- a/automations.yaml +++ b/automations.yaml @@ -2950,3 +2950,14 @@ data: title: Backup Test message: This is the ORIGINAL message +- id: '1784921852610' + alias: MCP Backup Test + description: Testing ha-direct backup functionality + triggers: + - at: '12:00:00' + trigger: time + actions: + - action: notify.persistent_notification + data: + title: Backup Test + message: This is the ORIGINAL message