rroller / dahua

Dahua Camera and Doorbell Home Assistant Integration
MIT License
404 stars 82 forks source link

Illuminator support for DH-IPC-HDW3549H-AS-PV-S3 (TIOC 2.0) #176

Open joepvanboekel opened 2 years ago

joepvanboekel commented 2 years ago

perhaps it has some overlap with https://github.com/rroller/dahua/issues/149

I can not enable IR or WhiteLight from Illumation: image

taken from camera to show present options: image image

so we have 3 options, IR Mode, White light and smart illumination (so yes this camera has White Light AND also IR)

entities created in HA: image

I'm using version 0.9.39 from HACS

is there some way we (you..) could add support in for these options ? if there is any way I can help somehow please let me know!

bdherouville commented 2 years ago

It seems that this model uses Lighting_V2, I'll try the commands this night.

Perhap's it is not well recognized by the plugin.

$ curl --digest -u "login:password" -g "http://IP/cgi-bin/configManager.cgi?action=getConfig&name=Lighting_V2" table.Lighting_V2[0][0][0].Correction=50 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=50 table.Lighting_V2[0][0][0].Mode=Auto table.Lighting_V2[0][0][0].Sensitive=3 table.Lighting_V2[0][0][1].Correction=50 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=100 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].LightType=AIMixLight table.Lighting_V2[0][0][2].Mode=Auto table.Lighting_V2[0][0][2].PercentOfMaxBrightness=100 table.Lighting_V2[0][0][2].Sensitive=3 table.Lighting_V2[0][1][0].Correction=50 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].Sensitive=3 table.Lighting_V2[0][1][1].Correction=50 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].LightType=AIMixLight table.Lighting_V2[0][1][2].Mode=Auto table.Lighting_V2[0][1][2].PercentOfMaxBrightness=100 table.Lighting_V2[0][1][2].Sensitive=3 table.Lighting_V2[0][2][0].Correction=50 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].Sensitive=3 table.Lighting_V2[0][2][1].Correction=50 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].LightType=AIMixLight table.Lighting_V2[0][2][2].Mode=Auto table.Lighting_V2[0][2][2].PercentOfMaxBrightness=100 table.Lighting_V2[0][2][2].Sensitive=3