From 19c201799a9551a647ac87914e2a25dec5a0b6f3 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Tue, 28 Jul 2026 19:41:37 +0000 Subject: [PATCH] .ha_mcp/logs/mcp_usage.jsonl, automations.yaml --- .ha_mcp/logs/mcp_usage.jsonl | 3 +++ automations.yaml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 1a81f86..75f729c 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -170,3 +170,6 @@ {"timestamp": "2026-07-28T19:39:09.860756+00:00", "tool_name": "ha_list_services", "parameters": {"domain": "shell_command", "query": null, "limit": 50, "offset": 0, "detail_level": "summary", "service_fields": null, "fields": null}, "execution_time_ms": 60.231685638427734, "success": true, "error_message": null, "response_size_bytes": 676, "user_context": null} {"timestamp": "2026-07-28T19:41:00.659108+00:00", "tool_name": "ha_get_automation_traces", "parameters": {"automation_id": "automation.hallway_camera_motion_snapshot", "run_id": null, "limit": 3, "deduplicate": true, "detailed": false, "sections": null, "offset": 0, "order": "newest", "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 19.399166107177734, "success": true, "error_message": null, "response_size_bytes": 1034, "user_context": null} {"timestamp": "2026-07-28T19:41:03.398635+00:00", "tool_name": "ha_get_automation_traces", "parameters": {"automation_id": "automation.hallway_camera_motion_snapshot", "run_id": "ef536fb0772aa7d830bee018b17e2464", "limit": 10, "deduplicate": true, "detailed": false, "sections": null, "offset": 0, "order": "newest", "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 15.860795974731445, "success": true, "error_message": null, "response_size_bytes": 1897, "user_context": null} +{"timestamp": "2026-07-28T19:41:28.616137+00:00", "tool_name": "ha_call_service", "parameters": {"domain": "shell_command", "service": "reload", "entity_id": null, "data": null, "return_response": false, "wait": true, "verbose": false, "result_fields": null, "result_attribute_keys": null, "ws_command": null}, "execution_time_ms": 65.97733497619629, "success": true, "error_message": null, "response_size_bytes": 175, "user_context": null} +{"timestamp": "2026-07-28T19:41:31.745516+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.hallway_camera_motion_snapshot"}, "execution_time_ms": 51.923274993896484, "success": true, "error_message": null, "response_size_bytes": 2021, "user_context": null} +{"timestamp": "2026-07-28T19:41:36.145461+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.hallway_camera_motion_snapshot", "python_transform": "config['actions'][0]['variables']['snapshot_filename'] = \"hallway_{{ now().strftime('%Y%m%d_%H%M%S') }}.png\"\nconfig['actions'][2]['data']['attachments'][0]['media_content_type'] = \"image/png\"\nconfig['actions'][4]['data']['message'] = \"{{ ai_profile.data if ai_profile is defined and 'data' in ai_profile else 'Motion detected, but the AI Task integration failed to return a response.' }}\\n![Snapshot](/local/{{ snapshot_filename }})\"", "config_hash": "bacee7956ed93ba5", "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 241.77813529968262, "success": true, "error_message": null, "response_size_bytes": 816, "user_context": null} diff --git a/automations.yaml b/automations.yaml index 056f0ed..209fffe 100644 --- a/automations.yaml +++ b/automations.yaml @@ -3057,7 +3057,7 @@ - camera_sound actions: - variables: - snapshot_filename: hallway_{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg + snapshot_filename: hallway_{{ now().strftime('%Y%m%d_%H%M%S') }}.png notification_id: hallway_motion_{{ now().strftime('%Y%m%d_%H%M%S_%f') }} - action: shell_command.download_camera_image data: @@ -3073,7 +3073,7 @@ objects, or activities. Text needs to be max 240 characters. attachments: - media_content_id: media-source://media_source/local/{{ snapshot_filename }} - media_content_type: image/jpeg + media_content_type: image/png - action: notify.notify continue_on_error: true data: