Very new user here, trying to figure this out! I first installed the ‘snap’ version on ubuntu but decided to uninstall and follow the directions here, that worked, but had the java issues as others also asked, so thanks, those threads got me running again (since the snap version did run).
I went into PaperUI and setup to bindings (Just network and Onkyo which seem to work) and I have a jar file for another one (myQ). So I have two questions after going to the /usr/share/openhab2/addons and I don’t see anything there.
The bindings I installed from PaperUI, where do they appear?
This binding I have I assume I put in the /addons directory but I think the permissions are set to openhab. What is the most common process to gain permissions to manually edit the files you need to, add your user account to the directory for permission or just use root?
Thanks for any and all help for a newbie that wants to start doing some automation!
You can use root to copy the *.jar file into /usr/share/openhab2/addons/ for manual deployment of addons.
Then, you can chown -R openhab:openhab /usr/share/openhab2/addons/. But this is not really needed since OH2 will need just read access to the *.jar and this is usually available by default (so you could have the jar file owned by root and with read access to all and it would still work).
I’m dealing with similar issues now.
I tried ‘snap’ version on ubuntu first, then the apt-get the java version. Had some permission issues too.
Under ubuntu, users don’t have true root access. I thought the “snap” was removed, but it was still there under another username, and two versions would autoload with the system. The “snap” was running under root username, the apt-get java version was running under openhab username. One versions will be load first randomly. So I got a lot of permission issues. If the snap version loaded first with root username, the usb Zwave stick won’t find its serial port /dev/ttyACM0. I login ubuntu with that username, and remvoe the snap version. Now my permission issues are gone.
user@server:~$ top |grep java
user@server:~$ apt-cache showpkg openhab2
The latest binding-zwave-2.2.0.SNAPSHOT has secure binding issues. I couldn’t secures-include my garage-door controller, nor open the garage-door, but other channels of the same garage-dr controller work in a non-secure inclusion. I download that binding-zwave - 2.1.0.SNAPSHOT.jar at that thread. move to my server /usr/share/openhab2/addons with Samba and mv, chown -R. But my openhab refuses to install the local 2.1.0.SNAPSHOT.jar, keeps installing the online 2.2.0.SNAPSHOT, even after disconnecting the CAT5 cable from my modem. Where is the cached binding-zwave-2.2.0.SNAPSHOT.jar ?
download the jar, move to my server /etc/openhab2/ with samba
sudo mv /etc/openhab2/-SNAPSHOT.jar /usr/share/openhab2/addons
sudo chown -hR openhab:openhab /usr/share/openhab2/addons/*-SNAPSHOT.jar