Home Assistant Dahua Integration questions

Hi there!
I have a Dahua NVR and want to access snapshots from recorded video by providing a timestamp.
For example if someone opens the door, send a snapshot from the Doorbell camera from 3 seconds ago.
I have no idea how to accomplish this but I think it could be really useful for many people.
Is this possible with the integration?

When setting text as overlay, the integration inserts “+” instead of spaces. For example, see the following screenshots of setting an overlay of “one two three” and the result of “one+two+three”. Is there a way to insert spaces, instead? When accessing the camera’s settings, the overlays can be set with spaces.

I found the solution. Hopefully it also helps others. Need to use both quotes and %20 for spaces.

Old: One two three
New: “One%20two%20three”

Here is an example automation that automatically updates text reflecting the state of my light into the video:
Trigger

platform: device
type: changed_states
device_id: light.front_yard
entity_id: 70cb05135922472c8396718db6be5273
domain: light

Action

service: dahua.set_text_overlay
data:
  group: 1
  text1: Light%20is%20{{ states('light.hue_lily_outdoor_spotlight_1') }}
  text2: ""
  text3: ""
  text4: ""
target:
  device_id: 8aee60008fd285111778384440318243

2 Likes

Hello, i added the dahua integration on my dahua dvr and it’s correctly displaying the streaming.
When i try to enable motion detection, i receive a “not authorized” error message (see the lower part of the attached picture).
I also find many errors in the log like

aiohttp.client_exceptions.ClientResponseError: 401, message=‘Unauthorized’, url=URL(‘http://192.168.0.245:80/cgi-bin/snapshot.cgi?channel=1’)

Any idea?
Thank you

Your Device info is showing the camera as Generic RTSP, my guess this feature is not supported for “generic” devices. On my Dahua cameras it lists the device model.

Any solution? I have the same problem.

Hi Danny, Did you manage to get this sorted. If so can you please share?

I have the EmpireTech IPC-FL46N which seems to be the same as the Dahua IPC-L46N. I have the integration installed and it see’s the streams and even the floodlight. I’d like to work with rroller or who ever is working on this integration so that we can improve it for this floodlight cam. I’d really like to get the light color change and changing the status of the motion detection with flood light triggers.

Did anyone manage to get an Dahua NVR connected to this? Mine just says username, password or address is wrong but I can use the same details to log in via browser