For many years, I have been using the dahua_mqtt.py python script to action CCTV camera events in HA. This is integrated with AppDaemon.
Recently AppDaemon is choking and stopping. I suspect this is due to the deprecation/replacement of packages. Please could someone help me understand/overcome the below?
I was pulling my hair out yesterday. Spent half the day trying various combinations of packages and googling everything on topic. I feel like I spend half my life dealing with Appdaemon issues. It’s probably not Appdaemon’s fault but I just don’t understand what to do when it breaks.
What’s worse is I don’t know it’s broken until I realise that stuff stopped working.
Good news is I found a solution to appdaemon for Dahua Mqtt. A few actually.
That’s a link to the hass add-on but I saw an issue that said that it wasn’t maintained so unsure if it worked. I used an unraid docker ‘community application’ and it just worked. I like that it’s independent to home assistant now. I saw it previously but disregarded because it talked about voice intercoms rather than cameras. Does the event listening in my cheap dahua camera just fine!
I tried other methods but ended up reverting to dahua_mqtt.py due to its ability to specifically pass user-defined camera events by user-defined name. This extra level allows me to define multiple trigger events of the same type. For example, cross-line onto the drive, cross-line by the car, cross-line at the postbox.
My only issue with the integration is the latency of the received event. It mostly suffers a 5-10sec delay. That said, that could also be down to the Dahua cameras.