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

This commit is contained in:
Home Assistant Version Control
2026-07-28 19:37:30 +00:00
parent 06c15e1f0e
commit 3153e4fcb3
2 changed files with 5 additions and 11 deletions
+2
View File
@@ -162,3 +162,5 @@
{"timestamp": "2026-07-28T19:35:14.714688+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "camera.hallway_hallway_camera", "fields": null, "attribute_keys": null}, "execution_time_ms": 5.452632904052734, "success": true, "error_message": null, "response_size_bytes": 1009, "user_context": null}
{"timestamp": "2026-07-28T19:35:31.890141+00:00", "tool_name": "ha_list_services", "parameters": {"domain": "camera", "query": null, "limit": 50, "offset": 0, "detail_level": "summary", "service_fields": null, "fields": null}, "execution_time_ms": 38.99884223937988, "success": true, "error_message": null, "response_size_bytes": 1383, "user_context": null}
{"timestamp": "2026-07-28T19:37:18.971586+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.hallway_camera_motion_snapshot"}, "execution_time_ms": 81.84099197387695, "success": true, "error_message": null, "response_size_bytes": 2183, "user_context": null}
{"timestamp": "2026-07-28T19:37:25.252601+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.hallway_camera_motion_snapshot", "python_transform": "config['actions'][1] = {'action': 'shell_command.download_camera_image', 'data': {'media_path': '/media/{{ snapshot_filename }}', 'www_path': '/config/www/{{ snapshot_filename }}'}}\ndel config['actions'][2]\ndel config['actions'][2]", "config_hash": "1c5689dd43bc005f", "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 258.79406929016113, "success": true, "error_message": null, "response_size_bytes": 587, "user_context": null}
{"timestamp": "2026-07-28T19:37:28.416232+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.hallway_camera_motion_snapshot"}, "execution_time_ms": 48.69842529296875, "success": true, "error_message": null, "response_size_bytes": 2021, "user_context": null}
+3 -11
View File
@@ -3059,18 +3059,10 @@
- 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
- action: shell_command.download_camera_image
data:
filename: /media/{{ snapshot_filename }}
- action: camera.snapshot
target:
entity_id: camera.hallway_hallway_camera
data:
filename: /config/www/{{ snapshot_filename }}
- delay:
seconds: 2
media_path: /media/{{ snapshot_filename }}
www_path: /config/www/{{ snapshot_filename }}
- action: ai_task.generate_data
continue_on_error: true
response_variable: ai_profile