From ac3f42c5f507346c9bd1b3da6c7da650c9603520 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Tue, 28 Jul 2026 19:43:37 +0000 Subject: [PATCH] .ha_mcp/logs/mcp_usage.jsonl, configuration.yaml --- .ha_mcp/logs/mcp_usage.jsonl | 1 + configuration.yaml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index ab4374a..55b7312 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -175,3 +175,4 @@ {"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} {"timestamp": "2026-07-28T19:42:36.089282+00:00", "tool_name": "ha_get_integration", "parameters": {"entry_id": null, "query": null, "domain": "python_script", "include_options": false, "include_schema": false, "include_subentries": false, "include_subentry_schema": false, "subentry_type": null, "subentry_id": null, "show_advanced_options": false, "exact_match": true, "limit": 50, "offset": 0, "include_diagnostics": false, "include_knx_project": false, "device_id": null, "diagnostics_fields": null, "diagnostics_truncate_at_bytes": null, "diagnostics_data_path": null, "diagnostics_data_offset": 0, "diagnostics_data_limit": null}, "execution_time_ms": 7.100820541381836, "success": true, "error_message": null, "response_size_bytes": 198, "user_context": null} {"timestamp": "2026-07-28T19:42:52.258423+00:00", "tool_name": "ha_get_logs", "parameters": {"source": "system", "limit": null, "search": "shell_command", "order": "newest", "hours_back": 2, "entity_id": null, "end_time": null, "offset": 0, "compact": true, "level": null, "slug": null}, "execution_time_ms": 23.170948028564453, "success": true, "error_message": null, "response_size_bytes": 1325, "user_context": null} +{"timestamp": "2026-07-28T19:43:35.781829+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": 73.29487800598145, "success": true, "error_message": null, "response_size_bytes": 175, "user_context": null} diff --git a/configuration.yaml b/configuration.yaml index fa76f36..23734c7 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -6,7 +6,8 @@ utility_meter: # Shell Commands shell_command: - download_camera_image: 'curl -s -o {{ media_path }} -H "Authorization: Bearer $SUPERVISOR_TOKEN" ''http://supervisor/core/api/camera_proxy/camera.hallway_hallway_camera'' && cp {{ media_path }} {{ www_path }}' + test_curl: 'curl -v -o /tmp/test_supervisor.png "http://supervisor/core/api/camera_proxy/camera.hallway_hallway_camera" -H "Authorization: Bearer $SUPERVISOR_TOKEN" 2>/tmp/curl_debug.log' + download_camera_image: 'curl -s -o {{ media_path }} "http://supervisor/core/api/camera_proxy/camera.hallway_hallway_camera" -H "Authorization: Bearer $SUPERVISOR_TOKEN" && cp {{ media_path }} {{ www_path }}' cleanup_blink_snapshots: "find /media /config/www -name 'blink_*.jpg' -mmin +360 -delete" # Load ffmpeg