Sign inSign up

baudneo/dahuavto2mqtt

By baudneo

•Updated over 2 years ago

dahuavto2mqtt modified for Lorex 2k doorbell

Image
Internet of things
0

8.3K

baudneo/dahuavto2mqtt repository overview

This is a fork that handles the AccessControl crash in lorex 2k doorbells. Amcrest and Lorex are using custom VTO firmware for their doorbells. On Lorex 2k doorbell 1 of 2 things happens during the container init when the AccessControl request is sent to the device using EladBars original image:

  • #1 It will crash and the container will not complete init. You will need to keep restarting until #2 happens.
  • #2 It will completely ignore the AccessControl request, it will init the container and run as it should.

I solved this issue by reworking the callbacks to get the error message when it does crash and by not relying on AccessControl callback for init. This means VTO devices that support AccessControl will still work as expected AND devices like lorex 2k doorbell will also work.

I shrunk the image size by optimizing python bytecode and have also upgraded python to 3.11.

I am sharing this with users because the maintainer of dahuavto2mqtt has flat out told me they have no interest in fixing this issue and if I were to open a pull request, they will ignore it.

This should also solve Amcrest doorbell issues. Confirmed fixes Lorex 2k doorbell issue.

Enjoy!

Github repo: https://github.com/baudneo/dahuavto2mqtt⁠

Tag summary

Content type

Image

Digest

sha256:8ea6dd507…

Size

23.3 MB

Last updated

over 2 years ago

docker pull baudneo/dahuavto2mqtt