That helped me a lot! It worked for me with a generic Chinese IP camera
happy to haer.
Can you pull a screenshot now when using automation with doorbell?
Ok, I’m using Telegram notification but can’t seem to pull a .jpg with this camera. If you have an example of your script to pull a screenshot then I hope you can share it here.
same, i be happy toi get notification with jpg.
but i dont undestand how to make it work, and as i read here only hikvision support.
Not works for me
HA version 0.64
Can help me?
'- platform: generic
name: Meteo
still_image_url: https://www.yr.no/sted/Italia/Calabria/Bisignano/meteogram.svg
content_type: ‘image/svg+xml’
- platform: ffmpeg
name: entrata
input: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0’
Can you get the stream to work in VLC Player?
I’m solved this ty!
Cameras working fine, but i can’t resolving with camera snapshot !
The Snapshot URL could be different, have you tried your camera URL in a browser?
You don’t say which Duhua camera but this list should get you the URL
I am also struggling to get this to work with Dahua Cameras connect to a Dahua NVR and HA v0.66.0. I can access this url to see a snapshot in any web browser:
http://apiUsername:[email protected]:10080/cgi-bin/snapshot.cgi
However when I try to use this configuration:
- platform: generic
still_image_url: http://apiUsername:[email protected]:10080/cgi-bin/snapshot.cgi
authentication: digest
I get this error message: “Error getting new camera image: [Errno 104] Connection reset by peer”. I have tried everything, and it is driving me mad. When I look at the http request in chrome I can see that chrome is using digest authentication, and I see the image returned is of the type image/jpeg. So I cannot figure out why HA cannot get the image.
Well I finally figured this out. It looks like the NVR only opens the ports to the camera when you login to the NVR http admin page. And it only allows the IP that commenced the log in to access the image. So on my computer I could load the image since that is where I logged in, but as soon as I log out of the NVR admin the camera image is no longer available. I’ll continue working on finding a way to get the image.
Ok I finally got my Dahua NVR snapshots accessible from HA. I created a user on the NVR with restricted permissions and then used this configuration file for HA.
- platform: generic
name: “Camera: Name”
still_image_url: http://192.168.2.29/cgi-bin/snapshot.cgi?channel=1
authentication: digest
username: apiAccess
password: apiPassword
Thanks all - Just wanted to let you know that his thread was very helpful in getting my Dahua Starlights connected to Hassio via rtsp and ffmpeg component. I was trying to use the Onvif component with no success.
Does anyone have any tips on hassio receiving motion alerts from Dahua cameras or NVR?
any solution for video?
Hello @GaryOkie,
I have some Dahua starlights I am trying to connect to HASSIO. Would you be able to share you configuration from your configuration.yaml for the camera? I have having some issues. Thanks
Adam
I use Amcrest component for Dahua starlight it works great for me.
Hi Adamg,
Sure - happy to share my config,…
camera 1:
- platform: ffmpeg
name: "Front Yard Camera"
input: -rtsp_transport tcp -i rtsp://<userid:password>@192.168.1.200:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
camera 2:
- platform: ffmpeg
name: "Back Yard Camera"
input: -rtsp_transport tcp -i rtsp://<userid:password>@192.168.1.200:554/cam/realmonitor?channel=2&subtype=0&unicast=true&proto=Onvif
The connection can be either to the Dahua NVR IP address by including the channel each camera is on, or the IP can be each individual camera, in which the channel does not need to be specified. Ideally the IP’s should be configured as static.
Thank you @GaryOkie and @Leandro_Freitas, I will try these examples out tonight.
On an unrelated side note, good choice on the Dahua Starlight cameras! I started playing with them last night and I am amazed how well these Starlights perform. They put my old Reolink to shame…