.ha_mcp/logs/mcp_usage.jsonl, automations.yaml
This commit is contained in:
@@ -153,3 +153,4 @@
|
|||||||
{"timestamp": "2026-07-28T19:30:09.966396+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "event.hallway_hallway_camera_motion", "fields": null, "attribute_keys": null}, "execution_time_ms": 7.077217102050781, "success": true, "error_message": null, "response_size_bytes": 930, "user_context": null}
|
{"timestamp": "2026-07-28T19:30:09.966396+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "event.hallway_hallway_camera_motion", "fields": null, "attribute_keys": null}, "execution_time_ms": 7.077217102050781, "success": true, "error_message": null, "response_size_bytes": 930, "user_context": null}
|
||||||
{"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: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: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", "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}
|
||||||
|
|||||||
+2556
-2504
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user