Stop video recording when disarmed / http API config RecordMode for multiple channels in only one command

Marauder

n3wb
Jul 21, 2022
1
0
Germany
Hello guys, hope you do well,

may I ask you for some deep dive assistance on the http API, please.

I am admin of a small setup, diving into the world of Dahua now for 3 years.
Location: Remote location, persons on site very sporadically and unregularly.
Setup: NVR: 4216-16P-4KS2/L + 4 pcs of IP Cams HDW3849-AS-PV-S3, all latest firmware. IVS Rules configured in all Cams, SMD set to Human + MotorVehicle.

Overall-Aim: Completely no video recording when persons are on site and NVR is disarmed (reduce video data on HDD + respect privacy of persons).
Preferred functionality: Disarm via DMSS App. This unfortunately seems not to be backed into the firmware. Disarm does not disable IVS triggering and thus video recording. Anyone out there who made it to function exactly like this? How?
Alternative funcionality: Alarm-In configuration to Disarm (this is available in my firmware) and set Recording Mode from all Cams to "Off". In the Alarm-In config there is "More" on the very bottom, there is the possibility to "Sent Command". A tested http-request is executed propperly here, answering with "OK" and setting the channel to "Off". So far so good.
But this request "" which is used for setting the Record Mode of channel 11 to "off" is only accepting one channel attribute at a time. Can anyone out there give me a hint on the Syntax of how to config multiple channels in one command (There is only one command possible in this field)? In particular: I want to set channels 9 to 12 to "Off", thus need someting like [8:11].Mode=2 but this throws back "Error" as [8:11] is not an accepted syntax for more than one channel argument. http API documentation says nothing about that, I also tried a bunch off guesses like [8-11], [8+11], [8,11], [8]:[11], ... but nothing works.

I am thankful for any hint, best would be the preferred functionality, of course.

greetings,
Marauder