I have the Aeon Z-Stick working in the following enviroment:
Ubuntu 18.04
Openhab 2.3
Z-wave Binding 2.4
I have it mounted using a persistent alias:
SUBSYSTEM=="tty", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", SYMLINK+="ttyUSB-ZStick-5G"
And everything works as expected. The problem is sometimes, when I reboot to install some update, openhab doesn’t detect the Aeotec thing anymore (status: OFFLINE - COMMUNICATION_ERROR), so the whole Z-Wave network is down. The Openhab log shows this when it’s shutting down during reboot:
2018-10-03 13:18:19.823 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Stopped ZWave serial handler
2018-10-03 13:18:19.825 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.dispose()' on 'org.openhab.binding.zwave.handler.ZWaveSerialHandler@ea2afa9': null
at org.openhab.binding.zwave.internal.protocol.ZWaveTransactionManager.shutdown(ZWaveTransactionManager.java:207) [225:org.openhab.binding.zwave:2.4.0.201809081506]
at org.openhab.binding.zwave.internal.protocol.ZWaveController.shutdown(ZWaveController.java:118) [225:org.openhab.binding.zwave:2.4.0.201809081506]
at org.openhab.binding.zwave.handler.ZWaveControllerHandler.dispose(ZWaveControllerHandler.java:253) [225:org.openhab.binding.zwave:2.4.0.201809081506]
at org.openhab.binding.zwave.handler.ZWaveSerialHandler.dispose(ZWaveSerialHandler.java:133) [225:org.openhab.binding.zwave:2.4.0.201809081506]
2018-10-03 13:18:19.831 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occurred while disposing handler of thing 'zwave:serial_zstick:6126352d': null
at org.openhab.binding.zwave.internal.protocol.ZWaveTransactionManager.shutdown(ZWaveTransactionManager.java:207) [225:org.openhab.binding.zwave:2.4.0.201809081506]
at org.openhab.binding.zwave.internal.protocol.ZWaveController.shutdown(ZWaveController.java:118) [225:org.openhab.binding.zwave:2.4.0.201809081506]
at org.openhab.binding.zwave.handler.ZWaveControllerHandler.dispose(ZWaveControllerHandler.java:253) [225:org.openhab.binding.zwave:2.4.0.201809081506]
at org.openhab.binding.zwave.handler.ZWaveSerialHandler.dispose(ZWaveSerialHandler.java:133) [225:org.openhab.binding.zwave:2.4.0.201809081506]
And this while it’s starting again:
2018-10-03 13:19:07.580 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port '/dev/ttyUSB-ZStick-5G'
And it doesn’t mention this device anymore. Then, I can’t get it working until I restart openhab2 service. Once I do that, it starts working again.
It’s weird, because if I check the path I have set for the Z-Wave modem (/dev/ttyUSB-ZStick-5G), the device is mounted and the alias is resolving all right. It’s like Openhab tries to detect it on boot, and if the USB isn’t ready, it never tries to check for it again. I’d like to either solve the initial problem and detect it from the beggining, or at least find a way to keep auto-trying until it is ready.