diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index c674d3e..c68e9c5 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -154,3 +154,5 @@ {"timestamp": "2026-07-28T19:30:10.321872+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "camera.hallway_hallway_camera", "fields": null, "attribute_keys": null}, "execution_time_ms": 8.207321166992188, "success": true, "error_message": null, "response_size_bytes": 1007, "user_context": null} {"timestamp": "2026-07-28T19:31:14.559435+00:00", "tool_name": "ha_search", "parameters": {"query": "ai_task", "domain_filter": null, "area_filter": null, "search_types": null, "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": 8699.972152709961, "success": true, "error_message": null, "response_size_bytes": 3745, "user_context": null} {"timestamp": "2026-07-28T19:32:09.457999+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"alias": "Hallway Camera Motion Snapshot", "description": "Takes a snapshot when the Hallway Nest camera detects motion, analyzes it with AI, and sends a notification and persistent notification.", "triggers": [{"trigger": "event.received", "target": {"entity_id": "event.hallway_hallway_camera_motion"}, "options": {"event_type": ["camera_motion", "camera_person", "camera_sound"]}}], "actions": [{"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"}, "data": {"filename": "/config/www/{{ snapshot_filename }}"}}, {"delay": {"seconds": 2}}, {"action": "ai_task.generate_data", "continue_on_error": true, "response_variable": "ai_profile", "data": {"task_name": "Hallway Camera Analysis", "entity_id": "ai_task.ollama_ai_task_video", "instructions": "Describe what you see in this image in brief. Focus on any people, objects, or activities. Text needs to be max 240 characters.", "attachments": [{"media_content_id": "[REDACTED]", "media_content_type": "[REDACTED]"}]}}, {"action": "notify.notify", "continue_on_error": true, "data": {"title": "Motion Detected - Hallway", "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.' }}"}}, {"action": "persistent_notification.create", "data": {"title": "Motion Detected - Hallway", "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 }})", "notification_id": "{{ notification_id }}"}}], "mode": "queued", "max": 10}, "identifier": null, "python_transform": null, "config_hash": null, "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 625.8060932159424, "success": true, "error_message": null, "response_size_bytes": 207, "user_context": null} +{"timestamp": "2026-07-28T19:33:17.304634+00:00", "tool_name": "ha_get_automation_traces", "parameters": {"automation_id": "automation.hallway_camera_motion_snapshot", "run_id": null, "limit": 10, "deduplicate": true, "detailed": false, "sections": null, "offset": 0, "order": "newest", "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 14.595270156860352, "success": true, "error_message": null, "response_size_bytes": 596, "user_context": null} +{"timestamp": "2026-07-28T19:33:17.570753+00:00", "tool_name": "ha_get_logs", "parameters": {"source": "system", "limit": 30, "search": null, "order": "newest", "hours_back": 1, "entity_id": null, "end_time": null, "offset": 0, "compact": true, "level": null, "slug": null}, "execution_time_ms": 3.546476364135742, "success": true, "error_message": null, "response_size_bytes": 42660, "user_context": null}