Binding Request: Synology Surveillance Station

Well… this is the URI reported from Surveillance Station and I don’t have any control over it.
Why wouldn’t you use option 2? It’s still Surveillance Station serving as proxy.
In any case you might want to try other URIs reported by the API. According to v.3.6:

mjpegHttpPath

http://10.13.13.9:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.VideoStreaming&version=1&method=Stream&format=mjpeg&cameraId=15&StmKey="MyKey"

multicstPath

rtsp://admin:faaa8c5e0d20b71038e35e7e3635b0ee@10.13.13.9:554/Sms=15.multicast

mxpegHttpPath

http://10.13.13.9:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.VideoStreaming&version=1&method=Stream&format=mxpeg&cameraId=15&StmKey="MyKey"

rtspOverHttpPath

rtsp://10.13.13.9:5000/webman/3rdparty/SurveillanceStation/cgi/rtsp.cgi?Sms=15.unicast&DsId=0&StmKey=MyKey

rtspPath

rtsp://admin:faaa8c5e0d20b71038e35e7e3635b0ee@10.13.13.9:554/Sms=15.unicast

If they are better suited for your needs, you can create your own channel using Transformation. See my readme for more details on it.

BR Pav

1 Like

Thanks for your answer @Pavion - I highly appreciate your support.

Reason for not using the rtsp stream is that my Apple iPad and Huawei MatePad tablets (which are showing the HabPanel (and the camera stream)) do not support showing rtsp streams.
Or is there a known way to show rtsp in HabPanel?
But I guess this is offtopic and not a Synology-related issue.

I have updated Synology to 7.0 and since no access to my cam
2021-08-03 09:19:15.646 [ERROR] [ternal.webapi.request.SynoApiRequest] - RESPONSE: {“error”:{“code”:105},“success”:false}

2021-08-03 09:19:15.664 [ERROR] [ternal.webapi.request.SynoApiRequest] - RESPONSE: {“error”:{“code”:103},“success”:false}

2021-08-03 09:19:15.666 [ERROR] [nal.discovery.CameraDiscoveryService] - Discovery Thread; Attempt to reconnect failed

Please check whether you are using the latest release. Older releases are not compatible with DSM7.

2 Likes

Thx, for the hint.

it was not the DSM7 release!

1 Like

Hi Pavion
I tried to use this settings for video feed, but it throws warning:

2021-08-18 08:53:02.492 [WARN ] [iles.JavaScriptTransformationProfile] - Could not transform state ‘http://192.168.1.110:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Stream.VideoStreaming&version=1&method=Stream&format=mjpeg&cameraId=8&StmKey=“5d7ed90e442edabf1e8bb1001b85c44b”’ with function ‘livefeed.js’ and format ‘%s’

I am using OH3.1.

@Pavion
Nevermind, I just manualy created livefeed.js script under transform folder.
Its working now :slightly_smiling_face:

1 Like

Hi Pavion,

your surveillancestation binding was working fine since some years now and helped me a lot automating some things in Openhab with regards to Synology Surveillance Station. Thanks for your continued great work on this. :+1:

Now my problem: I am still running Openhab 2.5.12 and recently I updated my DSM version to version 7.0 and therefore downloaded your latest release of surveillancestation binding 3.1.0 for DSM7 compatibility and tried to install it.

Since the binding isn’t working on my Openhab 2.5.12 installation and reading some of the posts and comments I assume version 3.1.0 is just for Openhab 3.x, right?

Your answer to the next question might be no but at least I wanted to ask :wink:
Do you plan to also support Openhab 2.5.x with DSM7 compatibility?

Thx in advance,
Hubba

1 Like

Hi Hubba and thanks for your feedback!

Due to some structural changes between OH2 and OH3 any parallel development is hard to maintain.

OH3 is already an year old and can be considered stable, I had myself no issues with my migration and would recommend you to do the same. Why not?

Anyway, I’m planing nothing but I could try to adapt the latest OH2 release for DSM7 (w/o newer fixes and so on) but I’m not sure it can be compiled anymore.

Any thoughts on this?

BR Pav

Hi Pav,

thanks for the fast reply. I can understand your position and for sure I am planning to migrate to OH3 in the future, when I have some time to solve potential issues right away (probably arround christmas time, if family gives me the time :upside_down_face:)

Nevertheless for sure I would also appreciate a short try of adaption (OH2-DSM7) - there might be some other users in the same situation, who might benefit.

But if you don’t find the time or effort will be too high it is also ok for me to wait until my OH3 migration … 3 month are not that long. :wink:

Thx,
Hubba

Oh well, here you go:

See release notes for details. Feedback appreciated!
Pav

2 Likes

Hi Pav,

I am deeply impressed … thanks a lot!
That was a very fast reaction :smiley:

I installed this version and it works fine for me.
Thank you very much for your effort on this!

Thx,
Hubba

1 Like

I got the binding up and running and it works great! I have the live view in my sitemap. How do you properly set up the mapping for the zoom ect.?

The Zoom channel have two default options: IN and OUT.
If using a sitemap, just leave “Command options” field empty for those values.

Edit: non-default values can be used with prefix START_ or STOP_ to start/stop continuous zoom/move. For example: START_IN / STOP_OUT

Hi,

i’m on OH3 3.2.0 and really like your binding, thanks for your work.

I have the “Live feed URI (mjpeg over http)” on my Basic UI running.
Also i have the .js profile active.

My question is:
The update from the feed is only all 2 seconds.
Can i manage this to a clearer stream ?

Thanks
Stephan

Hi Stephan and thank you for your feedback.
I can’t quite grasp your issue. This binding gives you just the URI of the stream. If you can play your stream via a video player such as VLC, then it works as intended. I don’t use BasicUI myself so perhaps there are some limitations. If you give me some more information I could try to reproduce it on my setup (probably at weekend). Please PM me then (English or German).
BR Pav

i have added the camera’s by a .thing file
image
Maybe if you change the pollTime=1000 it will refresh the mjpeg faster


Found this in the IP Camera - Bindings | openHAB

thx for the hint.
i have added the camera via ip camera binding.
The stream works clear with a poll time from 1000.
Unfortunately the polltime setup isn’t present by synolgy binding …

Just to clarify the last issue: this binding just returns an mjpeg stream URI as provided by the Synology Surveillance Station API. The actual stream is not configurable and seems to have a larger poll time of several seconds. There is no option to afflict this poll time using API. Any credit for this limitation goes to Syno :face_with_monocle:

Hey Guys, today i have updated the Synology Surveillance Station to Version 9.0.0-7660 and since i dont receive any motion Events. Can you help me to fix this?