rroller / dahua

Dahua Camera and Doorbell Home Assistant Integration
MIT License
369 stars 71 forks source link

Working with Dahua IPC-L26N Floodlight Camera #341

Open bluezclouds opened 4 months ago

bluezclouds commented 4 months ago

Live video (both Main and Sub), Motion Alarm and Alarm Local (not sure what that one is) are working with the Dahua IPC-L26N. Floodlight Camera. Disarming, Infrared and Motion Detection controls are shown.

Missing are light and siren controls.

Thanks for a great integration!

bluezclouds commented 4 months ago

I spent a few hours figuring out the GET commands required to control the light and siren. (The API doc was incorrect.) Perhaps they'll be helpful for this model and other Dahua products if these controls are added in a future release.

Light on: http://[user]:[password]@[IP}/cgi-bin/coaxialControlIO.cgi?action=control&channel=1&info[0].Type=1&info[0].IO=1 Light off: http://[user]:[password]@[IP}/cgi-bin/coaxialControlIO.cgi?action=control&channel=1&info[0].Type=1&info[0].IO=0

Siren on: http://[user]:[password]@[IP}/cgi-bin/coaxialControlIO.cgi?action=control&channel=1&info[0].Type=2&info[0].IO=1 Siren off: http://[user]:[password]@[IP}/cgi-bin/coaxialControlIO.cgi?action=control&channel=1&info[0].Type=2&info[0].IO=2 (IO=2 is the correct string to turn off the siren.)