While reading the forum's threads, I found some posts with complains about soft image while the camera is going from color to IR or the opposite. In this Testing roundup IPC-HDBW4431EP-AS versus IPC-HDBW5431E-Z thread, TVT73 is complaining about soft focus in IPC-HDBW4431EP-AS camera. Here Any Dahua cams WITHOUT the focus bug? Jeroen1000 is calling this a "focus bug".
In reality this is not a "bug" or any firmware/hardware error. It's just physics of electromagnetic waves, and every camera with removable IR filter, without advanced optics will experience this focus shift to some extent.

When visible light passes through the camera's lens, the focus plane overlays precisely with image sensor, and so the image is sharp. The infrared light passing the same lens, focuses tiny bit further from the lens and thus the image becomes blurry. The final night image consist of a mixture of visible and infrared light. And so different objects on the image may look more or less out of focus, depending on how much IR light is being reflected from them. Below is an example from my HDW4231EM-AS camera.

The tree branches as well as bushes are noticeably blurry in night mode, but the inside of the car look almost identical between two modes.
Owners of fixed lens cameras have no chance to fix this, as there is no autofocus available. However varifocal cameras can refocus and correct this shift. It would be a pain in the butt to do that every twice a day, but it is possible. The best solution is to use ultra low dispersion lens, but these are expensive and would rise the overall cost of the camera.
Anyway, I thought it will be useful to share this info with you. For further reading go to:
Resolving the Problem of Focus Shift - CCTV Information
IR Corrected vs. Standard Lenses: Chromatic Aberration | OEMCameras.com Blog
In reality this is not a "bug" or any firmware/hardware error. It's just physics of electromagnetic waves, and every camera with removable IR filter, without advanced optics will experience this focus shift to some extent.

When visible light passes through the camera's lens, the focus plane overlays precisely with image sensor, and so the image is sharp. The infrared light passing the same lens, focuses tiny bit further from the lens and thus the image becomes blurry. The final night image consist of a mixture of visible and infrared light. And so different objects on the image may look more or less out of focus, depending on how much IR light is being reflected from them. Below is an example from my HDW4231EM-AS camera.

The tree branches as well as bushes are noticeably blurry in night mode, but the inside of the car look almost identical between two modes.
Owners of fixed lens cameras have no chance to fix this, as there is no autofocus available. However varifocal cameras can refocus and correct this shift. It would be a pain in the butt to do that every twice a day, but it is possible. The best solution is to use ultra low dispersion lens, but these are expensive and would rise the overall cost of the camera.
Anyway, I thought it will be useful to share this info with you. For further reading go to:
Resolving the Problem of Focus Shift - CCTV Information
IR Corrected vs. Standard Lenses: Chromatic Aberration | OEMCameras.com Blog