I've tested the integration with a DH-IPC-HDW3849H-AS-PV-PRO, everything seems to work fine except for the Illuminator toggle.
I have the camera configured as follow. As-is the white floodlight is off and at night the camera goes to IR mode, if human presence is detected and conditions are met the illuminator turns on.
My understanding of the HA toggle is: forcefully turn on white floodlight. However nothing happens when turning the toggle.
Debug logs seem to show everything is OK, either my understanding is wrong or the logs aren't logging correctly.
2026-04-19 17:09:53.925 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 0.787 seconds (success: True)
2026-04-19 17:10:01.697 DEBUG (MainThread) [custom_components.dahua] Turning light on: /cgi-bin/configManager.cgi?action=setConfig&Lighting_V2[0][2][0].Mode=Off&Lighting_V2[0][2][0].MiddleLight[0].Light=39
2026-04-19 17:10:02.835 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 0.757 seconds (success: True)
2026-04-19 17:10:05.947 DEBUG (MainThread) [custom_components.dahua] Turning light on: /cgi-bin/configManager.cgi?action=setConfig&Lighting_V2[0][2][0].Mode=Manual&Lighting_V2[0][2][0].MiddleLight[0].Light=39
2026-04-19 17:10:07.234 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 0.812 seconds (success: True)
2026-04-19 17:13:29.073 DEBUG (MainThread) [custom_components.dahua] Turning light on: /cgi-bin/configManager.cgi?action=setConfig&Lighting_V2[0][2][0].Mode=Off&Lighting_V2[0][2][0].MiddleLight[0].Light=39
2026-04-19 17:13:30.203 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 0.679 seconds (success: True)
2026-04-19 17:13:32.842 DEBUG (MainThread) [custom_components.dahua] Turning light on: /cgi-bin/configManager.cgi?action=setConfig&Lighting_V2[0][2][0].Mode=Manual&Lighting_V2[0][2][0].MiddleLight[0].Light=39
2026-04-19 17:13:34.144 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 0.724 seconds (success: True)
2026-04-19 17:13:38.390 DEBUG (MainThread) [custom_components.dahua] Turning light on: /cgi-bin/configManager.cgi?action=setConfig&Lighting_V2[0][2][0].Mode=Off&Lighting_V2[0][2][0].MiddleLight[0].Light=39
2026-04-19 17:13:39.455 DEBUG (MainThread) [custom_components.dahua] Finished fetching dahua data in 0.730 seconds (success: True)
I am just exploring around to further understand the situation, I retrieved the v3 API spec and calling {{BASE_URL}}/cgi-bin/configManager.cgi?action=getConfig&name=Lighting returns the following capabilities:
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].MiddleLight[1].Angle=50
table.Lighting[0][0].MiddleLight[1].Light=50
table.Lighting[0][0].Mode=Auto
table.Lighting[0][0].Sensitive=3
table.Lighting[0][1].Correction=50
table.Lighting[0][1].MiddleLight[1].Angle=50
table.Lighting[0][1].MiddleLight[1].Light=50
table.Lighting[0][1].Mode=Auto
table.Lighting[0][1].Sensitive=3
table.Lighting[0][2].Correction=50
table.Lighting[0][2].MiddleLight[1].Angle=50
table.Lighting[0][2].MiddleLight[1].Light=50
table.Lighting[0][2].Mode=Auto
table.Lighting[0][2].Sensitive=3
table.Lighting[0][3].Correction=50
table.Lighting[0][3].MiddleLight[1].Angle=50
table.Lighting[0][3].MiddleLight[1].Light=39
table.Lighting[0][3].Mode=Off
table.Lighting[0][3].Sensitive=3
From the debug logs I can see the HA integration calls /cgi-bin/configManager.cgi?action=setConfig&Lighting_V2[0][2][0].Mode=Off&Lighting_V2[0][2][0].MiddleLight[0].Light=39 but I can't find the Lighting_V2 documented anywhere, is there a more updated API spec?
I've tested the integration with a DH-IPC-HDW3849H-AS-PV-PRO, everything seems to work fine except for the Illuminator toggle.
I have the camera configured as follow. As-is the white floodlight is off and at night the camera goes to IR mode, if human presence is detected and conditions are met the illuminator turns on.
My understanding of the HA toggle is: forcefully turn on white floodlight. However nothing happens when turning the toggle.
Debug logs seem to show everything is OK, either my understanding is wrong or the logs aren't logging correctly.
I am just exploring around to further understand the situation, I retrieved the v3 API spec and calling
{{BASE_URL}}/cgi-bin/configManager.cgi?action=getConfig&name=Lightingreturns the following capabilities:From the debug logs I can see the HA integration calls
/cgi-bin/configManager.cgi?action=setConfig&Lighting_V2[0][2][0].Mode=Off&Lighting_V2[0][2][0].MiddleLight[0].Light=39but I can't find theLighting_V2documented anywhere, is there a more updated API spec?