rroller / dahua

Dahua Camera and Doorbell Home Assistant Integration
MIT License
382 stars 73 forks source link

Integration does not fetch events from SSL enabled NVRs (silently) #316

Open mouldybread opened 9 months ago

mouldybread commented 9 months ago

I think this is along the lines of what #314 was getting at.

If you add an NVR with SSL enabled then the entities will be created and everything looks fine. But when SSL is enabled, requests to the cgi server on port 80 throw an error.

This means that the sensors(in my case region crossing and tripwire) just don't receive events. But the video works fine.

Work around: disable https on the nvr

Fix: Add an option in the gui not to verify ssl(curl -k), and add a note in the docs to change the port number if your nvr has ssl enabled?

Dude4Linux commented 7 months ago

I experienced this when adding my Amcrest cameras behind an NVR. I found that changing the default http port from 80 to 443 would work. Apparently the NVR will forward requests from port 80 to 443. It would be nice if the integration could follow the redirect automatically.