Hi,
I just installed OH2 2.0.b3 over apt-get on my RasPi / jessie
I added the zWave Binding & Habmin2
But unfortunately I could not add the raZberry board to /ttyAMA0 as this port didn´t show up on
ls -l /dev/tty*
any sugestions?
Hi,
I just installed OH2 2.0.b3 over apt-get on my RasPi / jessie
I added the zWave Binding & Habmin2
But unfortunately I could not add the raZberry board to /ttyAMA0 as this port didn´t show up on
ls -l /dev/tty*
any sugestions?
Had the same problem.
Fix
Add user to group dialout
sudo usermod -a -G dialout openhab
Modify start.sh i.e
#!/bin/sh
echo Launching the openHAB runtime…
export EXTRA_JAVA_OPTS=-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0
DIRNAME=dirname "$0"
exec “${DIRNAME}/runtime/karaf/bin/karaf” “${@}”
If you don’t want to modify start.sh, found that creating a symlink to /dev/ttyAMA0 works…
sudo ln -s /dev/ttyAMA0 /dev/ttyUSB30
Then you can specify /dev/ttyUSB30 i den configuration of the Z-wave binding.
thanks, but ttyAMA0 still did not appear in the system when I add the “export EXTRA…” to the start.sh.
I rebooted the System…
any other hints where I could search?
Tried the symlink workaround as well?
I.e
sudo ln -s /dev/ttyAMA0 /dev/ttyUSB30
and specify /dev/ttyUSB30 in the z-wave binding configuration
no …
as there is either ttyUSB30 nor ttyAMA0 I could not symlink them in any way…
I´m confused…
thanks for helping me to get that thing running
finaly I got it fixed… (I hope so)
I activated the serial console in raspi-config
and entered the following command
`sudo systemctl mask serial-getty@ttyAMA0.service
after that I got the raZberry running…`
Been having issues with this port and a Razberry2 card. Had to add the extra java opts: -Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0 and add user pi to tty for this to work.
@Skalleno can you please show the detail of where you added this to extra java opts. Was it in setenv or start.sh or maybe /etc/init.d/openhab2?
I would strongly suggest that you use openhabian for your pi. It is so easy to setup, and you would not have any issues with serial ports.