Subscribing to ONVIF Motion Detection Events

Does anyone know if you can subscribe to an ONVIF motion detection event? I have a Dahua IP Camera connected to my Synology NAS and was wondering if it’s possible. I would like to store the event in a Virtual Device in Homey.

You can use Image grabber to take a picture (snapshot), with a motion detector you can trigger that flow.An onvif motion detection is not possible at the moment.

for dahua use the “Not direct login” option.

After some digging I found that it is possible to connect to the onvif service of the camera e.g.

And using a tool like ONVIF Device Manager you can actually see the events as they occur.

In order to actually subscribe to an event you need to instantiate a Subscription Manager and afterwards subscribe to events. More info on this here

Bottom line is that it will require quite an amount of work to register those in Homey.

This might even be simpler. A NodeJS Module for Dahua : node-dahua-api

Wouldn’t it be more generic if you’d could subscribe to motion events on Surveillance station in your Synology?

Robin, thanks for pointing me in the right direction. I found it and it works!

Below are the steps used to getting it up and running. This works for me and is hopefully useful for anyone else interested. Some tweaking might still be necessary but you get the idea :wink:

What you need to use are the Action Rules.

From the Main Menu in Surveillance Station (not the Homey app but the actual Surveillance Station) select Action Rule.

  1. Select Rule Type. Give it a name.

  1. Pick Source, Device and event type.

  1. Set external device as your Action Device. I used a HTTP request flow card in Homey to receive the notification.

  1. Set a schedule if desired.
  2. Create a HTTP request flow card to recieve the notification

  1. Last but not least have fun! :beers:

Great work, I wonder how I didn’t come up with this idea.

1 Like

To top things off use Node Red, inform Homey then send 5 motion snapshots (5 sec apart) by email.

Depending on the camera-brand you can even connect using either basic or digest authentication (using curl)