I get similar error than you and @Matt77 when socat restart I guess. A soft reset on the zwave bridge brings all back to normal. Do you know what do I miss to make it works ?
I just had to reboot the VM with OH2 and it looks like le socat did not start on its own.
Anyone can give me advice what is the The Right Way to make it autostart on Ubuntu 16.04 and to do it preferably before the OH2 starts.
As I started it manually I still needed to restart OH2 to make zwave work properly.
TIA
I got this working fine, so i thought id test it by restarting the device that shares the USB and I had to restart everything to get it to work again.
Can someone help me to define where I add restart=always? or help me to ensure that it reconnects upon either OH2 restarting or the host serving the USB?
the restart alway should be located in the socat@.cof. See the other thread where the configuration is more in one article Forwarding of serial ans USB ports …
Just a quick reply as i’m currently at work, but it should suffice to just restart the Zwave binding instead of Openhab.
I would have to check tonight to be absolutely sure but in my install i can restart the the remote Z-wave node without running into issues in Openhab at all. It does depend on the time it takes to restart though.
Yes, a restart of the Zwave binding does the job, no need to restart OH. I have implemented a command with Exec binding to automate this by logging in to Karaf console and then execute
Thanks. Yeah ideally i shouldnt have to restart at all but a binding restart helps a little. I have battery devices that need a wake up if thr binding starts again or they fail to work (motion sensor)
Be keen to know what your oh2 instance does…
My Zwave devices never fail if i restart the zwave binding. Devices only go offline is a wake up event in Zwave is missed by Openhab.
So if you restart the zwave binding and a device would send an wake up event during that time… the device most likely goes offline in Openhab. This should recover once the next wake up event is received.
The above should not influence the workings of a battery operated device. motion sensors, temp sensors, door sensors… they all keep sending the on/off events and updates…
So you’re right, a restart will place the battery device in ‘REQUEST NIF’ until it wakes up but the sensor still operates with the rules etc which is good.
Now to work out why I need to restart to fix the IO ERROR seen in the OpenHab console when socat restarts or ser2net is lost.