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.
It would be awesome if someone smarter than me would make a native component for HomeAssistant. I don’t mind running the python script to monitor in a separate Docker container, but it would be great to have a tighter integration. I’m very interested in helping, but I don’t have the ability to lead this effort.
I had a perfect setup, live view and PTZ all working in HASS.
But a couple of updates back the curl commands started failing (error 1).
The commands still work fine from a ms-dos prompt.
It has already taken so much time that I stopped researching
I had already had the same button in my configuration but did add it anyway.
This is part of the error I get when turning the switch:
‘curl’ is not recognized as an internal or external command,
operable program or batch file.
2018-06-06 21:01:09 ERROR (SyncWorker_28) [homeassistant.components.switch.command_line] Command failed: curl --digest -u…
It seems that for some models you don’t need the separate component. I have used Amcrest component after I have discovered they have same API calls. I have now camera and motion sensor working
Dahua Starlights are working just fine for me via the ffmpeg platform, but I am now trying to integrate their advanced motion/IVS sensing into HA. I’ve read how others have gone about attempting this, but it could sure be simplified by a direct integration. You absolutely have my vote!
I’m using the Amcrest component now instead of ffMpeg and it’s working really well for my Dahua Starlights, especially with real-time streaming and PTZ with presets capability. It is being actively supported and new PR’s to better support motion sensing are coming soon. From what I can tell by comparing the Dahua and Amcrest documentation - the API’s are identical.
Anyone else trying this, it might be helpful to post your results here.
EDIT: The Amcrest component currently does not support NVR’s - only direct IPC camera connections, but this was an accepted feature request that could possibly be implemented.