Dahua strobe light activation with Blue Iris

lsonee

Young grasshopper
Joined
Jul 12, 2021
Messages
46
Reaction score
10
Hi, i have a Dahua TiOC camera with active threat deterrence, it has a strobe light & audio which plays thru the camera as an active deterrence, how do i activate the strobe light when blue iris senses motion?

These cameras have been around since 2021, and i hate using the the cameras onboard motion detection system, only because i cant deactivate it on the go via mobile app.
 

fenderman

Staff member
Joined
Mar 9, 2014
Messages
36,903
Reaction score
21,275
Hi, i have a Dahua TiOC camera with active threat deterrence, it has a strobe light & audio which plays thru the camera as an active deterrence, how do i activate the strobe light when blue iris senses motion?

These cameras have been around since 2021, and i hate using the the cameras onboard motion detection system, only because i cant deactivate it on the go via mobile app.
There are some threads that discuss the dahua API that you might be able to use to do this by running commands upon a trigger... A better solution would be to email support and ask him to implement this directly... He will likely need temporary access to your camera and possibly a copy of the API...
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,098
Reaction score
48,906
Location
USA
You have to have it do a command to run the API and then another command to turn it off.

Code:
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&Lighting[0][0].FarLight[0].Light=10&Lighting[0][0].NearLight[0].Light=90&Lighting[0][0].Mode=Manual
Or do as I do since I find the onboard motion more than adequate - I set up a profile to turn off all my light and audio commands from the camera.

Depending on your camera it is either

Code:
/cgi-bin/configManager.cgi?action=setConfig&DisableLinkage[0].Enable=true
OR

Code:
/cgi-bin/configManager.cgi?action=setConfig&VideoAnalyseRule[0][4].EventHandler.VoiceEnable=false
And then switch true to false or vice versa to turn them back on.


 

lsonee

Young grasshopper
Joined
Jul 12, 2021
Messages
46
Reaction score
10
You have to have it do a command to run the API and then another command to turn it off.

Code:
http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&Lighting[0][0].FarLight[0].Light=10&Lighting[0][0].NearLight[0].Light=90&Lighting[0][0].Mode=Manual
Or do as I do since I find the onboard motion more than adequate - I set up a profile to turn off all my light and audio commands from the camera.

Depending on your camera it is either

Code:
/cgi-bin/configManager.cgi?action=setConfig&DisableLinkage[0].Enable=true
OR

Code:
/cgi-bin/configManager.cgi?action=setConfig&VideoAnalyseRule[0][4].EventHandler.VoiceEnable=false
And then switch true to false or vice versa to turn them back on.


The model number is HDW3648H, the above does not work, perhaps this newer model has different commands.
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,098
Reaction score
48,906
Location
USA
Bummer. The unfortunate thing is Dahua seems to not stay consistent with their API commands, which would make it a hard feature to add by the BI developer. It could be done, but it would have to be a per camera protocol setup.
 

lsonee

Young grasshopper
Joined
Jul 12, 2021
Messages
46
Reaction score
10
Bummer. The unfortunate thing is Dahua seems to not stay consistent with their API commands, which would make it a hard feature to add by the BI developer. It could be done, but it would have to be a per camera protocol setup.
Bummer. The unfortunate thing is Dahua seems to not stay consistent with their API commands, which would make it a hard feature to add by the BI developer. It could be done, but it would have to be a per camera protocol setup.

I can pull this from the API, if anyone could help, would be a lifesaver.

table.Lighting_V2[0][0][0].Correction=50
table.Lighting_V2[0][0][0].LightSwitchDelay=0
table.Lighting_V2[0][0][0].LightType=InfraredLight
table.Lighting_V2[0][0][0].MiddleLight[0].Angle=50
table.Lighting_V2[0][0][0].MiddleLight[0].Light=56
table.Lighting_V2[0][0][0].Mode=Off
table.Lighting_V2[0][0][0].PercentOfMaxBrightness=100
table.Lighting_V2[0][0][0].Sensitive=3
table.Lighting_V2[0][0][1].Correction=50
table.Lighting_V2[0][0][1].LightSwitchDelay=0
table.Lighting_V2[0][0][1].LightType=WhiteLight
table.Lighting_V2[0][0][1].Mode=Auto
table.Lighting_V2[0][0][1].NearLight[0].Angle=50
table.Lighting_V2[0][0][1].NearLight[0].Light=50
table.Lighting_V2[0][0][1].PercentOfMaxBrightness=58
table.Lighting_V2[0][0][1].Sensitive=3
table.Lighting_V2[0][0][2].AIMixLightSwitchDelay=60
table.Lighting_V2[0][0][2].Correction=50
table.Lighting_V2[0][0][2].LightSwitchDelay=0
table.Lighting_V2[0][0][2].LightType=AIMixLight
table.Lighting_V2[0][0][2].Mode=Auto
table.Lighting_V2[0][0][2].Sensitive=3
table.Lighting_V2[0][1][0].Correction=50
table.Lighting_V2[0][1][0].LightSwitchDelay=0
table.Lighting_V2[0][1][0].LightType=InfraredLight
table.Lighting_V2[0][1][0].MiddleLight[0].Angle=50
table.Lighting_V2[0][1][0].MiddleLight[0].Light=50
table.Lighting_V2[0][1][0].Mode=Auto
table.Lighting_V2[0][1][0].PercentOfMaxBrightness=100
table.Lighting_V2[0][1][0].Sensitive=3
table.Lighting_V2[0][1][1].Correction=50
table.Lighting_V2[0][1][1].LightSwitchDelay=0
table.Lighting_V2[0][1][1].LightType=WhiteLight
table.Lighting_V2[0][1][1].Mode=Auto
table.Lighting_V2[0][1][1].NearLight[0].Angle=50
table.Lighting_V2[0][1][1].NearLight[0].Light=50
table.Lighting_V2[0][1][1].PercentOfMaxBrightness=100
table.Lighting_V2[0][1][1].Sensitive=3
table.Lighting_V2[0][1][2].AIMixLightSwitchDelay=60
table.Lighting_V2[0][1][2].Correction=50
table.Lighting_V2[0][1][2].LightSwitchDelay=0
table.Lighting_V2[0][1][2].LightType=AIMixLight
table.Lighting_V2[0][1][2].Mode=Auto
table.Lighting_V2[0][1][2].Sensitive=3
table.Lighting_V2[0][2][0].Correction=50
table.Lighting_V2[0][2][0].LightSwitchDelay=0
table.Lighting_V2[0][2][0].LightType=InfraredLight
table.Lighting_V2[0][2][0].MiddleLight[0].Angle=50
table.Lighting_V2[0][2][0].MiddleLight[0].Light=50
table.Lighting_V2[0][2][0].Mode=Auto
table.Lighting_V2[0][2][0].PercentOfMaxBrightness=100
table.Lighting_V2[0][2][0].Sensitive=3
table.Lighting_V2[0][2][1].Correction=50
table.Lighting_V2[0][2][1].LightSwitchDelay=0
table.Lighting_V2[0][2][1].LightType=WhiteLight
table.Lighting_V2[0][2][1].Mode=Auto
table.Lighting_V2[0][2][1].NearLight[0].Angle=50
table.Lighting_V2[0][2][1].NearLight[0].Light=50
table.Lighting_V2[0][2][1].PercentOfMaxBrightness=100
table.Lighting_V2[0][2][1].Sensitive=3
table.Lighting_V2[0][2][2].AIMixLightSwitchDelay=60
table.Lighting_V2[0][2][2].Correction=50
table.Lighting_V2[0][2][2].LightSwitchDelay=0
table.Lighting_V2[0][2][2].LightType=AIMixLight
table.Lighting_V2[0][2][2].Mode=Auto
table.Lighting_V2[0][2][2].Sensitive=3
table.Lighting_V2[0][3][0].Correction=50
table.Lighting_V2[0][3][0].LightSwitchDelay=0
table.Lighting_V2[0][3][0].LightType=InfraredLight
table.Lighting_V2[0][3][0].MiddleLight[0].Angle=50
table.Lighting_V2[0][3][0].MiddleLight[0].Light=50
table.Lighting_V2[0][3][0].Mode=Auto
table.Lighting_V2[0][3][0].Sensitive=3
table.Lighting_V2[0][3][1].Correction=50
table.Lighting_V2[0][3][1].LightSwitchDelay=0
table.Lighting_V2[0][3][1].LightType=WhiteLight
table.Lighting_V2[0][3][1].Mode=Auto
table.Lighting_V2[0][3][1].NearLight[0].Angle=50
table.Lighting_V2[0][3][1].NearLight[0].Light=50
table.Lighting_V2[0][3][1].PercentOfMaxBrightness=100
table.Lighting_V2[0][3][1].Sensitive=3
table.Lighting_V2[0][3][2].AIMixLightSwitchDelay=60
table.Lighting_V2[0][3][2].Correction=50
table.Lighting_V2[0][3][2].LightSwitchDelay=0
table.Lighting_V2[0][3][2].LightType=AIMixLight
table.Lighting_V2[0][3][2].Mode=Auto
table.Lighting_V2[0][3][2].Sensitive=3
table.Lighting_V2[0][4][0].Correction=50
table.Lighting_V2[0][4][0].LightSwitchDelay=0
table.Lighting_V2[0][4][0].LightType=InfraredLight
table.Lighting_V2[0][4][0].MiddleLight[0].Angle=50
table.Lighting_V2[0][4][0].MiddleLight[0].Light=50
table.Lighting_V2[0][4][0].Mode=Auto
table.Lighting_V2[0][4][0].Sensitive=3
table.Lighting_V2[0][4][1].Correction=50
table.Lighting_V2[0][4][1].LightSwitchDelay=0
table.Lighting_V2[0][4][1].LightType=WhiteLight
table.Lighting_V2[0][4][1].Mode=Auto
table.Lighting_V2[0][4][1].NearLight[0].Angle=50
table.Lighting_V2[0][4][1].NearLight[0].Light=50
table.Lighting_V2[0][4][1].PercentOfMaxBrightness=100
table.Lighting_V2[0][4][1].Sensitive=3
table.Lighting_V2[0][4][2].AIMixLightSwitchDelay=60
table.Lighting_V2[0][4][2].Correction=50
table.Lighting_V2[0][4][2].LightSwitchDelay=0
table.Lighting_V2[0][4][2].LightType=AIMixLight
table.Lighting_V2[0][4][2].Mode=Auto
table.Lighting_V2[0][4][2].Sensitive=3
table.Lighting_V2[0][5][0].Correction=50
table.Lighting_V2[0][5][0].LightSwitchDelay=0
table.Lighting_V2[0][5][0].LightType=InfraredLight
table.Lighting_V2[0][5][0].MiddleLight[0].Angle=50
table.Lighting_V2[0][5][0].MiddleLight[0].Light=50
table.Lighting_V2[0][5][0].Mode=Auto
table.Lighting_V2[0][5][0].Sensitive=3
table.Lighting_V2[0][5][1].Correction=50
table.Lighting_V2[0][5][1].LightSwitchDelay=0
table.Lighting_V2[0][5][1].LightType=WhiteLight
table.Lighting_V2[0][5][1].Mode=Auto
table.Lighting_V2[0][5][1].NearLight[0].Angle=50
table.Lighting_V2[0][5][1].NearLight[0].Light=50
table.Lighting_V2[0][5][1].PercentOfMaxBrightness=100
table.Lighting_V2[0][5][1].Sensitive=3
table.Lighting_V2[0][5][2].AIMixLightSwitchDelay=60
table.Lighting_V2[0][5][2].Correction=50
table.Lighting_V2[0][5][2].LightSwitchDelay=0
table.Lighting_V2[0][5][2].LightType=AIMixLight
table.Lighting_V2[0][5][2].Mode=Auto
table.Lighting_V2[0][5][2].Sensitive=3
table.Lighting_V2[0][6][0].Correction=50
table.Lighting_V2[0][6][0].LightSwitchDelay=0
table.Lighting_V2[0][6][0].LightType=InfraredLight
table.Lighting_V2[0][6][0].MiddleLight[0].Angle=50
table.Lighting_V2[0][6][0].MiddleLight[0].Light=50
table.Lighting_V2[0][6][0].Mode=Auto
table.Lighting_V2[0][6][0].Sensitive=3
table.Lighting_V2[0][6][1].Correction=50
table.Lighting_V2[0][6][1].LightSwitchDelay=0
table.Lighting_V2[0][6][1].LightType=WhiteLight
table.Lighting_V2[0][6][1].Mode=Auto
table.Lighting_V2[0][6][1].NearLight[0].Angle=50
table.Lighting_V2[0][6][1].NearLight[0].Light=50
table.Lighting_V2[0][6][1].PercentOfMaxBrightness=100
table.Lighting_V2[0][6][1].Sensitive=3
table.Lighting_V2[0][6][2].AIMixLightSwitchDelay=60
table.Lighting_V2[0][6][2].Correction=50
table.Lighting_V2[0][6][2].LightSwitchDelay=0
table.Lighting_V2[0][6][2].LightType=AIMixLight
table.Lighting_V2[0][6][2].Mode=Auto
table.Lighting_V2[0][6][2].Sensitive=3
table.Lighting_V2[0][7][0].Correction=50
table.Lighting_V2[0][7][0].LightSwitchDelay=0
table.Lighting_V2[0][7][0].LightType=InfraredLight
table.Lighting_V2[0][7][0].MiddleLight[0].Angle=50
table.Lighting_V2[0][7][0].MiddleLight[0].Light=50
table.Lighting_V2[0][7][0].Mode=Auto
table.Lighting_V2[0][7][0].Sensitive=3
table.Lighting_V2[0][7][1].Correction=50
table.Lighting_V2[0][7][1].LightSwitchDelay=0
table.Lighting_V2[0][7][1].LightType=WhiteLight
table.Lighting_V2[0][7][1].Mode=Auto
table.Lighting_V2[0][7][1].NearLight[0].Angle=50
table.Lighting_V2[0][7][1].NearLight[0].Light=50
table.Lighting_V2[0][7][1].PercentOfMaxBrightness=100
table.Lighting_V2[0][7][1].Sensitive=3
table.Lighting_V2[0][7][2].AIMixLightSwitchDelay=60
table.Lighting_V2[0][7][2].Correction=50
table.Lighting_V2[0][7][2].LightSwitchDelay=0
table.Lighting_V2[0][7][2].LightType=AIMixLight
table.Lighting_V2[0][7][2].Mode=Auto
table.Lighting_V2[0][7][2].Sensitive=3
 

phonebooth

n3wb
Joined
Apr 24, 2022
Messages
10
Reaction score
2
Location
Australia
Try this to activate the alarm light. It will flash 9 times if successful, then stop.

/cgi-bin/coaxialControlIO.cgi?action=control&channel=1&info[0].Type=1&info[0].IO=1
 
Top