From 4d2963dcf60180ebad5f1468275e4ef2702f8506 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Fri, 24 Jul 2026 20:20:11 +0000 Subject: [PATCH] .ha_mcp/logs/mcp_usage.jsonl, automations.yaml --- .ha_mcp/logs/mcp_usage.jsonl | 1 + automations.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index d49bc5a..e7f3286 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -33,3 +33,4 @@ {"timestamp": "2026-07-24T20:17:31.170214+00:00", "tool_name": "ha_search", "parameters": {"query": "MCP Backup Test", "domain_filter": null, "area_filter": null, "search_types": ["automation"], "limit": 10, "offset": 0, "exact_match": true, "include_hidden": true, "include_config": false, "group_by_domain": false, "per_domain_limit": null, "state_filter": null, "result_fields": null, "fields": null, "config_time_budget": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 4835.088491439819, "success": true, "error_message": null, "response_size_bytes": 1058, "user_context": null} {"timestamp": "2026-07-24T20:18:09.579587+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.mcp_backup_test", "python_transform": "config['actions'][0]['data']['message'] = 'Automation MODIFIED via ha-direct!'", "config_hash": null, "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 0.11897087097167969, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_INVALID_PARAMETER\",\n \"message\": \"config_hash is required for python_transform\",\n \"suggestion\": \"Call ha_config_get_automation() first\",\n \"suggestions\": [\n \"Call ha_config_get_automation() first\",\n \"Use the config_hash from that response\",\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 \"action\": \"python_transform\",\n \"identifier\": \"automation.mcp_backup_test\"\n}", "response_size_bytes": null, "user_context": null} {"timestamp": "2026-07-24T20:18:56.832663+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.mcp_backup_test"}, "execution_time_ms": 76.65252685546875, "success": true, "error_message": null, "response_size_bytes": 549, "user_context": null} +{"timestamp": "2026-07-24T20:20:04.745540+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.mcp_backup_test", "python_transform": "config['actions'][0]['data']['message'] = 'Automation MODIFIED via ha-direct!'", "config_hash": "917969b79f990e58", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 361.44280433654785, "success": true, "error_message": null, "response_size_bytes": 59787, "user_context": null} diff --git a/automations.yaml b/automations.yaml index 6502fc6..2a049e7 100644 --- a/automations.yaml +++ b/automations.yaml @@ -2950,4 +2950,4 @@ - action: notify.notify data: title: MCP Test - message: Automation created via ha-direct! + message: Automation MODIFIED via ha-direct!