API to turn on light for the IPC-HDW3849H-AS-PV

runraid

Getting the hang of it
May 22, 2020
158
87
Seattle
I have an IPC-HDW3849H-AS-PV which has a light or "illuminator" as it is called in the settings. I originally had a lot of problems with this cam but with Andy's latest firmware he sent me, things seem to be good enough for me to keep them (You are the best Andy!)

Question 1: Do any of you know the right API call to make to turn this illuminator on or off?

Question 2: This also has a red/blue flashing light for an alarm that can be triggered with motion or with a button press (and a siren). Do any of you know the right API call to turn those on/off?

1618032095594.png1618032196244.png

 
someone from this forum posted this somewhere for another PV model i think should work for you..

i dont have this model of camera, but i have the IPC-HDW5241H-AS-PV and the below works.

Will try Type=3 for the red/blue light, else refer to API v 2.84 if you can find it.


check status

turn on illuminator IO=1 off =0

play sound IO= 1 stop =0
 
Last edited:
Got it. Here's all the commands for the IPC-HDW3849H-AS-PV to turn on the illuminator, warning lights, and siren:

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.
 
Last edited:
Last edited:
Thanks too! This command also works on the imou turret which is the question i have asked in another thread.
Edit:
Command accepted and imou camera returned "ok" but nothing happened :banghead:

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
 
  • Like
Reactions: fenderman
@holiday - well these commands are for a Dahua cam LOL... another camera would have a different set of API commands.
 
Oh LOL - try this at beginning (except no spaces - had to do that or this happens :p):

username: password@IPADDRESS: PORT#/cgi-.....and the rest
 
@holiday - well these commands are for a Dahua cam LOL... another camera would have a different set of API commands.

It's a stripped down dahua, for the consumer market.


Oh LOL - try this at beginning (except no spaces - had to do that or this happens :p):

username: password@IPADDRESS: PORT#/cgi-.....and the rest

really no need to do that, it will still prompt again for username / password
 
ok update:
I've tried
and got the following.. I think this command might be for the IR light for the imou. Might try again tonight and see what happens.

I was looking for the "White light switch".. so still looking :)


Code:
table.Lighting[0][0].Correction=50
table.Lighting[0][0].MiddleLight[0].Angle=50
table.Lighting[0][0].MiddleLight[0].Light=50
table.Lighting[0][0].Mode=Off
table.Lighting[0][0].NearLight[0].Angle=50
table.Lighting[0][0].NearLight[0].Light=50
table.Lighting[0][0].Sensitive=3
table.Lighting[0][1].Correction=50
table.Lighting[0][1].Mode=Auto
table.Lighting[0][1].Sensitive=3
table.Lighting[0][2].Correction=50
table.Lighting[0][2].Mode=Auto
table.Lighting[0][2].Sensitive=3
table.Lighting[0][3].Correction=50
table.Lighting[0][3].Mode=Auto
table.Lighting[0][3].Sensitive=3
 
  • Like
Reactions: runraid
Got it. Here's all the commands for the IPC-HDW3849H-AS-PV to turn on the illuminator, warning lights, and siren:

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.


Hi,

Illuminator "Power On" with this request work for you ?
i can use the request for Power Off the illuminator, it's Work like a charm...

but when i want to Power On the request don't work, i think something is missing something like that :

but " error request" i think i do something wrong...

when i send this request =>

i see that :

table.Lighting[0][0].Correction=50
table.Lighting[0][0].MiddleLight[0].Angle=50
table.Lighting[0][0].MiddleLight[0].Light=50
table.Lighting[0][0].Mode=Off
table.Lighting[0][0].Sensitive=3
table.Lighting[0][1].Correction=50
table.Lighting[0][1].Mode=Off
table.Lighting[0][1].Sensitive=3
table.Lighting[0][2].Correction=50
table.Lighting[0][2].Mode=ON
table.Lighting[0][2].Sensitive=3
table.Lighting[0][3].Correction=50
table.Lighting[0][3].Mode=Off
table.Lighting[0][3].Sensitive=3


and if i want to power off [0][2] it's easy, and work
but when i send a "ON" or " Manual" nothing happened

i have the same cam, somebody can help me please ?

thanks
 
  • Like
Reactions: hdmando
where i can get the complete API for cameras and dvr's ??

When you find it, let us know. They are a closely guarded secret. An older document is floating around here somewhere, but most of us have figured them out with trial and error and post the results here.
 
When you find it, let us know. They are a closely guarded secret. An older document is floating around here somewhere, but most of us have figured them out with trial and error and post the results here.

wow , here is very talented people then ! , I will keep looking for that and share it !
 
Yes, there are a bunch of talented people on this forum! If there is a specific situation you are looking for the API on, simply post what you are trying to do and someone has probably already figured out the API!
 
Hi there
Thanks for the API lines to activate/deactivate the light.

Also for the siren and the leds. It works for me : when I make the request "cgi-bin/coaxialControlIO.cgi?action=control&channel=2&info[0].Type=2&info[0].IO=1" the siren actually rings out loud. But what I would like is not to make it sound at the moment, but to activate the siren for when an intrusion will be detected.

Any idea what the API code would be?

Thanks
 
  • Like
Reactions: EMPIRETECANDY