Any one know how can i add NVR IP camera Dahua

Hey all.

Any one know how can i add my dahuad IP camera to HA?
i try to add this line and i get
“dahuad Cam 1(Error loading image)”

camera:
  platform: generic
  still_image_url: http://192.168.31.13:80/Streaming/channels/1/picture
  name: Hikvision Cam 1
  username: admin
  password: pass
1 Like

Hikvision:
still_image_url: http://user:password@ip_address/ISAPI/Streaming/channels/101/picture

Dahua:
still_image_url: http://user:password@ip_address/cgi-bin/snapshot.cgi?

Thanks! yes i find it on google the http://admin:[email protected]/cgi-bin/snapshot.cgi

via firefox i get a image, but on HA i still get error, (Error loading image).

What more can i test?

Not sure, could be HA can’t reach that IP.

there is way to test it?

Do you see camera.hikvision_cam_1 as an entity under dev-state?

How are you running HA, Pi?

Yes, Pi3 and just this give the error (Error loading image)

The only thing I see different with your url is the port :80, try removing it and see what happens.

Can you ping 192.168.31.13 in putty?

I do not use port on the URL…

Ping

pi@raspberrypi:/ $ ping 192.168.31.13
PING 192.168.31.13 (192.168.31.13) 56(84) bytes of data.
64 bytes from 192.168.31.13: icmp_seq=1 ttl=64 time=0.887 ms
64 bytes from 192.168.31.13: icmp_seq=2 ttl=64 time=0.876 ms
64 bytes from 192.168.31.13: icmp_seq=3 ttl=64 time=0.816 ms

may be a different command?

Are you using a dahua PoE NVR? If you are it puts the cameras on a different subnet so this approach won’t work.

Hey,

as for now i do not have NVR POE.

i try to fix it for 2 days, non of my test is working.

any one have dahua camera?

I have both Hikvision and Dahua and use the config I provided previously and it works for me.

Not sure what your issue is.

What version HA are you running?

The last one, can you share your config?

as i see we also can use this urrl

still_image_url: http://192.168.31.13/onvifsnapshot/media_service/snapshot?channel=1&subtype=0

i test it now…

### CCTV Cameras ###
- platform: generic
  still_image_url: http://admin:[email protected]/ISAPI/Streaming/channels/101/picture
  name: 3. Porch
- platform: generic
  name: 1. Front North
  still_image_url: http://admin:[email protected]/cgi-bin/snapshot.cgi?
- platform: generic
  name: 2. Front South
  still_image_url: http://admin:[email protected]/cgi-bin/snapshot.cgi?
- platform: generic
  name: 4. Backyard
  still_image_url: http://admin:[email protected]/cgi-bin/snapshot.cgi?
1 Like

Thanks! Do i need any component for this?

i get now error

17-05-12 23:28:01 ERROR (MainThread) [homeassistant.loader] Unable to find component still_image_url
17-05-12 23:28:01 ERROR (MainThread) [homeassistant.loader] Unable to find component platform

Post your config, looks like a formatting issue.

camera:
platform: generic
still_image_url: http://192.168.31.13/onvifsnapshot/media_service/snapshot?channel=1&subtype=0

also i try

camera:
platform: generic
 still_image_url: http://admin:[email protected]/cgi-bin/snapshot.cgi?

Are you putting this in your configuration.yaml?