Dahua TiOC 2.0 HTTP commands

lsonee

Young grasshopper
Joined
Jul 12, 2021
Messages
46
Reaction score
10
I have 10 new HDW3648H TiOC's running on blue iris, i'm trying to figure out how to get Blue Iris to trigger the spotlight, the blue/red strobes & possibly the audio.

I have tried quite a few combinations however they were for older model TiOC's

Can anyone help me out.
 

MC1987

Pulling my weight
Joined
Apr 5, 2018
Messages
179
Reaction score
112
I never got the white light to work.

Check status of warning lights and speakers

Turn warning lights (red/blue lights)
ON:
OFF:

Play sound (siren)
ON:
OFF:

Turn light (illuminator)
ON:
OFF:

Where [0][1] is [ChannelNo][ConfigNo]
ChannelNo: integer, array index starts from 0, which means video channel (equals to video channel index -1, and so 0 means channel 1).
ConfigNo: array index, can be 0, 1 or 2. 0 means config for day, 1 means config for night, and 2 means config for normal scene.


Make sure you follow this correctly...
Where [0][1] is [ChannelNo][ConfigNo]
ChannelNo: integer, array index starts from 0, which means video channel (equals to video channel index -1, and so 0 means channel 1).
ConfigNo: array index, can be 0, 1 or 2. 0 means config for day, 1 means config for night, and 2 means config for normal scene.

Day/night makes a difference
 

lsonee

Young grasshopper
Joined
Jul 12, 2021
Messages
46
Reaction score
10
Yes i have go the blue/rd sirens to work, im particulary attempting to get the white light to work

This is from the API
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
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,385
Reaction score
49,448
Location
USA
It looks like this is the answer:

table.Lighting_V2[0][0][1].LightType=WhiteLight
table.Lighting_V2[0][0][1].Mode=Auto

So you need to add those to the API and then change Auto with on, off, or true, false or 1, 2 to figure out which is on and off

Or turn the light on and run the get command again and see what Auto changed to
 

lsonee

Young grasshopper
Joined
Jul 12, 2021
Messages
46
Reaction score
10
It looks like this is the answer:

table.Lighting_V2[0][0][1].LightType=WhiteLight
table.Lighting_V2[0][0][1].Mode=Auto

So you need to add those to the API and then change Auto with on, off, or true, false or 1, 2 to figure out which is on and off

Or turn the light on and run the get command again and see what Auto changed to
It says "
status.status.Speaker=Off
status.status.WhiteLight=Off
"

Still can't figure out the command to get it working.
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,385
Reaction score
49,448
Location
USA
Code:
http://user:password@ipaddress/cgi-bin/configManager.cgi?action=setConfig&Lighting[0][1].Mode=Off
 

lsonee

Young grasshopper
Joined
Jul 12, 2021
Messages
46
Reaction score
10
Code:
http://user:password@ipaddress/cgi-bin/configManager.cgi?action=setConfig&Lighting[0][1].Mode=Off
That's the same command as the 2nd post mentioned, however people have not got it to work yet.

Does not work on my end, just says "Ok"
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,385
Reaction score
49,448
Location
USA
You may need to run it with the curl command:

Code:
curl --digest --globoff "http://user:password@ipaddress/cgi-bin/configManager.cgi?action=setConfig&Lighting[0][1].Mode=Off"
But I have seen that with the new GUI that it will give the OK but nothing happen.
 

lsonee

Young grasshopper
Joined
Jul 12, 2021
Messages
46
Reaction score
10
You may need to run it with the curl command:

Code:
curl --digest --globoff "http://user:password@ipaddress/cgi-bin/configManager.cgi?action=setConfig&Lighting[0][1].Mode=Off"
But I have seen that with the new GUI that it will give the OK but nothing happen.
Thanks for you assistance but i'm not familiar with how to do a curl command?
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,385
Reaction score
49,448
Location
USA
Just run that command just like it shows except change the user password and IP address to yours
 

lsonee

Young grasshopper
Joined
Jul 12, 2021
Messages
46
Reaction score
10
Just run that command just like it shows except change the user password and IP address to yours
Im using web interface, internet explorer to test commands & using blue iris to trigger them, i have no where to input curl commands.
 

lsonee

Young grasshopper
Joined
Jul 12, 2021
Messages
46
Reaction score
10
Could not get it to work, if anyone else has the same camera, it would help so much to know the white/warm light command.
 

phonebooth

n3wb
Joined
Apr 24, 2022
Messages
10
Reaction score
2
Location
Australia
Dahua support has informed me that the illuminator light (white light) cannot be manually turned on/off via API. Custom firmware is required to achieve this.
 
Top