Binding Request: Synology Surveillance Station

Hello together.

New version has been released introducing Home Mode (@NoTechi, @grouchal), increased timeout, better error handling and logging.

Feedback is appreciated!
Pav

First, I must thank you for this great binding. I’ve been using it for 5 days now, and it has worked flawlessly! :slight_smile: I really appreciate this binding.

Just wondered if it would be possible to send the image item from a synology camera to a chromecast? Was thinking of saving the image item to file, under /etc/openhab2/html/image.jpg. Then in a rule send this image to Chromecast. I know how to send to chromecast:

sendCommand(Chromecast_play_uri, "/openhabian:8080/static/image.jpg")

But how do I save the image from Item and not the camera url, to local folder on rpi?

best regards
chris

Thank you for your feedback!

I don’t have a Chromecast and can’t test it but I don’t think that saving a snapshot to disk and providing its URL is a good idea (disk writes, latency).

I can imagine following solutions:

  • without my binding, timer in the rule: php script running on your DS is your uri (no overhead, PM for more details)
  • with my binding, timer in the rule: I could provide an STRING uri pointing at the actual snapshot, which is constant (upon login), Chromecast must be called with rule timer
  • with my binding, timer in the binding: with the refresh rate of events I could provide a non-constant URI pointing at the last snapshot, thus triggering STRING channel and then rule

Please consider this options and create a GitHub issue or reply.
wbr Pav

Hello and thank you for the bindng.
The image item is working perfect now.

But i’ve got problems with my PTZ-Cam. The movement commands seem to repeat or something. When i trigger an “UP” command, the camera moves up until the top-border. When i do the same in Surveillance Station it moves just a little step.

Hi @Pavion,

Awesome job, thanks. :slight_smile:
Are you planning to create a pull request, and have it included with OH?

Thanks,
Marton

Hi Marton!

please be assured that I am planning it. But I’m actually not happy with the update process of a merged binding, as you can see in this thread:

So as long as I’m working mostly alone and have but few testers a JAR distribution is a faster and easier way for me and I frankly don’t know why I should hurry with merging.

Thanks for your feedback!
Pav

I can’t get this binding to work, and I definitely want it to.
224 | Installed | 80 | 2.2.0.a17 | SynologySurveillanceStation Binding

tried a17 and a20

running 2.2.0-SNAPSHOT
Build #975

any ideas?

Please use the latest v20, it is also the most stable. But what is your problem exactly?

I think maybe it doesn’t start because my openhab runs on my Synology. Port conflict maybe?

The binding itself doesn’t need a port and my installation runs on my DS too. Have you tried bundle:start or bundle:status? Do you see something uncommon in your log? You can try to increase binding’s log level:

log:set DEBUG org.openhab.binding.synologysurveillancestation

… and restart openHAB. If you find something, please create an issue on GitHub if possible or write a PM.

I’ll try that in a bit. Thank you for the tip

looks like im missing some things
Error executing command: Error executing command on bundles:
Error starting bundle 224: Could not resolve module: org.openhab.binding.synologysurveillancestation [224]
Unresolved requirement: Import-Package: org.eclipse.jdt.annotation; resolution:="optional"
Unresolved requirement: Import-Package: org.eclipse.smarthome.config.discovery.mdns

This is very nice indeed. I’ve installed the Binding, connected to my NAS and found the camera. But how do I add it to the sitemap etc.?

Well at least I can see the snapshot in Paper UI :).
Instead of performing snapshots continuously, it could be nice if that could be disabled, and snapshots could be generated when needed in e.g. a rule.

Hi Rune! You can disable automatic snapshot refresh in the Camera configuration (by setting snapshot refresh to 0) and use a rule to send a REFRESH command to the snapshot item.

Brilliant!
Was it possible to add some examples of how to add a camera in a sitemap and e.g. use this REFRESH in a rule? I can’t figure out how it works :no_mouth:

@mrwee: Please check the newest release a21. In release notes there is a short guide for a sitemap configuration using new String channel “snapshot URI”.

@sjef86 Thank you for your idea now being implemented

This is the only new feature of this release so everyone else don’t need to update right now.

Got it up and running. Thanks for the pointer to the release notes. Will play around with it, and see if I can come up with the rule for manual refresh :slight_smile:

Why would you need an additional rule?

after a long and painful upgrade to 2.2.0 i have this working now.

I’ve got snaps showing up in the sitemap, thank you very much.

edit
holy cow does this spam the event log or what? :laughing: