Z-wave stick bridge offline


(Zweetkonijn) #1

I am running openhabian 2.4.0-1 on my Raspberry Pi 3 B+.
When I add the Aeotec z-stick gen5 to my things it won’t connect.
I have a fresh install of openhabian, this is my first attempt at adding something.

This is what I get in the log viewer:

2019-03-13 21:06:49.432 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port '/dev/ttyAMA0'
2019-03-13 21:06:49.441 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Serial port is initialized
2019-03-13 21:06:49.445 [INFO ] [ve.internal.protocol.ZWaveController] - Starting ZWave controller
2019-03-13 21:06:49.448 [INFO ] [ve.internal.protocol.ZWaveController] - ZWave timeout is set to 5000ms. Soft reset is false.

What have I already tried?

  • Added EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyS0:/dev/ttyS2:/dev/ttyACM0:/dev/ttyAMA0" to /etc/default/openhab2

  • Run openhabian-config, go to 30 System Settings, 35 Serial Port, make sure that option 3 “Add common serial ports to openHAB JVM” is checked. Then go to 10 “Apply the latest improvements to the basic openHABian setup” and 14 “Fix Permissions” .

  • [21:14:49] openhabian@openHABianPi:~$ sudo chmod 777 /dev/ttyAMA0


(SiHui) #2

You need to set the correct port in the things config.


(Zweetkonijn) #3

I have set /dev/ttyAMA0 as the serial port.
Or could it be an other port? There is no dropdown menu, this is what I found from other people that run the zwave stick on openhabian.


(SiHui) #4

You need to find your port via

dmesg -T | grep tty


(Zweetkonijn) #5

That command returns:

openhabian@openHABianPi:~$ dmesg -T | grep tty
Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000  dwc_otg.lpm_enable=0 console ttyS0,115200 console=tty1 root=/dev/sda1 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
console [tty1] enabled
3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device

Seems like it is the correct port ttyAMA0? What else could be the problem?


(SiHui) #6

Nope: your zwave stick is on ttyACM0