I nailed this down for myself, addressing the focus shift issue on the sd49225t-hn which doesn't support the adjustfocus api setting to set an absolute focus value.
To switch modes I'm doing it externally thru a script from my Vera home automation, but any method you want to use to send the API calls would work fine. My home automation is already figuring out when day/night is every day, so its easy to use that as a trigger when I need to switch modes.
First, I turn on night mode/IR on (VideoInMode[0].Config[0]=1), set focus to automatic (VideoInFocus[0][1].Mode=2), and shutter to 1/1 (&VideoInExposure[0][1].Value1=1000&VideoInExposure[0][1].Value2=1000) so that the scene is very well lit/clearly visible - this gets the camera in night mode, with IR on, and autofocus works great since the scene is well lit with long shutter.
http://username:password@192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=1&VideoInFocus[0][1].Mode=2&VideoInExposure[0][1].Value1=1000&VideoInExposure[0][1].Value2=1000
So that gets my focus reset to account for the IR focus shift going from daylight to night, however my shutter is way too long to capture plates now. So I have the script sleep for a few seconds ensuring it has time to apply the prior settings and focus, then I just need to set focus to manual (VideoInFocus[0][1].Mode=4) so it doesn't try to auto-adjust again once the scene goes black, and I set shutter to 1/1000 (&VideoInExposure[0][1].Value1=1&VideoInExposure[0][1].Value2=1)which is perfect for clear, crisp plates:
http://username:password@192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=1&VideoInFocus[0][1].Mode=4&VideoInExposure[0][1].Value1=1&VideoInExposure[0][1].Value2=1
My daytime switch just turns on day mode and sets focus and shutter to automatic:
http://username:password@192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=0&VideoInFocus[0][0].Mode=2&VideoInExposure[0][0].Mode=0
So to recap, I'm using these settings with the SD49225T-HN to capture plates at 150' day and night at something like a 40 degree angle. During the day, everything is set to default except zoom near max. During the night:
picture is set default
exposure is set manual, shutter 1/1000, 2D/3D NR set to 26
Backlight HLC set to 71
WB auto
Day/Night - ICR black and white
Zoom focus set to manual
IRLight far set 100
Night plates:
Day plates: