So I am trying to get DEBUG going - I have visited http://www.cd-jackson.com/index.php/openhab to try to get it enabled. By
console, do you mean a shell session is where I enter this at the
prompt *log:set
debug org.openhab.binding.zwave? *I am getting an error. I am new to OH2,
so all of this is still foreign.
in file “setenv” at /opt/openhab/runtime/karaf/bin
you need to add the parameter -Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0
just to make sure that karaf is aware on the JVM parameter.
For those using the Razberry board, it seems that this line -Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0" needs to be added to /usr/share/openhab2/runtime/karaf/bin/setenv under
export JAVA_OPTS="${JAVA_OPTS}
at the end and the ending quote needs to be removed after -Dorg.osgi.service.http.port.secure=${HTTPS_PORT}".
I am under the impression I can type log:set debug org.openhab.binding.zwave at the SSH shell. When I do that, I receive the error -bash: log:set: command not found.
This command should work. Are you logged in to the correct console? What do you see when you log on (do you see the openhab logo), and what do you see when you type ‘help’ (eg lots of OH commands)?
I seem to be struggling with OpenHab 2 connecting to the Razberry board. I had it working a few months ago with a manual installation of the beta, but due to a corrupted SD card I lost that work.
The difference this time is that I installed OpenHAB2 as a service.
The z-wave network was setup using the Z-way software, as I did last time. I then stopped the z-way-server service before starting the OpenHab2 service.
I added the line to the setenv file under /usr/share/… , making sure the ’ " ’ was in the right place. Still no dice, however. Upon start up OpenHab2 does not recognize ttyAMA0.
Do I need to restart the pi for these changes to work?
Edit: Just tried rebooting, and adding user pi and openhab to group tty. Still no change.
Edit2: I was finally able connect. The answer was staring me in the face. Adding user pi to group tty was what I needed, combined with @budghiss 's solution.
Thanks Frerk, i found it and try to connect to my razberry v.2. Do you have any problems after changing the file setenv? Can you connect with your Razberry?
Regarding the Razberry and openHABian: There is a menu entry in openhabian-config: openHABian hassle-free openHAB Setup - you do not need to do anything else!
On any other Raspbian system you will have to do the following:
Execute adduser openhab dialout and adduser openhab tty
Remove the serial console and login shell from /boot/cmdline.txt and /etc/inittab as shown here and here
Enable the serial port by adding “enable_uart=1” to /boot/config.txt
Disable Bluetooth on the RPi3 by adding “dtoverlay=pi3-miniuart-bt” to /boot/config.txt
i am here again because of my problem after updating the lastest Openhab 2 on Openhabian.
After updating Openhab2, the Razberry on RPI 3 is offline, it said that the serial port /dev/ttyAMA0 is in used.
i tried to do like you said with using openhabian-config but it is not successful.
i controlled all files (config.txt, cmdline.txt…) again, and they are same like you worte.
i tried many times to restart the system, but not yet succesful.
i don’t know why???
in addition i can not connect to wifi with openhabian? can you give me a tutorial?