[userModule] Synology Surveillance Station (SSS) Web API sw

Tips, Tricks and Scripts to enhance your home automation and workaround known device bugs, limitations and incompatibilities
Post Reply
fez
Posts: 147
Joined: 20 Jul 2015 23:03

[userModule] Synology Surveillance Station (SSS) Web API sw

Post by fez »

This module will enable you to control the Synology Surveillance Station through its Web API. It creates a virtual binary switch. Based on the provided credentials it will log in, send the given on/off command with the session ID and log off. This could be used to start and stop recording, switch on and off SSS notifications, etc. for complete command set please check the Synology Surveillance Station Web API manual. The format is left open to offer greater flexibility. Try the commands in a browser before using them here. Synology changed the web API so not all commands specified in its manual will work.

Here are some examples for SSS commands:

- start recording on camera (cameraId=1)

Code: Select all

/webapi/_______________________________________________________entry.cgi?api=SYNO.SurveillanceStation.ExternalRecording&method=Record&version=2&cameraId=1&action=start
- stop recording on camera (cameraId=1)

Code: Select all

/webapi/_______________________________________________________entry.cgi?api=SYNO.SurveillanceStation.ExternalRecording&method=Record&version=2&cameraId=1&action=stop
- enable SSS email motion detection notifications

Code: Select all

/webapi/entry.cgi?5=1&api=SYNO.SurveillanceStation.Notification.Filter&version=1&method=Set&eventGroupType=2&eventType=5&filter=1
- disable SSS email motion detection notifications

Code: Select all

/webapi/entry.cgi?5=0&api=SYNO.SurveillanceStation.Notification.Filter&version=1&method=Set&eventGroupType=2&eventType=5&filter=1
toket: teamit_beta
igitlin
Posts: 92
Joined: 27 Jul 2017 23:04

Re: [userModule] Synology Surveillance Station (SSS) Web API sw

Post by igitlin »

How to take snapshot, not record video, use this plugin and send snapshot to email
fez
Posts: 147
Joined: 20 Jul 2015 23:03

Re: [userModule] Synology Surveillance Station (SSS) Web API sw

Post by fez »

That will not be possible with this module.
You could use this module as a start point to handle the login/session key handling and implement the snhapshot feature. The method is documented in the Synology SS manual, section 2.3.4.4
If you do implement it, please post it on the developers portal.
Post Reply