ptz html commands for Dahua HDW5231RP-Z

truglo

Pulling my weight
Joined
Jun 28, 2017
Messages
275
Reaction score
103
This seems like a popular enough camera to have it's own entry in the BI drop down list. My cam (latest firm from Andy) generally works after autodetect in BI, and I can turn IR on/off with the "Amcrest/Dahua" setting for PTZ (no ONVIF doesn't do anything, and I've tried several other ptz types). Also, zoom and focus respond but not as expected; both are full in/out, no steps in zoom or focus which is all but useless. None of the other ptz functions that I want work either, like exposure time, day/night profiles, backlight... I'm interested in more complete control of these features with BI, so I can manipulate them with BI schedules. So I think I need to learn the correct way to fill out a BI "Custom HTML" for this camera.

I've reseached a little bit and found a pdf of Dahua commands posted by Nayr:
Switch Dahua Day/Night Profile via IPC HTTP API

I am trying to keep it simple as I learn this; just switching between day/night profiles with these commands in the BI custom url gui:
Code:
http://user:pw@192.168.x.y/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[1].NightOptions.Profile=1
Code:
http://user:pw@192.168.x.y/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[1].NightOptions.Profile=0
For testing, I put those commands on "IR on/off", so I could quickly see if they work with the BI gui button. I also tried this in case BI was already adding the first part, which makes sense since ip/usr/pw are already part of the root camera properties in BI:
Code:
/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[1].NightOptions.Profile=1
The camera seems to ignore these commands. I am going off of a pdf of the "Dahua 1.37 API" that found on the forums. Seems there are many versions of the API floating around the forums but they don't seem very different (the commands I'm testing anyways). Any pointers?

Thanks,
Kev

[edit: So playing around a bit more, I tried nayr's day/night profile commands verbatim, and they both worked. WOOT! I learned that the http://...IPaddress part is not needed in BI, and I need to use video channel 0.

Now I need to understand why the "VideoInOptions[0].NightOptions.Profile" didn't work, among other things (like further detail on "VideoInMode[0]". Is there a good place to go when learning Dahua API, besides rough and tumble search/read on the forums and google? Any help is much appreciated.]
 
Last edited:

truglo

Pulling my weight
Joined
Jun 28, 2017
Messages
275
Reaction score
103
No, didn't work I just had another rainbow incident. Any other suggestions, other than turning off hardware acceleration?
 
Top