Hello!
I am running openhabian on an older RPi 2 something and I’m trying to get my Aeon ZWave Stick set up and talking to the zwave devices. I’ve added the Thing for the Z-Wave Serial Controller, but it says the Status is OFFLINE - BRIDGE_OFFLINE Controller is offline
. I click the pencil to edit this Thing and the Serial Port shows the only selection is /dev/ttyS0
. However, in the openhab.log file, I see this:
2019-04-04 10:00:33.819 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port '/dev/ttyACM0'
2019-04-04 10:00:35.097 [hingStatusInfoChangedEvent] - 'zwave:device:931baffe:node5' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2019-04-04 10:00:35.257 [hingStatusInfoChangedEvent] - 'zwave:device:931baffe:node5' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2019-04-04 10:00:36.772 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Serial port is initialized
2019-04-04 10:00:37.506 [hingStatusInfoChangedEvent] - 'zwave:device:931baffe:node6' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2019-04-04 10:00:37.732 [hingStatusInfoChangedEvent] - 'zwave:device:931baffe:node6' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2019-04-04 10:00:37.914 [hingStatusInfoChangedEvent] - 'zwave:device:931baffe:node7' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2019-04-04 10:00:38.001 [hingStatusInfoChangedEvent] - 'zwave:device:931baffe:node9' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2019-04-04 10:00:38.109 [INFO ] [ve.internal.protocol.ZWaveController] - Starting ZWave controller
2019-04-04 10:00:38.194 [hingStatusInfoChangedEvent] - 'zwave:device:931baffe:node3' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2019-04-04 10:00:38.209 [INFO ] [ve.internal.protocol.ZWaveController] - ZWave timeout is set to 5000ms. Soft reset is false.
2019-04-04 10:00:38.309 [hingStatusInfoChangedEvent] - 'zwave:device:931baffe:node3' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2019-04-04 10:00:38.454 [hingStatusInfoChangedEvent] - 'zwave:device:931baffe:node7' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2019-04-04 10:00:38.554 [hingStatusInfoChangedEvent] - 'zwave:device:931baffe:node9' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2019-04-04 10:00:38.640 [WARN ] [core.thing.internal.ThingManagerImpl] - Initializing handler for thing 'zwave:serial_zstick:931baffe' takes more than 5000ms.
Which I think means the controller is connecting to /dev/ttyACM0
. Using ps aux
, it looks like the openhab
user is running the openhab service, so:
[10:51:42] openhabian@openHABianPi:~$ groups openhab
openhab : openhab tty dialout audio bluetooth gpio
[10:51:53] openhabian@openHABianPi:~$
[10:52:00] openhabian@openHABianPi:~$ ls -l /dev/ttyACM0
crw-rw---- 1 root dialout 166, 0 Apr 4 10:52 /dev/ttyACM0
Edit ttyS0 isn’t even a thing:
[18:37:25] openhabian@openHABianPi:~$ ls -l /dev/ttyS*
ls: cannot access '/dev/ttyS*': No such file or directory
[18:37:31] openhabian@openHABianPi:~$
These are the EXTRA_JAVA_OPTS values I have:
[10:34:30] openhabian@openHABianPi:~$ cat /etc/default/openhab2 | grep SerialPorts
## EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0"
## EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyS0:/dev/ttyS2:/dev/ttyACM0:/dev/ttyAMA0"
## EXTRA_JAVA_OPTS="-Djna.library.path=/lib/arm-linux-gnueabihf/ -Duser.timezone=Europe/Berlin -Dgnu.io.rxtx.SerialPorts=/dev/ttyS0"
EXTRA_JAVA_OPTS="-Xms250m -Xmx350m -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyS0:/dev/ttyS2:/dev/ttyACM0:/dev/ttyAMA0"
[10:34:41] openhabian@openHABianPi:~$
So my hunch is that the controller comes up fine on /dev/ttyACM0
, but for some reason the PaperUI doesn’t let me select /dev/ttyACM0
as the serial port, so openhab can’t find the controller:
I checked these posts that have similar, but slightly different issues, but the resolution doesn’t seem to apply in my case:
The “Welcome to openHAB2” on https://address:8080/start/index shows my openHab version as openHAB 2.5.0.M1 Milestone Build
. But the ssh welcome message shows openHAB 2.4.0-1 (Release Build)
. All the bindings show the 2.5.0 value though.
Edit: Added ls for ttyS0.