I am using a Aeon Gen 5 Z-Stick successfully with OH1. I am working to migrate to OH2 (online build, installed via apt-get), and continuously receive this error in the logs:
2016-12-25 17:39:36.548 [hingStatusInfoChangedEvent] - 'zwave:serial_zstick:159387b2735' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2016-12-25 17:39:36.645 [hingStatusInfoChangedEvent] - 'zwave:serial_zstick:159387b2735' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to OFFLINE (COMMUNICATION_ERROR): Serial Error: Port /dev/ttyACM0 does not exist
My /etc/default/openhab2 file looks like this: EXTRA_JAVA_OPTS=-Dgnu.io.rxtx.SerialPorts=/dev/ttyACM0
I have also tried injecting export -Dgnu.io.rxtx.SerialPorts=/dev/ttyACM0 into various places in the karaf and many other startup files, with no luck.
OH2 is running as openhab, and is a member of the dialout group, which has rw privileges on /dev/ttyACM0.
Any ideas on how to make this port available to OH2?
Iâm on the latest snapshot via apt-get. There is not a liblockdev1 package of my Ubuntu build (16.04)⊠Iâll spend more time troubleshooting tomorrow.
events.log:2016-12-25 18:39:46.226 [hingStatusInfoChangedEvent] - 'zwave:serial_zstick:159363163fa' changed from OFFLINE (BRIDGE _OFFLINE): Controller is offline to OFFLINE (COMMUNICATION_ERROR): Serial Error: Port /dev/ttyACM0 does not exist
Setup: apt-get , online, RPi2, tellstick.
Had working tellstick setup with OH1, moved to OH2 ( no apt-get ) and got that working.
Moved to apt-get to get hold of code progress and to get Habmin to work from zwave support.
Funny thing is, Habmin2 have been able to extract the one node I had discovered before plugging it in and set it up as an item.
<<>Rant>
Now neither tellstick not zwave works. Reading forums to find out small stuff like default sitemap isnât default, that /etc/group file needs to be edited.
I update files, but paper UI does not âŠ
Almost all is found out by forums and google, very little by the documentation.
OH is making me older fast.
<<>/Rant>
had same issue z-wave (Razberry) ACM0 not working with latest builds. i was using openhabian to update my system. As nolan_garrett was saying something wrong with OS.
Thanks,
tried that , with mixed success.
Openhab didinât start on reboot.
Or rather ,died. And Iâm assuming it was unexpectedly.
Nothing in the openhab.log:
2016-12-26 08:02:54.626 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2016-12-26 08:02:55.046 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2016-12-26 08:02:55.669 [INFO ] [ding.astro.internal.job.JobScheduler] - Scheduled a daily job at midnight for astro calculation
2016-12-26 08:03:01.974 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port '/dev/ttyACM0'
Nor in the event.log:
2016-12-26 08:03:01.971 [hingStatusInfoChangedEvent] - 'zwave:serial_zstick:159363163fa' changed from UNINITIALIZED to INITIALIZING
2016-12-26 08:03:01.977 [hingStatusInfoChangedEvent] - 'zwave:serial_zstick:159363163fa' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2016-12-26 08:03:02.062 [hingStatusInfoChangedEvent] - 'zwave:device:159363163fa:node2' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2016-12-26 08:03:02.068 [hingStatusInfoChangedEvent] - 'zwave:device:159363163fa:node2' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
The /var/run/openhab2.pid file was still there though.
Even worse, when I removed liblockdev1 and liblockdev1-dev, I only hade PAPER UI and BASIC UI in the web interface. But it started again.
Edit: When I look in the PAPER IU , the zWave binding is gone.
Iâve also tried ( and succeeded) by doing sudo chmod a+rw /dev/ttyACM0
But that doesnât cut it as a long term solution as the device will be removed if I unplug the stick.
Edit: Allow me to correct myself:
under Addons I can see the zwave is installed, but under configuration->bindings , zwave is gone.
This is interesting.
I had my Z-Wave stick at /dev/ttyACM0â already working with the apt-get installation of OH2 (the snapshot version maybe 1-2 month old). Yesterday I made and apt-get upgrade and now Z-Wave stops at this line: Connecting to serial port '/dev/ttyACM0'. The controller is offline with reason âSerial Error: Port /dev/ttyACM0 does not existâ.
I didnât had this option (EXTRA_JAVA_OPTS=-Dgnu.io.rxtx.SerialPorts=/dev/ttyACM0) before but even setting it doesnât make a difference.
Finding this thread, I installed liblockdev1 and finally it works! So my guess would be that the latest nrjavaserial needs the liblockdev1 as a dependency (at least on raspberry pi 2)?
I can see this liblockdev1 mentioned several times in github tickets of the nrjavaserial repository, however it is not mentioned there in the readme as a prerequisite.
Tried again,
did /etc/init.d/openhab stop (interesting that there was no trace of that in the logs.)
installed liblockdev1,
rebooted
System started, with opehab, I could get the initial screen up on :8080/start/index
but after the start initialized zwave , openhab died without a trace.
these still remain:
pi@homeauto /run/lock $ ll
total 12
drwxr-xr-x 15 root root 640 Dec 26 11:15 ..
-rw-rw-rw- 3 openhab openhab 11 Dec 26 11:16 LCK..ttyACM0
-rw-rw-rw- 3 openhab openhab 11 Dec 26 11:16 LCK.C.166.000
-rw-rw-rw- 3 openhab openhab 11 Dec 26 11:16 LCK...2648
drwxrwxrwt 2 root root 100 Dec 26 11:16 .
I have been fighting with this for days. Reading every post about Pine64 and Aeon zwave gen 5 around.
Even done a fresh install of Debian and openhab2 offline. setup everything following this guide. http://docs.openhab.org/installation/linux.html#package-repository-installation
i also just did the liblockdev1 / liblockdev1-dev install with no luck.
Hope someone has an idea.
This is what I get:
2016-12-26 18:03:02.490 [hingStatusInfoChangedEvent] - âzwave:serial_zstick:7d934604â changed from OFFLINE (COMMUNICATION_ERROR): Serial Error: Port /dev/ttyACM0 does not exist to UNINITIALIZED (HANDLER_MISSING_ERROR)
2016-12-26 18:03:03.541 [ThingRemovedEvent ] - Thing âzwave:serial_zstick:7d934604â has been removed.
2016-12-26 18:04:02.239 [ThingAddedEvent ] - Thing âzwave:serial_zstick:7d934604â has been added.
2016-12-26 18:04:21.898 [hingStatusInfoChangedEvent] - âzwave:serial_zstick:7d934604â changed from UNINITIALIZED to INITIALIZING
2016-12-26 18:04:21.909 [hingStatusInfoChangedEvent] - âzwave:serial_zstick:7d934604â changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2016-12-26 18:04:21.985 [hingStatusInfoChangedEvent] - âzwave:serial_zstick:7d934604â changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to OFFLINE (COMMUNICATION_ERROR): Serial Error: Port /dev/ttyACM0 does not exist