.ha_mcp/logs/mcp_usage.jsonl, automations.yaml

This commit is contained in:
Home Assistant Version Control
2026-07-28 19:41:37 +00:00
parent be05fd6129
commit 19c201799a
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -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}
+2 -2
View File
@@ -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: