rroller / dahua

Dahua Camera and Doorbell Home Assistant Integration
MIT License
383 stars 74 forks source link

Unable to view cam stream #249

Open schergr opened 1 year ago

schergr commented 1 year ago

I have an Amcrest IP2M-866W camera installed, and am unable to use the Amcrest plugin for some reason, but this Dahua plugin used to work (a few HA releases ago...though I can't pinpoint when it stopped). At the moment I am able to install and configure the integration, however the camera streams are not working from either NABU Casa or local (see below), nor are the event streams, even though they all show up as available, with state info (see below). Note that I AM able to load the RTSP stream from VLC

That said, I'm running the Dahua ext version 0.9.44 (https://github.com/rroller/dahua) as well as:

Would appreciate any insights. I have created a pastebin of the DEBUG logs here: https://pastebin.com/ibBuMtHH

image

schergr commented 1 year ago

I see a 500 error in the logs on https, but the http (port 80) requests succeed, and the camera is setup on 80, 443 554 and 37777. Assume 443 is irrelevant since rtsp is on 554

MartinBoehmer commented 1 year ago

Same here while trying to integrate a Dahua NVR. Log shows a HTTP 500 error when the preview image (snapshot) is fetched. When I copy and paste the URL from the logs into my browser, the snapshopt image appears w/o any errors.

In the NVR's log there is no sign of the 500 error. However, every of my manual invokations of the snapshot URL produces a login/logout pair in the NVR's log with ~2s difference to provide the image (see screenshot, lines 2+3). When HA tries to fetch the snapshot, there is only a logout in the logs (see screenshot, line 1).

image