When using Dahua cameras it is not necessary to use a function which requires a specific API for each camera. Instead set day/night modes for each camera which will switch brightness, contract, B/W, color, LED, shutter speed, etc when the sun goes down and then again when the sun rises.
Thus all of your individual camera (Dahua) settings can have different values for day and night operations.