Page 1 of 1

Synology Surveillance Station API integration into domoticz

Posted: Sunday 03 December 2017 18:09
by domoticzag
Hello,

Maybe a nice idea:
It would be awsome if I could fully control my surveillance station on the Synology through its API. Currently im controlling the station through Json commands via dummy switches -> on-action off-action.
But since synology requires an session ID , i have to update this ID in my JSON string once every couple of weeks.

Implementing the API in the domoticz Hardware with username and password so that wou could control surveillance station with switches already connected to the API would be awsome!

Info on this:
https://www.synology.com/nl-nl/knowledg ... ons_device
https://www.synology.com/nl-nl/knowledg ... ice#webapi

API:
https://global.download.synology.com/do ... I_v2.6.pdf

Re: Synology Surveillance Station API integration into domoticz

Posted: Sunday 03 December 2017 22:02
by pvm
This is not your proposed way of interfacing, but it functions nicely in my situation

--edit, change from hint into more extensive description as requested --

1. Add camera to synology surveillance station
2. Select Applications (in IP Camera screen below your camera)
Applications.PNG
Applications.PNG (13.89 KiB) Viewed 6808 times
3. Setup Motion detection here, example of my config (in detection area perform select all or you can set a specific area of the image to monitor)
MotionDetection.PNG
MotionDetection.PNG (134.48 KiB) Viewed 6808 times
4. Motion detection setup, let's trigger Domoticz. Make sure you've made a virtual motion detection switch with an off delay of something like 10 seconds and note it's ID
5. Select 'Action Rule' in Surveillance station and configure this with your switch's url
MotionNAS1.PNG
MotionNAS1.PNG (15.46 KiB) Viewed 6808 times
URL example:

Code: Select all

http://[IP_ADDRESS_DOMOTICZ]:[PORTNR]/json.htm?type=command&param=switchlight&idx=[SWITCH_ID]&switchcmd=On
More screenshots in next post

Re: Synology Surveillance Station API integration into domoticz

Posted: Monday 04 December 2017 21:07
by pvm
remaining screenshots for step 5
MotionNAS2.PNG
MotionNAS2.PNG (21.95 KiB) Viewed 6807 times
MotionNAS3.PNG
MotionNAS3.PNG (21.69 KiB) Viewed 6807 times

Re: Synology Surveillance Station API integration into domoticz

Posted: Tuesday 05 December 2017 8:48
by freijn
Many thanks !!!

Will start playing with it as well and report back if I can make some progress

Cheers,

Frank

Re: Synology Surveillance Station API integration into domoticz

Posted: Friday 15 December 2017 10:30
by globalassist
Okay, so I got this working, but now I get a notification if movement is detected. I would like to see an image of that movement, or in a best world scenario: A movie pushed to my phone. :-)

Is any of this possible with the above mentioned method?

Re: Synology Surveillance Station API integration into domoticz

Posted: Friday 15 December 2017 11:30
by pvm
There was some approach for this in the telegram topic. I did not have time to implement this yet.