From 84e171b07e4ef272007895e91b41a1149b0fc289 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Fri, 24 Jul 2026 20:16:50 +0000 Subject: [PATCH] .ha_mcp/logs/mcp_usage.jsonl, automations.yaml --- .ha_mcp/logs/mcp_usage.jsonl | 1 + automations.yaml | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index aa9698c..ada4a33 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -29,3 +29,4 @@ {"timestamp": "2026-07-24T20:06:04.064491+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.morning_routine"}, "execution_time_ms": 202.06522941589355, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"RESOURCE_NOT_FOUND\",\n \"message\": \"Automation not found: automation.morning_routine\",\n \"suggestion\": \"Use ha_search(domain_filter='automation') to find existing automations\"\n },\n \"automation_id\": \"automation.morning_routine\",\n \"available_automation_ids\": [\n \"automation.tablet_dim_screen_at_night\",\n \"automation.tablet_restore_screen_in_morning\",\n \"automation.reload_hilo_integrations_on_reboot\",\n \"automation.notify_when_ring_console_battery_low\",\n \"automation.notify_when_front_door_sensor_battery_low\",\n \"automation.alert_fridge_or_freezer_power_outage\",\n \"automation.kitchen_coffee_maker_active_notification\",\n \"automation.office_turn_on_lights_on_motion\",\n \"automation.office_turn_off_lights_on_exit\",\n \"automation.water_leak_detected\"\n ]\n}", "response_size_bytes": null, "user_context": null} {"timestamp": "2026-07-24T20:07:09.572923+00:00", "tool_name": "ha_get_overview", "parameters": {"detail_level": "minimal", "domains": null, "limit": null, "offset": 0, "max_entities_per_domain": null, "include_state": null, "include_entity_id": null, "include_notifications": true, "include_dismissed_repairs": false, "fields": null}, "execution_time_ms": 2278.484344482422, "success": true, "error_message": null, "response_size_bytes": 15479, "user_context": null} {"timestamp": "2026-07-24T20:07:40.403850+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.tablet_dim_screen_at_night"}, "execution_time_ms": 53.27343940734863, "success": true, "error_message": null, "response_size_bytes": 449, "user_context": null} +{"timestamp": "2026-07-24T20:16:45.640024+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"alias": "MCP Backup Test", "description": "Test automation to verify ha-direct backup functionality", "triggers": [{"trigger": "state", "entity_id": "sun.sun", "to": "above_horizon"}], "actions": [{"action": "notify.notify", "data": {"title": "MCP Test", "message": "Automation created via ha-direct!"}}]}, "identifier": null, "python_transform": null, "config_hash": null, "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 241.0869598388672, "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 wait_for=> 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} diff --git a/automations.yaml b/automations.yaml index b26f407..6502fc6 100644 --- a/automations.yaml +++ b/automations.yaml @@ -2939,3 +2939,15 @@ notification_id: '{{ notification_id }}' mode: queued max: 10 +- id: '1784924205440' + alias: MCP Backup Test + description: Test automation to verify ha-direct backup functionality + triggers: + - trigger: state + entity_id: sun.sun + to: above_horizon + actions: + - action: notify.notify + data: + title: MCP Test + message: Automation created via ha-direct!