I wanted to use stronger noise reduction at night and weaker during the day, but Dahua seems to have made a mess of the profile management. On most cameras, there doesn't seem to be a way to have the camera switch automatically between Day and Night profiles when the camera changes between "Color" and "Black & White" mode.
The Profile Management tab has a "Normal" mode which is evidently supposed to do this (IPC/Camera Configuration - Dahua Wiki). But I just tried it. It doesn't do that at all. Choosing "Normal" just makes the camera use a third profile, which is neither "Day" or "Night" but a separate third profile called "Normal", which stores settings independently of the "Day" and "Night" profiles.
Dahua engineers must live in a world where it is perfectly acceptable to say:
Now I know why Nayr has his profile management scripted externally, but even that seems to be a mess: Switch Dahua Day/Night Profile via IPC HTTP API
Update
I've written Windows software to take care of this.
For each camera you wish to do this with, you need to go to its web interface > Setting > Camera > Conditions > Profile Management. Set it to Full Time.
GitHub - bp2008/DahuaSunriseSunset: A Windows Service which changes the profile of dahua cameras between Night and Day at each sunset and sunrise.
Alternative using Blue Iris to set camera profiles:
I am not using the DahuaSunriseSunset service anymore. Instead I am having Blue Iris send the http requests using its own scheduler.
For each camera you wish to do this with, you need to go to its web interface > Setting > Camera > Conditions > Profile Management. Set it to Full Time.
There are several ways to make Blue Iris change the camera's active profile. Here I will give instructions for the method I use. It is a little hacky because you can't simply schedule a custom HTTP request to occur. But you can modify PTZ presets in Blue Iris to send custom HTTP requests, and you can schedule calls to those presets to happen at times relative to sunrise and sunset.
The procedure is:
1. In Blue Iris, go to Camera Properties > PTZ/Control tab.
2. Enable PTZ control (if your cam doesn't have motorized pan/tilt/zoom then just pick "Dahua New V5" from the dropdown).
3. Click Edit presets.
4. Type
5. Click "On call" button, then add a "Web request or MQTT" action.
6. Configure the URL as
7. Repeat steps 4-6 on a different preset, but with the description
Finally you can proceed to scheduling calls to your presets:
8. Go to camera properties > Schedule tab > Events schedule.
Add each event at the desired time:
In this example, I configured it so the camera goes to Day mode 1 hour before sunrise. I configured this weeks ago and Blue Iris has automatically adjusted the exact scheduled time as the sunrise time changes daily.
The Profile Management tab has a "Normal" mode which is evidently supposed to do this (IPC/Camera Configuration - Dahua Wiki). But I just tried it. It doesn't do that at all. Choosing "Normal" just makes the camera use a third profile, which is neither "Day" or "Night" but a separate third profile called "Normal", which stores settings independently of the "Day" and "Night" profiles.
Dahua engineers must live in a world where it is perfectly acceptable to say:
orOh, what beautiful weather we are having this normal.
We're closed right now. Come back during the normal.
Now I know why Nayr has his profile management scripted externally, but even that seems to be a mess: Switch Dahua Day/Night Profile via IPC HTTP API
Update
I've written Windows software to take care of this.
For each camera you wish to do this with, you need to go to its web interface > Setting > Camera > Conditions > Profile Management. Set it to Full Time.
GitHub - bp2008/DahuaSunriseSunset: A Windows Service which changes the profile of dahua cameras between Night and Day at each sunset and sunrise.
Alternative using Blue Iris to set camera profiles:
I am not using the DahuaSunriseSunset service anymore. Instead I am having Blue Iris send the http requests using its own scheduler.
For each camera you wish to do this with, you need to go to its web interface > Setting > Camera > Conditions > Profile Management. Set it to Full Time.
There are several ways to make Blue Iris change the camera's active profile. Here I will give instructions for the method I use. It is a little hacky because you can't simply schedule a custom HTTP request to occur. But you can modify PTZ presets in Blue Iris to send custom HTTP requests, and you can schedule calls to those presets to happen at times relative to sunrise and sunset.
The procedure is:
1. In Blue Iris, go to Camera Properties > PTZ/Control tab.
2. Enable PTZ control (if your cam doesn't have motorized pan/tilt/zoom then just pick "Dahua New V5" from the dropdown).
3. Click Edit presets.
4. Type
Day Profile
into the description of one of the presets which you do not intend to use for anything else.5. Click "On call" button, then add a "Web request or MQTT" action.
6. Configure the URL as
user:password@192.168.0.1/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=0
, replacing user
, password
, and 192.168.0.1
with your own camera credentials and address.7. Repeat steps 4-6 on a different preset, but with the description
Night Profile
and change the 0
at the end of the URL to 1
like this: user:password@192.168.0.1/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=1
Finally you can proceed to scheduling calls to your presets:
8. Go to camera properties > Schedule tab > Events schedule.
Add each event at the desired time:
In this example, I configured it so the camera goes to Day mode 1 hour before sunrise. I configured this weeks ago and Blue Iris has automatically adjusted the exact scheduled time as the sunrise time changes daily.
Last edited: