Disable/enable "Disarming" by API?

@wittaj do you use Home Assistant? I'm curious how your use of BI compares to my Home Assistant setup? Dahua cameras + Home Assistant + Deepstack seems to be the sweet spot for me. It gives me the ability to totally integrate any and everything. As an example, at night, if a human is detected by my cams, all my outside lights turn on for 5 minutes. I only record on motion to my NAS so in general, I don't have a central server processing all the video feed 24/7.

Nope I do not run HA (yet anyway lol)

I have found that BI with Dahua camera AI is my sweet spot. I have the Dahua AI IVS rule configured for triggering within my "personal space" around the home and that is what sends me push and alerts. Then I let BI motion take care of any other motion outside of those areas.

It has been on my list of things to do to figure out the API to arm/disarm active deterrence and then set up a profile to disarm them. Hopefully the API script you have above work for mine as I have found little nuance differences in APIs among different Dahua cams.
 
Nope I do not run HA (yet anyway lol)

I have found that BI with Dahua camera AI is my sweet spot. I have the Dahua AI IVS rule configured for triggering within my "personal space" around the home and that is what sends me push and alerts. Then I let BI motion take care of any other motion outside of those areas.

It has been on my list of things to do to figure out the API to arm/disarm active deterrence and then set up a profile to disarm them. Hopefully the API script you have above work for mine as I have found little nuance differences in APIs among different Dahua cams.

Sounds like a nice setup. Let me know if you need me to figure out any of the Dahua APIs, happy to do so.
 
If you aren't running Home Assistant and which to use a script... here's how you'll do it (remember this needs to use Digest Authentication)
Code:
# Get the current value
http://IP_ADDRESS/cgi-bin/configManager.cgi?action=getConfig&name=DisableLinkage

# Disable
http://IP_ADDRESS/cgi-bin/configManager.cgi?action=setConfig&DisableLinkage[0].Enable=false

# Enable
http://IP_ADDRESS/cgi-bin/configManager.cgi?action=setConfig&DisableLinkage[0].Enable=true

@runraid - thanks again for this! I had to add the user and password in front of the IP address, but looks like it works for at least one of my active deterrence cams!

I just ran the get current value and mine says: table.DisableLinkage.Enable=false

Mine is armed 24/7, so I was expecting mine to say Enable=true, so what I am missing? Are the disable and enable reversed?
 
Last edited:
@wittaj thats correct. It’s worded weird. You did not enable the disable setting. So it returns false.

disable =false is an easier way to think about it.
 
OK thanks. I figured it was a weirdly worded double negative or something LOL.
 
It is the same weird logic in the NVRs webinterface and in the DMSS.
You need to think two or three times to understand what it actually mean.

Changing to "Armed / Disarmed" would make it just a little bit more clear.... =)

disarm.JPG
 
No sorry haven’t had time. If you can please create an issue in GitHub for this so I don’t forget
 
@Pacs what exactly where you looking for? It wasn't totally clear to me as I scrolled back through the history. Sorry for the confusion
 
@Pacs what exactly where you looking for? It wasn't totally clear to me as I scrolled back through the history. Sorry for the confusion

I am currently running NX witness on one of my systems with the DAHUA HDW-3549HP-AS-PV-0280B I am looking to be able to arm and disarm the camera via API commands. (Correct me if terminology is incorrect)

I am after this ability so I can use the arm/disarm features without going with a dahua NVR OR dahua software utilising a third party software to send commands to use this function so my strobe lights or audio isnt
Going off all the time and can be very adaptable.

Thank you so much for your time
 
@runraid Please see attached setting I am looking to turn on and off via commands without going into web GUI and making it possible to do from NX witness with a soft trigger.
 

Attachments

  • image.jpg
    image.jpg
    4.1 MB · Views: 19
@Pacs this feature is already added to the home assistant integration. Here's a snapshot... it's the switch with the label "Disarming"

1630199011211.png
 
@Pacs this feature is already added to the home assistant integration. Here's a snapshot... it's the switch with the label "Disarming"

View attachment 100029

I implemented this in my Home Assistant setup and really like it !

However I am not sure how the "Disarming" switch works

If I turn that on, all the mail notifications for alarms (like tripwire etc) turns off but the DMSS alarms and push notifications keep coming

Are they not turned off by this switch?