rroller / dahua

Dahua Camera and Doorbell Home Assistant Integration
MIT License
387 stars 73 forks source link

Tested: multiple features not working with Lorex E893DD #326

Open Prestongs1 opened 9 months ago

Prestongs1 commented 9 months ago

Is your feature request related to a problem? Please describe. Trying to set up this integration with Lorex model E893DD, does not import or control all the features of this camera. I am aware this is not a supported model. Seems to be the same as Dahua N55DU82 (also not a supported model). Features that I have tested working: video on all three streams, motion detect on/off. Features tested not working: IR illuminator on/ off, white light illuminator on/off, siren on/off.

Describe the solution you'd like I would love it if this camera would be included, but I would alternatively like the option to be able to override camera model on initialization to test whether the integration will still control these features if it were to be recognized as a similar camera that supports these features.

Describe alternatives you've considered Tried adding my model number to the the check for supports_siren. I did get a siren switch to populate as an entity. When activated, get the below errors back, so I know I am missing something with the way the siren is turned on. It's possible the format for this Lorex does not match the supported Dahuas'.

[547489377600] 400, message='Bad Request', url=URL('http://192.168.68.64:80/cgi-bin/coaxialControlIO.cgi?action=control&channel=0&info%5B0%5D.Type=2&info%5B0%5D.IO=2') [547214723520] 400, message='Bad Request', url=URL('http://192.168.68.64:80/cgi-bin/coaxialControlIO.cgi?action=control&channel=0&info%5B0%5D.Type=2&info%5B0%5D.IO=1') [547214723520] 400, message='Bad Request', url=URL('http://192.168.68.64:80/cgi-bin/coaxialControlIO.cgi?action=control&channel=0&info%5B0%5D.Type=2&info%5B0%5D.IO=2') [547489262272] 400, message='Bad Request', url=URL('http://192.168.68.64:80/cgi-bin/coaxialControlIO.cgi?action=control&channel=0&info%5B0%5D.Type=2&info%5B0%5D.IO=1') [547489262272] 400, message='Bad Request', url=URL('http://192.168.68.64:80/cgi-bin/coaxialControlIO.cgi?action=control&channel=0&info%5B0%5D.Type=2&info%5B0%5D.IO=2')

Additional context My edits to test the siren and lights are clunky, I am admittedly not a coder. If anyone has any suggestions for where to look or what other things to try changing, please let me know. Manufacturer does show up as Dahua in the "device" after it's been added.

I much appreciate this integration, should have read the docs before I bought the camera. The "camera" part of the camera is working great in Frigate, but would love if I could use the extra features as well. Current workaround plan is to use the smart illuminate (should selectively turn on IR and white light automatically) and will not be able to use the siren as it stands.

Thanks!