I do not use the dahua sunrise/sunset tool, but these URLs work on a Dahua-rebranded
Amcrest IP2M-841. Config and modify to suit your need:
This command forces night mode:
Code:
http://username:password@camera-IP/cgi-bin/configManager.cgi?action=setConfig&VideoInDayNight[0][0].Mode=BlackWhite
This command forces Day/Night Auto mode:
Code:
http://username:password@camera-IP/cgi-bin/configManager.cgi?action=setConfig&VideoInDayNight[0][0].Mode=Brightness
I guess you could get the HTTP command into the cam via a Shelly1 WiFi switch among other methods. The Shelly can respond to an input from a photocell, photodiode, etc. and issue a HTTP command to the camera. See my write up for more info ==>>
Simple Blue Iris I/O using Shelly1 Wi-Fi Devices
You could use something like this to provide input to the Shelly1 ==>>
HiLetgo 2pcs 12V Photoresistor Sensor Relay Module Car Light Automatic Control Switch with Cable
Both the Shelly1 and the Light sensor relay can operate on 12VDC.
_