.ha_mcp/logs/mcp_usage.jsonl, automations.yaml

This commit is contained in:
Home Assistant Version Control
2026-07-24 19:37:38 +00:00
parent ac9aac5895
commit 16af69df51
2 changed files with 12 additions and 0 deletions
+1
View File
@@ -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 <Task pending name='mcp.server.lowlevel.server.Server._handle_message' coro=<Server._handle_message() running at /usr/local/lib/python3.14/site-packages/mcp/server/lowlevel/server.py:696> cb=[TaskGroup._spawn.<locals>.task_done() at /usr/local/lib/python3.14/site-packages/anyio/_backends/_asyncio.py:821]> got Future <Future pending cb=[shield.<locals>._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}