Home Assistant Dahua Integration questions

What model camera and have you gotten human notifications with the amcrest app?

I use the built-in amcrest with my own event triggers

2 Likes

Amcrest AD410
Yes, I have human notifications with the amcrest app.

Thank You! Enabling Cross Region Detection made it work.

Today I tried to add the Dahua integration to my HA system. But can not get it to show up in the integrations/ add-ons. I am fairly new with HA so it is still a big puzzle to find out how to get things done.

What did I do, followed the "manual install as in the (github) instructions. And restarted HA. Nothing there.
I run the latest version of HA and have the files in the folder as shown on the screenshot.
Any help how to get this going :slight_smile: thanks.

Versie 	core-2022.7.5
Type installatie 	Home Assistant Supervised
Ontwikkeling 	false
Supervisor 	true
Docker 	true
Gebruiker 	root
Virtuele omgeving 	false
Python-versie 	3.10.5
Besturingssysteem 	Linux
Versie van het besturingssysteem 	5.15.32-v7l+
CPU-architectuur 	armv7l
Tijdzone 	Europe/Amsterdam
Configuration Directory 	/config

Regardless of your installation attempts: The Dahua Add-on does not work with HA 2022.7.x :wink:

For later: # Move the dahua directory into your custom_components directory in your Home Assistant install $ mv dahua-main/custom_components/dahua /config/custom_components/

custom_comp

After executing one of the above installation methods, restart Home Assistant. Also clear your browser cache before proceeding to the next step, as the integration may not be visible otherwise.

After that: Integration → Add integration → Dahua

First of all: There is no update yet. rroller wrote on 07/12/2022: "Sorry guys been very busy. I’ll try to look at this asap."
That can mean a month, or 2, or 3, or 6 … :wink:

Now I did a few short tests with core-2022.7.7. My Dahua cameras can be set up and there are no error messages like " isn’t fully initialized yet error" during the installation. I only tested the streaming and no sensors.

I haven’t set my cameras up again but streaming and sensors continue to work for me.

I actually only need the Dahua integration for my Dahua NVR and the KI-Features (human, vehicle, line detection) :slightly_smiling_face: but then I must switch the mainstream from H.265 to H.264 for live streaming,
Kameraansicht
which I don’t want. Edit: And I can only use/see one camera (channel 1) from the NVR. At the moment I use generic camera with the substream 2 with H.264 and 720P.

Too bad my Amcrest AD110 camera is not supported by the Dahua integration and it’s too bad rroller doesn’t have time for further development. :frowning_face:

Hi guys, just wondering if any of you got the basic functions like motion detection or cross region or cross line working with the latest update?
i can get the video streams working, but automations based on motion alarm or cross region alerts are not working.
Any ideas what i can do to fix it?
thank you

@jim_os , @Janek - Until the custom Dahua integration issues you are having are resolved, you should try the core Amcrest integration if you want to avoid rolling back your HASS version. It is working just fine for both AD110/AD410 doorbells and numerous different Dahua StarLight cameras I have. That includes not just streaming but full event handling to create automations for doorbell press, human/crossregion detection, or any event.

It does not support NVR’s (other than channel 1) unfortunately and requires YAML configuration to set up. I will continue to follow rroller’s integration for updates.

Why Dahua integration? Ezviz is not Dahua and not a Dahua OEM.

1 Like

Hi Folks, I’m trying to integrate a Lorex NVR N882A6 with LNE9252B cameras using this integration as I’ve been unsuccessful with all other approaches. The integration recognizes the NVR unit but I can’t get any video or other information from the entities. Does anyone know if it works with this product, and if so, do they have any tips on troubleshooting this?

Thanks!

Lorex is not Dahua. :slightly_smiling_face: Some have reported success flashing some models of Lorex NVRs which are Dahua OEM to the Dahua OEM firmware, but … Maybe there are differences in the API …?

What you can try is Generic camera and Onvif. Both work also with my Dahua NVR.

PS: I don’t think that much will happen with the Dahua integration in terms of further development. :neutral_face:

Although I have (had) this working going back to core-2022.6.7 it asks for updating the Integration. Am I right that it should work now with the newer versions (updates)? Including the Sensors?
As there is released a patched version? https://github.com/rroller/dahua/issues/203

So I can update to these versions now?:

Basically it should work now. At the moment I have no (new) error messages with:
Dahua Version 0.9.43
Home Assistant 2022.8.7
Supervisor 2022.08.3
Operating System 8.5

But I don’t use all existing sensors/features of my Dahua cameras. However, some older problems still exist.

I have a similar issue. I have added the integration from HA (not HACS), and entered the credentials to the integration and chose channel 0 for the NVR… 16 entities were discovered but I am only able to see one of the 8 camera feeds?

This is what I see…

I see Main, Sub and Sub_2 but in fact they are the same camera feed. I would have expected to see all channels?

I get entities related to motion detection and so on which is great, but each camera has it’s own motion detection and I have a feeling that the one camera that is detected is the only one that has motion detection. What am I doing wrong?

A while back (1+yr) I messed with this and added the rtsp feed in yaml config file and I was able to define each channel, whilst this worked at the time there was no motion detection.

# Dahua CCTV
#ffmpeg:
#stream:
#logger:
#  default: info
#  logs:
#    custom_components.dahua: debug
# manually added specific cameras to be included in Picture Entity Card
#camera:
#  - platform: ffmpeg
#    name: Camera 1
#    input: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0
#  - platform: ffmpeg
#    name: Camera 2
#    input: rtsp://admin:[email protected]:554/cam/realmonitor?channel=2&subtype=0
#  - platform: ffmpeg
.......

I have as you can see have these lines commented out at the moment, as I was thinking the integration would handle this.

Looking for suggestions.

You need to keep adding each camera one at a time and select the next camera when the menu comes up during integration setup.

For each channel you have to use another Dahua integration. Then you have to select the channel during setup.


Dahua_Channel_2

1 Like

did you found a way to login? , i have the same problem, it use to work fine before a coumple of HASS updates . tks