Synology Surveillance Station API integration into domoticz

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
domoticzag
Posts: 24
Joined: Tuesday 13 September 2016 19:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Synology Surveillance Station API integration into domoticz

Post 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
RPi 3
Domoticz Béta
RFLink Gateway dipool antenna
Many kaku devices
P1 smart meter
Custom made ESP8266 devices
Hue lights / Milight ligts and strips
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Synology Surveillance Station API integration into domoticz

Post 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 6810 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 6810 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 6810 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
Last edited by pvm on Monday 04 December 2017 21:08, edited 1 time in total.
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Synology Surveillance Station API integration into domoticz

Post by pvm »

remaining screenshots for step 5
MotionNAS2.PNG
MotionNAS2.PNG (21.95 KiB) Viewed 6809 times
MotionNAS3.PNG
MotionNAS3.PNG (21.69 KiB) Viewed 6809 times
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Synology Surveillance Station API integration into domoticz

Post by freijn »

Many thanks !!!

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

Cheers,

Frank
globalassist
Posts: 25
Joined: Monday 09 December 2013 16:51
Target OS: Windows
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Synology Surveillance Station API integration into domoticz

Post 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?
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Synology Surveillance Station API integration into domoticz

Post by pvm »

There was some approach for this in the telegram topic. I did not have time to implement this yet.
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest