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
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.
- Select Rule Type. Give it a name.
- Pick Source, Device and event type.
- Set external device as your Action Device. I used a HTTP request flow card in Homey to receive the notification.
- Set a schedule if desired.
- Create a HTTP request flow card to recieve the notification
- Last but not least have fun!
Great work, I wonder how I didn’t come up with this idea.