Cannot disable auto white balance

I’m capturing photos remotely via WiFi, aimed at a bunch of growing vegitables.
I have noticed that the images are going pink as the vegitables grow up, and the camera is seeing lots of green. After the vegitables are gone, the color goes back to normal.
I thought it was because of auto white balance, so I tried tweaking controls on the configuration.
At first I tried "AwbMode": libcamera.controls.AwbModeEnum.Daylight, and then tried to completely disable it as seen in the following code.
However, it seems like the weird coloring is not going away in either case.
I have tried restarting the program, and then completely rebooting the system.

Am I doing something wrong in configuring the camera?

Hardware: Raspberry Pi Zero 2 W
OS version: Bookworm
Camera: B0392
Lens: LN013

Thanks in advance.

Code: import socketimport osfrom picamera2 import Picamera2, Previewimport sys - Pastebin.com

OS version is Bullseye, not Bookworm
Somehow I can’t edit the post (the forum says 403 error)

Hi,
The FOV of this camera is 155°. You choose 70° json file in the code. Is it supposed to be the problem?

Hello,

I don’t believe lens calibration is the problem.

  1. As I have mentioned in the original post, I’m currently using LN013 lens, for which I should use 70 degree file, according to the following page.
    Lens Shading Calibration - Arducam Wiki

  2. If the lens calibration is the problem, the error in color would constantly be there.
    However, the pinkish tint gets worsen as the vegitables grow, and it goes back to normal when the vegitables are gone.

I have found the problem.
start_and_capture_file() seems to override the config.

When captured with picam2.start() and then picam2.capture_file(), the given ColourGains controls option properly applies.