homebridge-camera-ui icon indicating copy to clipboard operation
homebridge-camera-ui copied to clipboard

Add ONVIF support

Open codyc1515 opened this issue 3 years ago • 15 comments

Is your feature request related to a problem? Motion Detection for HKSV on low powered devices, such as Raspberry Pi, can consume 100% (or more) of CPU time.

Describe the solution you'd like Adding ONVIF support would entirely eliminate the need to detect motion by analysing each frame as ONVIF has motion detection support.

Describe alternatives you've considered It is possible to use a lesser quality stream (if available). However this still adds unnecessary overhead (5-10% CPU time for one camera) given that the camera is already doing the processing for motion detection anyway.

Additional context N/A

codyc1515 avatar Jan 22 '22 03:01 codyc1515

This is definitely planned. Just need to get a camera with the right ONVIF profile :P

seydx avatar Jan 22 '22 08:01 seydx

No problem at all. I have a TP-Link C200 which has support and more than happy to help with any prototyping requirements you might have. I would add the support but this is a fairly large programme and I am not familiar enough with it, sorry.

codyc1515 avatar Jan 22 '22 08:01 codyc1515

There is a project to convert a Raspberry PI into on https://github.com/BreeeZe/rpos. Not really the best video on how to install it but one could be found here https://www.youtube.com/watch?v=uSIi94PUUDU.

AssetBurned avatar Jan 23 '22 23:01 AssetBurned

I didn't even dare to ask if ONVIF is planned in the future :) That's definitely a good thing and more reliable than frame-by-frame analysis. I think the TP Link Tapo 100 is very common and popular, as is the Tapo 200.

@seydx: Do you need a camera for implementation? If I can support you, I'll send you a Tapo c100. The Supports ONVIF Profile S.

Kai9555 avatar Jan 24 '22 14:01 Kai9555

Very excited for this feature. I am planning on using BlueIris to detect motion and alert via ONVIF. Please let me know if you want any help with implementation and testing with BlueIris.

thebalto2002 avatar Jan 25 '22 20:01 thebalto2002

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 27 '22 07:03 stale[bot]

Maybe the code of this plugin could help you developing onvif integration for camera ui: https://github.com/koush/scrypted/tree/main/plugins/onvif

I would really like to get this feature because mail motion detection doesn't always work as expected (There is no "no motion" event)

fade2metal avatar Mar 27 '22 20:03 fade2metal

Maybe this helps: https://github.com/kopiro/homebridge-tapo-camera/pull/12/commits

#568 is related to this - I am using onvif2mqtt to publish onvif motion detection to mqtt, then have mqtt motion in camera.ui config. But currently HKSV only works with videoanalysis and ignores mqtt.

mihailescu2m avatar May 30 '22 10:05 mihailescu2m

Hey thx all, currently working on the next major release with plugin support and much more

Just need a ring camera and a camera with onvif support to write a plugin for these cameras before releasing v6 😜

seydx avatar May 30 '22 10:05 seydx

Just as a solution until this is implemented: You can use onvif2mqtt to publish motion detection messages from onvif to a mqtt topic, and use that topic in camera.ui. So you don't need video analysis to do motion detection anymore.

mihailescu2m avatar Jun 01 '22 00:06 mihailescu2m

ONVIF support would be very welcome. We use the Hikvision DS-2CD2352-I, which supports that. It does not support HTTP Listening, unfortunately.

I’m currently using the video analysis in Camera UI, which works fine but asks a lot of the CPU indeed.

Also installed ‘Hikvision Nvr Events’ in HOOBS, but I don’t get it working.

I think video analyses works best for now, but I would certainly try ONVIF when availavle. Just let me know if I could test something for you.

Melvin-P-NL avatar Jun 01 '22 06:06 Melvin-P-NL

The next major release is almost done, ring is also implemented, next one would be onvif

Just need a onvif capable camera to implement it 😅

seydx avatar Jun 13 '22 16:06 seydx

I do have a couple (Hikvision) and can’t wait for ONVIF support. No problem to test for you and we could even work together with screen sharing. Even fine to perform Homebridge/Camera UI reinstalls if needed.

Melvin-P-NL avatar Jun 13 '22 16:06 Melvin-P-NL

Just as a solution until this is implemented:

You can use onvif2mqtt to publish motion detection messages from onvif to a mqtt topic, and use that topic in camera.ui. So you don't need video analysis to do motion detection anymore.

How reliable is onvif2mqtt proving to be? Are you running it on via docker or on baremetal?

benjaminbogdanovic avatar Aug 05 '22 00:08 benjaminbogdanovic

The next major release is almost done, ring is also implemented, next one would be onvif

Just need a onvif capable camera to implement it 😅

Hey, were you able to get your hands on a onvif camera? If not I would be happy to help you get one as a contribution to the project. Lots of cheap/good options on Amazon.

Feel free to reach out and we will figure it out. Also let me know if you need beta testers for Onvif implementation.

emerbrito avatar Aug 29 '22 11:08 emerbrito

Looks like this project is abandoned. Closing.

codyc1515 avatar Dec 11 '23 18:12 codyc1515