Binding Request: Synology Surveillance Station

Installed version V0.37 of the binding and it work fine. Thank to Pavion. Good Woork

1 Like

hey there :slight_smile: is there a way i can tell (write to) surveillancestation, that there is motion on camera_x?

I’m thinking to implement the following flow:

  1. hikvision smart events fire in camera_x (working)
  2. event is captured by openhab, ipcamera binding (working)
  3. openhab tells surveillance station, that there is an event (motion) on camera_x

No solution for (3) so far - if it’s there in the binding, i may not be seeing it. :frowning:

The “Why”: I’m using the default app of Synology or timeline view to view the streams. This is only efficient, if you have the “event” markers in the stream, so you can skip through the events. What i’m trying to achieve is, to set the events start and end through openhab rules to be the in-camera smart events the master for defining the alarms.

Hi Stefan,

if I undestood your setup right, the easiest way would be creating an openHAB rule:

If event is captured (over ipcamera), start manual record (with this binding), wait X seconds (e.g. with Thread::sleep) and stop it.

This should be displayed in your SSS-Timeline-View as a manual recording event.

You can try and simulate this behaviour using corresponding “Record” switch in PaperUI.

Note: this will probably not work if your SSS is in continuous recording.

BR Pav

Thanks! Will try that soon with my test-installation

Hi Pavion, that helped already, thanks!
After all took a slightly different approach:

  • define external events in SSS
  • trigger external events from openhab
    What that will not do is to mark this manual recording as a “motion event”. That’s a pity only for the iPhone app, which specifically allows to skip through the stream for motion events.


Bit late to the party but I’m loving the potential of this binding…

I installed the latest release tonight, from Sept 28…all seemed to be going well, I saw the binding, installed the bridge thing, (my syno) I added in the username and password, it then found the camera thing, all great, exactly as per the read me.

However, that’s where it went a little wrong. I restarted OH as I always do after a new binding and when it came back up it said ‘offline - communication error’, went into the thing and the screen that would usually have the settings on was blank. I also noticed that the icloud binding had changed to the same error message.

I have since removed the jar, and the things / items and restarted OH again, and everything surveillance seems to have gone but it seems to still have knocked out my icloud binding…

I’m getting a whole load of errors:

2019-11-10 22:20:12.663 [WARN ] [l.handler.ICloudAccountBridgeHandler] - Unable to refresh device data java.util.concurrent.ExecutionException: General SSLEngine problem

They all seem to revolve around SSLHandshakeException…

Does / could the surveillance station modify that??? and if so how do I get it back?

Thanks in advance

Rasp Pi / Openhabian 2.4.0-1

EDIT - Seems this somehow knocked out the icloud snapshot jar in my addons folder…I’ve uninstalled and reinstalled the latest icloub binding snapshot and it’s working again…maybe happenstance, may be something in this binding but I’ll leave this message here incase others get the same issue…

Hi! I’m glad you’ve found the solution for your issue.
Just in case: this binding don’t have any special dependencies or settings regarding SSL and do not modify any unrelated services.

Hi All,

I once again love this binding. It currently shows 8 camera feeds in HABPanel on a screen in my kitchen.

Now, I wanted to explore more of the functionality.

I have one giant 20x zoom PTZ camera, where I have created 5 presets (in Surveillance station)

In Paper UI, I enabled the item “move to preset” and from the “CONTROL” I see an empty drop down. If I select a preset, the camera jumps to this preset! So far so good.

I wanted the same for my sitemap, but it doesn’t work. Nor does it work within a rule to shift preset.


Switch item=Carport2_Ptz_MoveToPreset mappings=[“Terrasse”=“Terrasse”,home=“home”] label=“CAM TEST” icon=“camera”

This shows a nice selection “switch” but when I select either of the presets, the log says:

2019-11-13 10:02:44.805 [ERROR] [ncestation.handler.SynoCameraHandler] - handle command: Carport2::synologysurveillancestation:camera:c2kan01273:8ball:

Same goes for a rule. I have tried:
sendCommand …

All gives an ERROR in the log as above.

Only way to select preset is from Paper UI -> Control.

Any ideas?

Btw, my idea was to control the PTZ camera based on certain events (motion triggers (xiaomi) ) Or when somebody pushes the doorbell, the camera would zoom into the main door area and snap a picture :wink:

Hi Jesper!

It’s a cool idea you’re having here. Sadly as I don’t have a PTZ myself I can’t actually pinpoint your issue.
Here but some ideas:


Normally it’s a String Item, so please try to call your Item from a rule with just a quoted preset name:



Please check whether your quotes are valid: " or remove them completely
Normally your definition should return a required string…

Advanced (using dummy Item):


String TestPreset


Switch item=TestPreset mappings=[Terrasse=Terrasse,home=home] label="CAM TEST" icon="camera"

rule "TestPresetRule"
    Item TestPreset received command
    // Log received value to openhab.log. In my test case values are proper
    logError("TestPresetRule", TestPreset.state.toString)
    // note usage of .state.toString here

If it still doesn’t help, please provide more information :

  • binding and OH version
  • channel name and its definition in PaperUI

BR Pav

Thank you Pavion!

Neither worked.
This is the log with the dummy item.
2019-11-14 07:47:13.258 [ERROR] [marthome.model.script.TestPresetRule] - Gangsti
2019-11-14 07:47:15.228 [ERROR] [ncestation.handler.SynoCameraHandler] - handle command: Carport2::synologysurveillancestation:camera:c2kan01273:8

Openhab version:
Version: 2.4.0 (Build)

Bundle version:
openhab> bundle:list|grep -i syno
221 │ Active │ 80 │ 2.5.0.a37 │ SynologySurveillanceStation Binding
222 │ Installed │ 80 │ │ openHAB Add-ons :: Bundles :: Synology Surveillance Station Binding


Thanks! :slight_smile:

hi Jesper,

try it without quoting the key (“Terrasse”) in your mapping

Switch item=Carport2_Ptz_MoveToPreset mappings=[Terrasse=“Terrasse”,home=“home”] label=“CAM TEST” icon=“camera”`

Thanks, but it makes no difference.
2019-11-14 08:49:49.784 [ERROR] [ncestation.handler.SynoCameraHandler] - handle command: Carport2::synologysurveillancestation:camera:c2kan01273:8:

can you post your item Carport2_Ptz_MoveToPreset configuration

Sure, I only have it as an item in PaperUI though.

And here is another from the “Control” where the “list” is expanded. If I select an entry here, it jumps to the preset.

can you try it with this configuration


String TestMovePreset "Camera moving to preset" {channel="synologysurveillancestation:camera:c2kan01273:8:ptz#movepreset"}


Switch item=TestMovePreset mappings=[Terrasse="Terrasse",home="home"]

Hi again,

Just tried it, same error.

2019-11-14 09:31:34.722 [ERROR] [ncestation.handler.SynoCameraHandler] - handle command: Carport2::synologysurveillancestation:camera:c2kan01273:8

There must be a log entry with TestMovePreset

Only the log entry showing:

2019-11-14 09:52:47.168 [ERROR] [marthome.model.script.TestPresetRule] - Terrasse
2019-11-14 09:52:59.009 [ERROR] [ncestation.handler.SynoCameraHandler] - handle command: Carport2::synologysurveillancestation:camera:c2kan01273:8

Very strange.

and you really copy my posted configuration or did you change your existing configuration?

I copied your suggested configuration:

cat items/test_item.items
String TestPreset “Camera moving to preset” {channel=“synologysurveillancestation:camera:c2kan01273:8:ptz#movepreset”}

sitemap b20 label=“Boghvedemarken 10 NY” {
Frame label=“Genveje”{
Group item=GruppeVinduer label=“Vinduer” icon=“window”
Switch item=TestPreset mappings=[Terrasse=“Terrasse”,hjem=“hjem”] label=“CAM TEST” icon=“camera”

Log when I press “Terrasse” on the sitemap.
2019-11-14 11:10:58.004 [ERROR] [ncestation.handler.SynoCameraHandler] - handle command: Carport2::synologysurveillancestation:camera:c2kan01273:8