From 3153e4fcb3e50ba24962a778f6abdb1c84944afe Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Tue, 28 Jul 2026 19:37:30 +0000 Subject: [PATCH] .ha_mcp/logs/mcp_usage.jsonl, automations.yaml --- .ha_mcp/logs/mcp_usage.jsonl | 2 ++ automations.yaml | 14 +++----------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index b18aa74..6d521a2 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -162,3 +162,5 @@ {"timestamp": "2026-07-28T19:35:14.714688+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "camera.hallway_hallway_camera", "fields": null, "attribute_keys": null}, "execution_time_ms": 5.452632904052734, "success": true, "error_message": null, "response_size_bytes": 1009, "user_context": null} {"timestamp": "2026-07-28T19:35:31.890141+00:00", "tool_name": "ha_list_services", "parameters": {"domain": "camera", "query": null, "limit": 50, "offset": 0, "detail_level": "summary", "service_fields": null, "fields": null}, "execution_time_ms": 38.99884223937988, "success": true, "error_message": null, "response_size_bytes": 1383, "user_context": null} {"timestamp": "2026-07-28T19:37:18.971586+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.hallway_camera_motion_snapshot"}, "execution_time_ms": 81.84099197387695, "success": true, "error_message": null, "response_size_bytes": 2183, "user_context": null} +{"timestamp": "2026-07-28T19:37:25.252601+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.hallway_camera_motion_snapshot", "python_transform": "config['actions'][1] = {'action': 'shell_command.download_camera_image', 'data': {'media_path': '/media/{{ snapshot_filename }}', 'www_path': '/config/www/{{ snapshot_filename }}'}}\ndel config['actions'][2]\ndel config['actions'][2]", "config_hash": "1c5689dd43bc005f", "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 258.79406929016113, "success": true, "error_message": null, "response_size_bytes": 587, "user_context": null} +{"timestamp": "2026-07-28T19:37:28.416232+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.hallway_camera_motion_snapshot"}, "execution_time_ms": 48.69842529296875, "success": true, "error_message": null, "response_size_bytes": 2021, "user_context": null} diff --git a/automations.yaml b/automations.yaml index e9d1af0..056f0ed 100644 --- a/automations.yaml +++ b/automations.yaml @@ -3059,18 +3059,10 @@ - variables: snapshot_filename: hallway_{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg notification_id: hallway_motion_{{ now().strftime('%Y%m%d_%H%M%S_%f') }} - - action: camera.snapshot - target: - entity_id: camera.hallway_hallway_camera + - action: shell_command.download_camera_image data: - filename: /media/{{ snapshot_filename }} - - action: camera.snapshot - target: - entity_id: camera.hallway_hallway_camera - data: - filename: /config/www/{{ snapshot_filename }} - - delay: - seconds: 2 + media_path: /media/{{ snapshot_filename }} + www_path: /config/www/{{ snapshot_filename }} - action: ai_task.generate_data continue_on_error: true response_variable: ai_profile