QNAP Surveillance Station, HikVision & Push Notifications to vmobile app

Being a gadget freak I wanted my own home surveilllance security system. I already had the QNAP TS-451 ... so that was an easy choice for me. But wow, what a journey down the path with absolutely no real good documentation from QNAP SS.

I got help from there support team, but in the end they wanted to have access to my system since they could not replicate my issue. In the end, they did not even know there own system.

I got a HikVision DS-2CD2342WD which is amazing, no real complaints here, other than way to many options for motion detection, but thats luckily a good thing.

Here I will describe all the problems I ran into, so others may use less time setting it up. Kind of what needs to be done in that order.


On the QNAP NAS box, make sure everything on myQNAPcloud is ok ... depending ofcause on how you want to access it from outside your own LAN ... I wanted to be able to access it on the "GO" so this was a nice easy way to see if everything is actually okay. I haven't published any services to the outside wrong. So I could probably close some of the ports since they both want 80, 443, 8080 and 8081 for everything to be "OK". But for a starter just to make sure this did not get in the way, I just opened all of them. I will however close all other than 443(https).

This was also setup to support Push Notification on the QManager app for Android.

For some odd reason, QNAP actually did a good job here ... option to remove devices, stop push and the best "Send test message". I ended up having something hanging from the ceeling to test motion detection on the Hik Vision camera ... 15 meter of rope to make something move in front of the camera :-). But this was way the easiest setup of it all ... the setup of push if something goes wrong to the NAS itself.


The setup is done in Internet Explorer 11, because I could not get the plugin to work in other browsers for the Motion Detection.

Enable HikVison-CGI

This is needed for the QNAP SS to be able to correctly get information from the camera.

  • Go to "Configuration" -> "Network" -> "Advanced Settings" -> "Integration Protocol"
  • Set a check in "Enable HikVision-CGI"
  • I also enabled ONVIF. HikVision has disabled this be default since firmware version 5.5.x
  • I also added a user "record", but this was only for testing other things.

Enable Basic Authentication

My tests shows these settings needs to be changed for motion detection to work. I'm not however 100% sure why, since it can connect and see the output from the camera without them. But no alarms on the SS.

  • Click "Configutarion" > "System" > "Security"
  • Change both "RTSP Autentication" and "WEB Authentication" to "digest/basic" from "digest".
  • Click "Save".
  • You need to reboot the camera afterwards to make it take effect.

Setup Motion Detection

  • Click the "Configuration" -> "Event", whcih will automatically take you to the "Basic Event" page.
  • Set a check in "Enable Motion Detection".
  • When trying to figure out what the Sensitivity needs to be ... if it's recording outside, it is a good idea to enable "Enable Dynamic Analysis for Motion", so if can see what is actually triggering a motion. Under "Configuration" on the page, there is also a "Export" mode which gives you lots of option. I did not really need that, but some people have complained about the Sensitivity of "20" is not low enough on "Normal" mode. The value jump in steps of "20".
  • Under the "Arming Schedule" i have 24/7.

Under "Linkage Method" select "Notify Surveillance Center". I guess the "Trigger Recording -> A1" is if you have a network drive mapped and want the box to record to there. Not sure ... I havent enabled it.

Test Motion Detection is working on the Camera.

In the previous step, your can also check "Send Email" if you want to the Camera to send an email if there is any motion. Remember that Email/SMTP settings needs to be entered under "Network" I used this for testing that it actually worked ...

You can also open this endpoint in a browser: http://x.x.x.x/ISAPI/Event/notification/alertStream

It's used for server push to a client.

A guy here used it for Hikvision Motion Detection in OpenHAB using node.js, which is really awesome if you want to extend your surveillance system.

A link to Hik Vision IP Surveillance API User Guide. If you want to play around.

Odd issues

Not sure if everybody runs into this, but if you don't get any motion alarms or can't get "Dynamic Analasis For Motion" to work, try "Disable" then "Save" and then "Enable" and "Save" again. I had this issue the first time I set it up. Just a thing to keep in mind.


Install the app on the mobile. Everything here should be pretty straight forward. Just remember to enable "Push Service".

In the next step "QNAP SS" step there is more do do with the "Push Service" before is actually works.


Now to the Surveillance Station, core whole setup.

Setting up the camera

  • Go to "Camera Configuration", click "Add".
  • Uncheck "Search camera(s) automatically". ( I havent gotten this to work )

Fill in the required information about the camera. Push the "Test".