Home Assistant Dahua Integration questions

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

Maybe Iā€™m missing something ?

I add the integrationā€¦. And I only get one shot to configureā€¦ no option to keep adding additional cameras?

Where or what do I select to add the next camera?

hit the plus + on the integrations page and add the integration againā€¦ they will all be grouped under dahua on the integrations page once there is multiple

I canā€™t find a way to add another dahua integrationā€¦ if I add integration, search for dahua of course HA recognizes I already have it installed and only shows other dahua integrations available?

I feel Iā€™m missing something somewhere?

what version of the integration are you using? it should just open a window saying Add Dahua Camera

Found it!!!

Thank you so muchā€¦

I was looking at the already existing integration displayed for the integration.

For the benefit of othersā€¦ for clarity.

Settings ā†’ Devices and Services ā†’ + Add Integration

Repeat the + Add Integration for each channel of the NVRā€¦

3 Likes

any hint on how to overcome the : " username or password wrong " message on the config ? , y have also tryed https://user:pass@ip on the ip address field, but same message . tks

Iā€™ve never had an issue with password. What type of device are you connecting too? The default is admin:admin (lowercase) if you never changed it.

it is an XVR 8 channels , i have no problem with user pass on the device , it is just the integration that is not recognizing its credentials on the config page , i saw somewhere that on the ip field instead of using the ip , we should use https://user:pass@ip , but that does not work either , i do have three channels working that were configured in the past , and i cant add the fourth channel now . As you cannot review the config of an already configured channel ( the config GUI does not show the entered values ) , i cant verify if there is something different on this new version of the integration .