I just released a new version of rroller/dahua that supports the "Disarming Linkage" as a binary switch.
You can install that into Home Assistant manually or with HACS. It looks like this...
View attachment 92303
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
Hey @runraid - I finally got around to trying to set this all up in BI to just disable these types of cam with a profile.
The command works to get the current value, but when I run the enable or disable, it takes exception to the 0 in [0]. I have tried 0,1,2,true,false and eliminated the [0] and still doesn't like it. Any ideas?
And now that you have the 4k/x, it has audio that can play but doesn't have the disarm option - have you figured out the API to disable and enable that?