Hi, I have a Raspberry Pi Zero W running a vanilla install of openHAB 2.2.0-1
and am unable to get it to see an Aeotec Z-Stick Gen5. I’ve been working on this for a week and am beginning to pull my hair out. I’ve read all the threads regarding getting the serial port to work and have reimaged my sd-card and started fresh after my initial attempt with Rasperian and the openhab deb package.
I have 2 ttys:
crw-rw---- 1 root dialout 204, 64 Jan 29 15:40 /dev/ttyAMA0
crw-rw---- 1 root dialout 4, 64 Jan 29 15:23 /dev/ttyS0
and the group permissions seem correct:
$ sudo grep dialout /etc/group
dialout:x:20:openhabian,openhab
I’ve added the ttys to the /etc/default/openhab2
:
EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyS0:/dev/ttyAMA0"
and they show up in the PaperUI interface, but any Z-Wave “thing” I add using either tty shows as
Status: OFFLINE - BRIDGE_OFFLINE Controller is offline
Checking, the serial ttys seem to be inactive:
$ systemctl status serial-getty@ttyAMA0.service
● serial-getty@ttyAMA0.service - Serial Getty on ttyAMA0
Loaded: loaded (/lib/systemd/system/serial-getty@.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:agetty(8)
man:systemd-getty-generator(8)
http://0pointer.de/blog/projects/serial-console.html
and
$ systemctl status serial-getty@ttyS0.service
● serial-getty@ttyS0.service - Serial Getty on ttyS0
Loaded: loaded (/lib/systemd/system/serial-getty@.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:agetty(8)
man:systemd-getty-generator(8)
http://0pointer.de/blog/projects/serial-console.html
One strange thing is that when I add a “thing”, the logs show openhab connecting:
2018-01-29 15:47:34.503 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port '/dev/ttyAMA0'
2018-01-29 15:47:34.728 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Serial port is initialized
I’ve tried turning off Bluetooth with sudo openhab-config
and Disable Bluetooth module
, but it doesn’t seem to stick. I’ve tried adding dtoverlay=pi3-disable-bt
to the /boot/cmdline.txt
file, but it hasn’t helped:
dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=9ce65417-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait dtoverlay=pi3-disable-bt
Bluetooth seems to be disabled (at least hcitool scan
times out with the error Inquiry failed: Connection timed out
).
Any help or pointers would be great appreciated! Thanks.
-Seren