diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index c4428625..32b2516d 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -1786,3 +1786,4 @@ {"timestamp": "2026-08-23T05:18:23.981882+00:00", "tool_name": "ha_call_service", "parameters": {"domain": "automation", "service": "trigger", "entity_id": "automation.3d_print_complete_snapshot", "data": null, "return_response": false, "wait": true, "verbose": false, "result_fields": null, "result_attribute_keys": null, "ws_command": null}, "execution_time_ms": 273.67258071899414, "success": true, "error_message": null, "response_size_bytes": 206, "user_context": null} {"timestamp": "2026-08-23T05:18:42.932497+00:00", "tool_name": "ha_get_automation_traces", "parameters": {"automation_id": "automation.3d_print_complete_snapshot", "run_id": null, "limit": 1, "deduplicate": true, "detailed": false, "sections": "actions", "offset": 0, "order": "newest", "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 5.420923233032227, "success": true, "error_message": null, "response_size_bytes": 447, "user_context": null} {"timestamp": "2026-08-23T05:20:26.570093+00:00", "tool_name": "ha_get_camera_image", "parameters": {"entity_id": "camera.endercamera_duckdns_org", "width": 640, "height": 480}, "execution_time_ms": 685.5568885803223, "success": true, "error_message": null, "response_size_bytes": null, "user_context": null} +{"timestamp": "2026-08-23T05:23:42.139820+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.3d_print_complete_snapshot", "python_transform": "payload = {\"title\": \"3D print complete\", \"message\": \"Print finished successfully at {{ now().strftime('%H:%M') }}.\", \"data\": {\"image\": \"/local/octoprint_snapshot.jpg\"}}; targets = [\"notify.mobile_app_sm_f956w\", \"notify.mobile_app_motorola_one_vision\", \"notify.mobile_app_francos_ipad\", \"notify.mobile_app_sm_t387w\"]; config[\"actions\"] = [{\"action\": \"camera.snapshot\", \"target\": {\"entity_id\": \"camera.endercamera_duckdns_org\"}, \"data\": {\"filename\": \"/config/www/octoprint_snapshot.jpg\"}}, {\"parallel\": [{\"action\": t, \"data\": payload} for t in targets]}]", "config_hash": "ae6860c7a9dcfcde", "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 1341.2485122680664, "success": true, "error_message": null, "response_size_bytes": 900, "user_context": null} diff --git a/automations.yaml b/automations.yaml index ced69ea5..52a6002f 100644 --- a/automations.yaml +++ b/automations.yaml @@ -3296,31 +3296,36 @@ to: PrintDone trigger: state actions: + - action: camera.snapshot + target: + entity_id: camera.endercamera_duckdns_org + data: + filename: /config/www/octoprint_snapshot.jpg - parallel: - action: notify.mobile_app_sm_f956w data: title: 3D print complete message: Print finished successfully at {{ now().strftime('%H:%M') }}. data: - entity_id: camera.endercamera_duckdns_org + image: /local/octoprint_snapshot.jpg - action: notify.mobile_app_motorola_one_vision data: title: 3D print complete message: Print finished successfully at {{ now().strftime('%H:%M') }}. data: - entity_id: camera.endercamera_duckdns_org + image: /local/octoprint_snapshot.jpg - action: notify.mobile_app_francos_ipad data: title: 3D print complete message: Print finished successfully at {{ now().strftime('%H:%M') }}. data: - entity_id: camera.endercamera_duckdns_org + image: /local/octoprint_snapshot.jpg - action: notify.mobile_app_sm_t387w data: title: 3D print complete message: Print finished successfully at {{ now().strftime('%H:%M') }}. data: - entity_id: camera.endercamera_duckdns_org + image: /local/octoprint_snapshot.jpg mode: single - id: '1787462157568' alias: 3D Print Early Layers Snapshot