Camera-based motion detection is pretty inaccurate and ends in lots of false positives. New cameras from Hikvision and Dahua and other manufacturers include smarter motion detection with virtual tripwires, zone intrusion, etc. that is significantly more accurate.
One of my automations using the above sensors is to play a dog barking on my patio speakers and turn my office light on if the garage sensor is tripped:
I’m sure that user/psw are corrects. If anyone more able than me could take a while to try to see the SaWey’s code on github (link here) all Dahua costumers could be very happy
I tried to exclude the “&channel=1” from the url_template and to exclude also the port (80 is default’s one) according to the Dahua’s api, but nothing changes.
Thank you very much!
Continue to trying, the Sawey’s component start working for me changing the authentication method (from pycurl.HTTPAUTH_DIGEST to pycurl.HTTPAUTH_BASIC). Now in debug I see all the NVR events.
I’m getting this error, any ideas what’s wrong? Would love to get this working.
2018-05-20 16:18:15 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/setup.py”, line 56, in async_setup_component
return await task
File “/usr/lib/python3.6/site-packages/homeassistant/setup.py”, line 101, in _async_setup_component
component = loader.get_component(hass, domain)
File “/usr/lib/python3.6/site-packages/homeassistant/loader.py”, line 86, in get_component
module = importlib.import_module(path)
File “/usr/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 674, in exec_module
File “”, line 781, in get_code
File “”, line 741, in source_to_code
File “”, line 219, in _call_with_frames_removed
File “/config/custom_components/dahua_event.py”, line 7
I want to buy 1-4 cameras probably one 1-2 outdoor and 1x indoor. Must be poe. Would prefer to hook up to an Hikvision / Dahua NVR with 4-8 port POE, rather than running blue iris.
Is there any discussion on dahua vs hikvision nvr when it comes to home assistant integration?
I’m not sure. I can only tell you my setup. My cameras connect to my unifi 24 port poe switch. My qnap NAS records the video streams. The Python script monitors each camera for IVS events. As long as you have network access to each cameras ip address I don’t see why you couldn’t connect them to an NVR.