OpenZWave not working after update

Tags: #<Tag:0x00007f738781dab0>

Hey guys, I’ve just updated to the openZWave integration to version 0.5.0 and have lost all my devices.

I notice the Serial Port has change from a text box to a drop down box. I can not longer select the device-by-id option (I did have have it set to /dev/serial/by-id/usb-0658_0200-if00). There are three options now:

  • ttyACM0;
  • ttyACM1; and
  • ttyS4.

I am not sure which one to use. Selecting ttyACM0 or ttyACM1 results in “Disconnected” being displayed in the openZWave integration. I tried ttyS4 and it displayed an opening bar but never opened and now it too just displays “Disconnected”.

Now I just get “Something went wrong, connection is closed”. I have restarted the integration, no joy. Just disconnects all the time.

I unistalled and reinstalled. Start via the OpenZWave dashboard but when I attempt to open the app via the side bar it tells me the “add-on is not running. Please start if first”.

All devices are Unavailable.

Anyone with any advice? I would sure appreciate it.

1 Like

I notice the Serial Port has change from a text box to a drop down box.

Could you provide a screen shot of what you are trying to do? This sounds like you are trying to use a serial port with the ozw-admin tool, which wouldn’t work.

It won’t display anymore.

Screen Shot 2020-07-09 at 10.53.43

I’ll start the add on, try to access the web UI and repeat.

Please post the output from the Logs tab for the addon if it isn’t starting

Not sure exactly what I should be looking for, but here’s the log.

[20200709 11:05:17.990 AEST] [ozw.mqtt.commands] [debug]: Creating Subscription for  "removenode" 
[20200709 11:05:17.990 AEST] [ozw.mqtt.commands] [debug]: Subscription Setup for  QMqttTopicFilter("OpenZWave/1/command/removenode/") 
[20200709 11:05:17.990 AEST] [ozw.mqtt.commands] [debug]: Creating Subscription for  "replacefailednode" 
[20200709 11:05:17.990 AEST] [ozw.mqtt.commands] [debug]: Subscription Setup for  QMqttTopicFilter("OpenZWave/1/command/replacefailednode/") 
[20200709 11:05:17.990 AEST] [ozw.mqtt.commands] [debug]: Creating Subscription for  "requestallconfigparam" 
[20200709 11:05:17.990 AEST] [ozw.mqtt.commands] [debug]: Subscription Setup for  QMqttTopicFilter("OpenZWave/1/command/requestallconfigparam/") 
[20200709 11:05:17.990 AEST] [ozw.mqtt.commands] [debug]: Creating Subscription for  "requestconfigparam" 
[20200709 11:05:17.990 AEST] [ozw.mqtt.commands] [debug]: Subscription Setup for  QMqttTopicFilter("OpenZWave/1/command/requestconfigparam/") 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Creating Subscription for  "requestnetworkupdate" 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Subscription Setup for  QMqttTopicFilter("OpenZWave/1/command/requestnetworkupdate/") 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Creating Subscription for  "requestnodedynamic" 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Subscription Setup for  QMqttTopicFilter("OpenZWave/1/command/requestnodedynamic/") 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Creating Subscription for  "requestnodeneighborupdate" 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Subscription Setup for  QMqttTopicFilter("OpenZWave/1/command/requestnodeneighborupdate/") 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Creating Subscription for  "requestnodestate" 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Subscription Setup for  QMqttTopicFilter("OpenZWave/1/command/requestnodestate/") 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Creating Subscription for  "sendnodeinformation" 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Subscription Setup for  QMqttTopicFilter("OpenZWave/1/command/sendnodeinformation/") 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Creating Subscription for  "setpollinterval" 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Subscription Setup for  QMqttTopicFilter("OpenZWave/1/command/setpollinterval/") 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Creating Subscription for  "setvalue" 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Subscription Setup for  QMqttTopicFilter("OpenZWave/1/command/setvalue/") 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Creating Subscription for  "softresetcontroller" 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Subscription Setup for  QMqttTopicFilter("OpenZWave/1/command/softresetcontroller/") 
[20200709 11:05:17.991 AEST] [ozw.mqtt.commands] [debug]: Creating Subscription for  "syncronisenodeneighbors" 
[20200709 11:05:17.992 AEST] [ozw.mqtt.commands] [debug]: Subscription Setup for  QMqttTopicFilter("OpenZWave/1/command/syncronisenodeneighbors/") 
[20200709 11:05:17.992 AEST] [ozw.mqtt.commands] [debug]: Creating Subscription for  "testnetwork" 
[20200709 11:05:17.992 AEST] [ozw.mqtt.commands] [debug]: Subscription Setup for  QMqttTopicFilter("OpenZWave/1/command/testnetwork/") 
[20200709 11:05:17.992 AEST] [ozw.mqtt.commands] [debug]: Creating Subscription for  "testnetworknode" 
[20200709 11:05:17.992 AEST] [ozw.mqtt.commands] [debug]: Subscription Setup for  QMqttTopicFilter("OpenZWave/1/command/testnetworknode/") 
[20200709 11:05:18.033 AEST] [ozw.mqtt.publisher] [debug]: Topics:  "OpenZWave/1/status/" 
[20200709 11:05:18.033 AEST] [ozw.mqtt.publisher] [warning]: Another ozwdaemon is running for Instance  1 
[20200709 11:05:18.033 AEST] [ozw.mqtt.publisher] [warning]: If not, please clean up the MQTT Topic:  "OpenZWave/1/status/" 
[20200709 11:05:18.033 AEST] [ozw.mqtt.publisher] [warning]: "{\n    \"OpenZWave_Version\": \"1.6.1201\",\n    \"OZWDaemon_Version\": \"0.1.0\",\n    \"QTOpenZWave_Version\": \"1.2.0\",\n    \"QT_Version\": \"5.14.2\",\n    \"Status\": \"driverRemoved\",\n    \"TimeStamp\": 1594256656,\n    \"homeID\": 0\n}" 
[20200709 11:05:18.033 AEST] [ozw.library] [debug]: Detail - Node: 0 Notification: DriverRemoved 
[20200709 11:05:18.033 AEST] [ozw.notifications] [debug]: Notification pvt_driverRemoved  0 Thread:  0x7fb258e85d48 
[20200709 11:05:18.034 AEST] [ozw.mqtt.publisher] [debug]: Publishing Event stopped 
[20200709 11:05:18.034 AEST] [ozw.mqtt.publisher] [debug]: Publishing Event driverRemoved: 0 
[20200709 11:05:18.034 AEST] [ozw.library] [debug]: Always - Node: 0 *************************************************************************** 
[20200709 11:05:18.034 AEST] [ozw.library] [debug]: Always - Node: 0 *********************  Cumulative Network Statistics  ********************* 
[20200709 11:05:18.034 AEST] [ozw.library] [debug]: Always - Node: 0 *** General 
[20200709 11:05:18.034 AEST] [ozw.library] [debug]: Always - Node: 0 Driver run time: . .  . 0 days, 0 hours, 0 minutes 
[20200709 11:05:18.034 AEST] [ozw.library] [debug]: Always - Node: 0 Frames processed: . . . . . . . . . . . . . . . . . . . . 0 
[20200709 11:05:18.034 AEST] [ozw.library] [debug]: Always - Node: 0 Total messages successfully received: . . . . . . . . . . 0 
[20200709 11:05:18.034 AEST] [ozw.library] [debug]: Always - Node: 0 Total Messages successfully sent: . . . . . . . . . . . . 0 
[20200709 11:05:18.034 AEST] [ozw.library] [debug]: Always - Node: 0 ACKs received from controller:  . . . . . . . . . . . . . 0 
[20200709 11:05:18.034 AEST] [ozw.library] [debug]: Always - Node: 0 *** Errors 
[20200709 11:05:18.034 AEST] [ozw.library] [debug]: Always - Node: 0 Unsolicited messages received while waiting for ACK:  . . 0 
[20200709 11:05:18.035 AEST] [ozw.library] [debug]: Always - Node: 0 Reads aborted due to timeouts:  . . . . . . . . . . . . . 0 
[20200709 11:05:18.035 AEST] [ozw.library] [debug]: Always - Node: 0 Bad checksum errors:  . . . . . . . . . . . . . . . . . . 0 
[20200709 11:05:18.035 AEST] [ozw.library] [debug]: Always - Node: 0 CANs received from controller:  . . . . . . . . . . . . . 0 
[20200709 11:05:18.035 AEST] [ozw.library] [debug]: Always - Node: 0 NAKs received from controller:  . . . . . . . . . . . . . 0 
[20200709 11:05:18.035 AEST] [ozw.library] [debug]: Always - Node: 0 Out of frame data flow errors:  . . . . . . . . . . . . . 0 
[20200709 11:05:18.035 AEST] [ozw.library] [debug]: Always - Node: 0 Messages retransmitted: . . . . . . . . . . . . . . . . . 0 
[20200709 11:05:18.035 AEST] [ozw.library] [debug]: Always - Node: 0 Messages dropped and not delivered: . . . . . . . . . . . 0 
[20200709 11:05:18.035 AEST] [ozw.library] [debug]: Always - Node: 0 *************************************************************************** 
[20200709 11:05:18.035 AEST] [ozw.library] [warning]: Warning - Node: 0 WARNING: Tried to write driver config with no home ID set 
[20200709 11:05:18.035 AEST] [ozw.library] [info]: Info - Node: 0 Stopping DNSThread 
ozwadmin: Settings Path:  "/root/.config/OpenZWave/ozw-admin.conf"
ozwadmin: Using Saved Network Cache Size: 1000
QT_MESSAGE_PATTERN: %{backtrace} is not supported by this Qt build
[20200709 11:05:18.140 AEST] [ozwadmin] [info]: OZWCore Initilized QTOpenZwave(0x7f7462d4ab20) QTOZWManager(0x55b70c96dba0) 
[20200709 11:05:18.171 AEST] [default] [warning]: QVncServer created on port 5900 
[20200709 11:05:18.515 AEST] [ozw.library] [debug]: Debug - Node: 0 Downloads Remaining: 0 
[20200709 11:05:18.515 AEST] [ozw.library] [info]: Info - Node: 0 ManufacturerSpecificDB Initialized 
[11:05:18] INFO: Starting websockify...
[11:05:19] INFO: Starting ozw-admin...
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
ozwadmin: Settings Path is at  "/root/.config/OpenZWave/ozw-admin.conf"
ozwadmin: Checking  "/data/ozw/config"  for manufacturer_specific.xml
ozwadmin: Checking  "/data/ozw/config"  for options.xml
ozwadmin: DBPath:  "/data/ozw/config/"
ozwadmin: userPath:  "/data/ozw/config/"
ozwadmin: Settings Path:  "/root/.config/OpenZWave/ozw-admin.conf"
ozwadmin: Using Saved Network Cache Size: 1000
QT_MESSAGE_PATTERN: %{backtrace} is not supported by this Qt build
[20200709 11:05:19.183 AEST] [ozwadmin] [info]: OZWCore Initilized QTOpenZwave(0x7f30675dbbc0) QTOZWManager(0x55da5f5f2360) 
[20200709 11:05:19.220 AEST] [default] [warning]: QVncServer created on port 5900 
WebSocket server settings:
  - Listen on :8099
  - Web server. Web root: /usr/share/novnc
  - No SSL/TLS support (no cert file)
  - proxying from :8099 to 127.0.0.1:5900
[20200709 11:05:20.517 AEST] [ozw.library] [info]: Info - Node: 0 mgr,     Driver for controller /dev/ttyACM1 removed 
[20200709 11:05:20.517 AEST] [ozw.manager] [debug]: Driver Removed for  "/dev/ttyACM1" 
[20200709 11:05:20.517 AEST] [ozw.manager] [debug]: OZW Serial Port Closed 
[20200709 11:05:20.517 AEST] [ozw.daemon] [info]: Shutting Down  "ozwdaemon"  Version:  "0.1.0" 
[20200709 11:05:20.517 AEST] [ozw.daemon] [info]: OpenZWave Version:  "1.6.1201" 
[20200709 11:05:20.517 AEST] [ozw.daemon] [info]: QT-OpenZWave Version:  "1.2.0" 
[20200709 11:05:20.517 AEST] [ozw.daemon] [info]: QT Version:  5.14.2 
1594256720: Client qt-openzwave-1 disconnected.
In exit
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
s6-svwait: fatal: supervisor died
1594256720: mosquitto version 1.6.9 terminating
1594256720: Saving in-memory database to /data/mosquitto.db.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Any ideas?

The logs have this explanation:

[20200709 11:05:18.033 AEST] [ozw.mqtt.publisher] [warning]: Another ozwdaemon is running for Instance  1 
[20200709 11:05:18.033 AEST] [ozw.mqtt.publisher] [warning]: If not, please clean up the MQTT Topic:  "OpenZWave/1/status/" 
[20200709 11:05:18.033 AEST] [ozw.mqtt.publisher] [warning]: "{\n    \"OpenZWave_Version\": \"1.6.1201\",\n    \"OZWDaemon_Version\": \"0.1.0\",\n    \"QTOpenZWave_Version\": \"1.2.0\",\n    \"QT_Version\": \"5.14.2\",\n    \"Status\": \"driverRemoved\",\n    \"TimeStamp\": 1594256656,\n    \"homeID\": 0\n}"

Either you have another instance of ozwdaemon already running, or what’s more likely is that something unexpected happened and the MQTT topics were not cleaned up properly. You might be able to restart the MQTT addon to clear it, or you’ll need to use a tool like MQTT Explorer to manually delete the topics. Once the topics are cleared you can restart the ozw addon.

OK, thanks. I’m going to re-install the original z-wave integration and see how that goes. I’ve never quite got the hang of z-wave to be honest, always seems a drama. Thanks again.

Just updated and all seems fine :crossed_fingers:

1 Like

What did you update?

One of my sensors is reporting dodgy values under the standard z-wave. Its cold, but it ain’t -17c. I’ll restart MQTT, I’ll give it another go.

Openzwave addon to 0.5.0

Just will not work for me.

I’ve installed, uninstalled, started, re-restarted, cleared MQTT topics, restarted MQTT, rebooted home assistant. Now I am just getting 502: Bad Gateway.

Now I have a blank “Loading” screen. Then it says it’s not running.

Logging? Is usb path correctly?

My configuration:

device: /dev/serial/by-id/usb-0658_0200-if00
network_key: ''

Logs

[16:47:27] INFO: Starting ozw-admin...
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
ozwadmin: Settings Path is at  "/root/.config/OpenZWave/ozw-admin.conf"
ozwadmin: Checking  "/data/ozw/config"  for manufacturer_specific.xml
ozwadmin: Checking  "/data/ozw/config"  for options.xml
ozwadmin: DBPath:  "/data/ozw/config/"
ozwadmin: userPath:  "/data/ozw/config/"
ozwadmin: Settings Path:  "/root/.config/OpenZWave/ozw-admin.conf"
ozwadmin: Using Saved Network Cache Size: 1000
QT_MESSAGE_PATTERN: %{backtrace} is not supported by this Qt build
[20200709 16:47:27.521 AEST] [ozwadmin] [info]: OZWCore Initilized QTOpenZwave(0x7f2fed963bc0) QTOZWManager(0x56117a5f2360) 
[20200709 16:47:27.559 AEST] [default] [warning]: QVncServer created on port 5900 
WebSocket server settings:
  - Listen on :8099
  - Web server. Web root: /usr/share/novnc
  - No SSL/TLS support (no cert file)
  - proxying from :8099 to 127.0.0.1:5900
[20200709 16:47:27.803 AEST] [ozw.library] [debug]: Debug - Node: 0 Downloads Remaining: 0 
[20200709 16:47:27.803 AEST] [ozw.library] [info]: Info - Node: 0 ManufacturerSpecificDB Initialized 
[20200709 16:47:28.061 AEST] [ozw.library] [info]: Info - Node: 0 mgr,     Driver for controller /dev/serial/by-id/usb-0658_0200-if00 removed 
[20200709 16:47:28.061 AEST] [ozw.manager] [debug]: Driver Removed for  "/dev/serial/by-id/usb-0658_0200-if00" 
[20200709 16:47:28.062 AEST] [ozw.manager] [debug]: OZW Serial Port Closed 
[20200709 16:47:28.062 AEST] [ozw.daemon] [info]: Shutting Down  "ozwdaemon"  Version:  "0.1.0" 
[20200709 16:47:28.062 AEST] [ozw.daemon] [info]: OpenZWave Version:  "1.6.1201" 
[20200709 16:47:28.062 AEST] [ozw.daemon] [info]: QT-OpenZWave Version:  "1.2.0" 
[20200709 16:47:28.062 AEST] [ozw.daemon] [info]: QT Version:  5.14.2 
1594277248: Client qt-openzwave-1 disconnected.
In exit
Terminating child 478
Terminating child 477
Process Process-2:
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/site-packages/websockify/websockifyserver.py", line 691, in top_new_client
    client = self.do_handshake(startsock, address)
  File "/usr/lib/python3.8/site-packages/websockify/websockifyserver.py", line 619, in do_handshake
    self.RequestHandlerClass(retsock, address, self)
  File "/usr/lib/python3.8/site-packages/websockify/websockifyserver.py", line 99, in __init__
    SimpleHTTPRequestHandler.__init__(self, req, addr, server)
  File "/usr/lib/python3.8/http/server.py", line 647, in __init__
    super().__init__(*args, **kwargs)
  File "/usr/lib/python3.8/socketserver.py", line 720, in __init__
    self.handle()
  File "/usr/lib/python3.8/site-packages/websockify/websockifyserver.py", line 315, in handle
    SimpleHTTPRequestHandler.handle(self)
  File "/usr/lib/python3.8/http/server.py", line 429, in handle
    self.handle_one_request()
  File "/usr/lib/python3.8/site-packages/websockify/websocketserver.py", line 47, in handle_one_request
    super(WebSocketRequestHandlerMixIn, self).handle_one_request()
  File "/usr/lib/python3.8/http/server.py", line 395, in handle_one_request
    self.raw_requestline = self.rfile.readline(65537)
  File "/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.8/site-packages/websockify/websockifyserver.py", line 683, in do_SIGTERM
    self.terminate()
  File "/usr/lib/python3.8/site-packages/websockify/websockifyserver.py", line 656, in terminate
    raise self.Terminate()
websockify.websockifyserver.WebSockifyServer.Terminate
Process Process-1:
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/site-packages/websockify/websockifyserver.py", line 691, in top_new_client
    client = self.do_handshake(startsock, address)
  File "/usr/lib/python3.8/site-packages/websockify/websockifyserver.py", line 619, in do_handshake
    self.RequestHandlerClass(retsock, address, self)
  File "/usr/lib/python3.8/site-packages/websockify/websockifyserver.py", line 99, in __init__
    SimpleHTTPRequestHandler.__init__(self, req, addr, server)
  File "/usr/lib/python3.8/http/server.py", line 647, in __init__
    super().__init__(*args, **kwargs)
  File "/usr/lib/python3.8/socketserver.py", line 720, in __init__
    self.handle()
  File "/usr/lib/python3.8/site-packages/websockify/websockifyserver.py", line 315, in handle
    SimpleHTTPRequestHandler.handle(self)
  File "/usr/lib/python3.8/http/server.py", line 429, in handle
    self.handle_one_request()
  File "/usr/lib/python3.8/site-packages/websockify/websocketserver.py", line 47, in handle_one_request
    super(WebSocketRequestHandlerMixIn, self).handle_one_request()
  File "/usr/lib/python3.8/http/server.py", line 395, in handle_one_request
    self.raw_requestline = self.rfile.readline(65537)
  File "/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.8/site-packages/websockify/websockifyserver.py", line 683, in do_SIGTERM
    self.terminate()
  File "/usr/lib/python3.8/site-packages/websockify/websockifyserver.py", line 656, in terminate
    raise self.Terminate()
websockify.websockifyserver.WebSockifyServer.Terminate
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
1594277248: mosquitto version 1.6.9 terminating
1594277248: Saving in-memory database to /data/mosquitto.db.
s6-svwait: fatal: supervisor died
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

When you go in hass to:
Supervisor --> system --> hardware do you see the usb device there?

copy that line into you config.

Yup, that’s where I got it from. Works in the ‘standard’ z-wave config:

/dev/serial/by-id/usb-0658_0200-if00

what do you mean with this? screenshot? you can copy and then easily paste in the edit-window

I haven’t been able to get the OpenZWave GUI / web UI to start since.

Bloody z-wave, just endless drama for me.

2 Likes