I’m openhab user for many years. Last ~ 3 yrs I was using OH2 without major issues. Unfortunately, my Beagle Bone Black, on which the hab was running is dead. Therefore, I decided to utilise my Synology 220+.
However, attaching Z-Stick S2 (DSA02203) dongle was not straight forward process, even the device is listed in the supported items for OH4.
Anyway, I managed to make it visible in Synology OS (using this guide)
# ll /dev/ttyUSB0
crw-rw---- 1 root root 188, 0 Aug 29 20:23 /dev/ttyUSB0
# dmesg | grep USB0
[ 60.893958] usb 1-2: cp210x converter now attached to ttyUSB0
I can also see it via Docker ssh.
# ls -al /dev/ttyUSB0
crw-rw---- 1 root root 188, 0 Aug 30 06:10 /dev/ttyUSB0
# dmesg | grep USB0
[ 60.893958] usb 1-2: cp210x converter now attached to ttyUSB0
You should put the binding into debug level logging and see what sort of problems may be encountering.
But all thinks considered, you’ve hacked your Synology to get USB support in the first place. Just because you see the device file doesn’t mean it’s actually working. You are pretty far off from anything supportable by the contributors to this forum.
Looking at the openHAB installation docs for Synology: https://www.openhab.org/docs/installation/synology.html, the device file’s permissions need to be modified so that the group is dialout instead of root and the openhab user needs to be a member of that group.
It also indicates those instructions work on DSM 7 so are you sure you need that serial drivers hack in the first place? Maybe the OH docs are out of date?
I definitely know though that if the user running openHAB isn’t in the root group, which it shouldn’t be and certainly is no by default, it’s not going to have permission to read the serial device, given you current configuration.
Looks like the permissions you pointed out were changed after reboot. As I did initially set them according to the guide I just miss the change.
Now I have my Z-stick operational. Hope the below will help others looking how to make it work because the docs for running OH on Synology are not valid for DSM7.2
There are not many who are running OH on Synology. If the docs are incomplete or incorrect and you know how to fix them we would love if you’d give that a go. There’s a link at the bottom of the page which will take you straight to where you can propose the edits. See [Wiki] How to contribute to the openHAB Documentation for a way more detailed tutorial than you need.