Ideally, we should be able to select the scene based on the actual scene illumination level. Maybe Hikvision will add this in future firmware or newer cameras? Maybe the illumination sensor in the camera isn't sensitive enough to support this?
I doubt it'll ever happen. Older and now obsolete Hikvision cameras had an illumination sensor/photocell that would be used to switch the mode between day and night when set to auto switch. I remember a firmware release for those older cameras where the operation changed. Hikvision changed the operation of the mode switch to discontinue using that separate sensor and instead use level from the image (newer cameras don't have the photocell). I guess that's where the issue lies; as the sensor receives less light, the camera automatically increase gain and lowers its electronic shutter speed to maintain the overall exposure and so the image level cannot be used to switch mode, as it's constantly being changed.
The main issue you face could be night rather than low light. On a night I have to use auto day/night switching so that a security light will allow the camera to switch back to colour when the security light is triggered. Day/Night when set to Auto disables the option to adjust image gain and that's one of the parameters that yields results from tweaking.
Here is a flow based on time switching between two modes:
The big timer node is based around location and offset from sunrise/sunset in that location. At the point of switching from low light to normal, even with a 90 minute offset the camera image may be darker than desirable. Setting an additional mode switch to cover those transitional times will improve that. That said, it is far more desirable to have a darker image free of noise:
The switch node provides a separate on/off output to send the switch messages to the camera:
Finally the two Hikvision xml nodes are configured:
As you can see I'm using the NVR IP address with the virtual host port appended to it (camera 6 in my example). The ISAPI path with channel number will always be the same (channels/1)
Here is the xml snippet (as my image truncates it):
<?xml version="1.0" encoding="UTF-8"?>
<MountingScenario version="2.0" xmlns="
http://www.hikvision.com/ver20/XMLSchema">
<mode>lowIllumination</mode>
</MountingScenario>