dahua
dahua copied to clipboard
Add support for new lighting_V2 commands
The newer cameras now seem to have different API commands for the lights, for example the 180-degree camera IPC-PDW5849-A180-E2-ASTE
The switch shows up in the integration, but does not work, presumably because it is a different API call now
The format is http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&Lighting_V2[0][0][0].Mode=Off
and http://192.168.1.108/cgi-bin/configManager.cgi?action=setConfig&Lighting_V2[0][0][0].Mode=Manual
The middle number in the square bracket is the profile, so 0=day, 1=night, 2=general