ZWAVE Stick Hass.io Installation Add Node Problem

Hi,

again someone with a zwave configuration problem :slight_smile:
Setup:

  • Raspy 2 with Hass.io
  • Aeotec Z-Stick Series 5
  • Dresden Electronic ConBee

My Conbee Stick is /dev/ttyUSB0
My Aeotec Stick is /dev/ttyAMA0

Conbee is up and running!

With the Integration ZWAVE I setup the Stick.
I did this yesterday. No errors were displayed.
Today I setup my Fibaro Roller Shutter 2.
Afterward is started the “Add Node”.
I got this error in the system Log

Error handling message: {'type': 'call_service', 'domain': 'zwave', 'service': 'add_node', 'service_data': {}, 'id': 18}

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/websocket_api/decorators.py", line 16, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/websocket_api/commands.py", line 148, in handle_call_service
    connection.context(msg))
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1121, in async_call
    self._execute_service(handler, service_call))
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1145, in _execute_service
    await self._hass.async_add_executor_job(handler.func, service_call)
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/zwave/__init__.py", line 414, in add_node
    network.controller.add_node()
  File "/usr/local/lib/python3.6/site-packages/openzwave/controller.py", line 692, in add_node
    return self._network.manager.addNode(self.home_id, doSecurity)
  File "src-lib/libopenzwave/libopenzwave.pyx", line 4287, in libopenzwave.PyManager.addNode
TypeError: an integer is required

Before that there was a

Sun Dec 23 2018 15:51:52 GMT+0100

Z-Wave not ready after 300 seconds, continuing anyway

This is the OZW_Log.txt

2018-12-23 14:46:28.824 Always, OpenZwave Version 1.4.3254 Starting Up
2018-12-23 14:46:51.216 Info, Setting Up Provided Network Key for Secure Communications
2018-12-23 14:46:51.217 Info, mgr,     Added driver for controller /dev/ttyAMA0
2018-12-23 14:46:51.217 Info,   Opening controller /dev/ttyAMA0
2018-12-23 14:46:51.218 Info, Trying to open serial port /dev/ttyAMA0 (attempt 1)
2018-12-23 14:46:51.219 Info, Serial port /dev/ttyAMA0 opened (attempt 1)
2018-12-23 14:46:51.220 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2018-12-23 14:46:51.221 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2018-12-23 14:46:51.221 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2018-12-23 14:46:51.223 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2018-12-23 14:46:51.223 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2018-12-23 14:46:51.224 Detail, 
2018-12-23 14:46:51.224 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x15) - FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2018-12-23 14:46:52.226 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2018-12-23 14:46:52.228 Detail, contrlr, Removing current message
2018-12-23 14:46:52.228 Detail, contrlr, Notification: Notification - TimeOut
2018-12-23 14:46:52.231 Detail, 
2018-12-23 14:46:52.231 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x20) - FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2018-12-23 14:46:53.232 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2018-12-23 14:46:53.232 Detail, contrlr, Removing current message
2018-12-23 14:46:53.232 Detail, contrlr, Notification: Notification - TimeOut
2018-12-23 14:46:53.236 Detail, 
2018-12-23 14:46:53.236 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x05) - FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2018-12-23 14:46:54.237 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2018-12-23 14:46:54.237 Detail, contrlr, Removing current message
2018-12-23 14:46:54.237 Detail, contrlr, Notification: Notification - TimeOut
2018-12-23 14:46:54.243 Detail, 
2018-12-23 14:46:54.244 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x07) - FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2018-12-23 14:46:55.244 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2018-12-23 14:46:55.245 Detail, contrlr, Removing current message
2018-12-23 14:46:55.245 Detail, contrlr, Notification: Notification - TimeOut
2018-12-23 14:46:55.251 Detail, 
2018-12-23 14:46:55.252 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x56) - FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2018-12-23 14:46:56.253 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2018-12-23 14:46:56.253 Detail, contrlr, Removing current message
2018-12-23 14:46:56.254 Detail, contrlr, Notification: Notification - TimeOut

In the meantime I restarted the server multiple times.
I also deleted the integration and add ZWAVE with the path to the configuration.yaml. No diffrence there.
So I went back to the Integration Setup.

I don’t know what I did wrong.

Are you sure the zwave stick isn’t /dev/ttyACM0

1 Like

Thanks!
At my inital try i worked with /dev/ttyACM0 but the integration site didn’t like it.
Maybe I had a typo.
Now it works fine!

1 Like

I did a factory reset on my z-stick to start over completely. I managed to add two nodes to the z-wave network through the hass.io gui, but after that I haven’t been able to add any more nodes, not through gui nor through pressing the z-stick button for inclusion. The 3rd node I am trying to add is a Nodon smart plug of the same kind as the two I managed to add. I have tried to add other z-wave devices as well, but no luck there either.

Something seems to be seriously broken here. This is what shows in the ozw_log after trying to add a node from the gui:

2018-12-29 14:36:46.819 Info,          Node query processing complete.
2018-12-29 14:36:46.819 Detail, Node001, Notification: NodeQueriesComplete
2018-12-29 14:36:46.822 Detail, contrlr, Notification: AllNodesQueried
2018-12-29 14:37:23.105 Detail, Queuing (Controller) Add Device
2018-12-29 14:37:23.105 Info, Add Device
2018-12-29 14:37:23.106 Detail, contrlr, Queuing (Command) ControllerCommand_AddDevice: 0x01, 0x05, 0x00, 0x4a, 0xc1, 0x0a, 0x7b
2018-12-29 14:37:23.106 Detail, Notification: ControllerCommand - Starting
2018-12-29 14:37:23.107 Detail,
2018-12-29 14:37:23.107 Info, contrlr, Sending (Command) message (Callback ID=0x0a, Expected Reply=0x4a) - ControllerCommand_AddDevice: 0x01, 0x05, 0x00, 0x4a, 0xc1, 0x0a, 0x7b
2018-12-29 14:37:23.111 Detail, contrlr,   Received: 0x01, 0x07, 0x00, 0x4a, 0x0a, 0x01, 0x00, 0x00, 0xb9
2018-12-29 14:37:23.111 Detail,
2018-12-29 14:37:23.111 Info, contrlr, FUNC_ID_ZW_ADD_NODE_TO_NETWORK:
2018-12-29 14:37:23.111 Info, contrlr, ADD_NODE_STATUS_LEARN_READY
2018-12-29 14:37:23.111 Detail, Node001,   Expected callbackId was received
2018-12-29 14:37:23.111 Detail, Node001,   Expected reply was received
2018-12-29 14:37:23.111 Detail, Node001,   Message transaction complete
2018-12-29 14:37:23.111 Detail,
2018-12-29 14:37:23.112 Detail, contrlr, Removing current message
2018-12-29 14:37:23.112 Detail, Notification: ControllerCommand - Waiting
2018-12-29 14:37:23.117 Info, WriteNextMsg Controller nothing to do

@tomoqv If a node is already registered it will not add again. You may have reset your stick which will have removed the nodes from the stick, but the nodes will still have their registration and will not accept a new pairing. Go through the remove node process from your devices before adding. I go through the remove node process even with new fresh out of the box devices. The removal process sometimes takes more than one go.

Thanks, didn’t think of that. It is strange though, that two of the nodes that were previously registered accepted to be included again.

Sadly, this will make starting over fresh with my z-wave network a real pain.

Does this mean I need to restore my z-stick backup to one of my z-sticks and then go around and exclude all of my nodes or is there a faster way?

You just need to hit Remove Node and then do whatever the device uses for include/remove. You can then immediately do the Add Node and flip the switch, push the button etc. Only a few seconds longer than just adding a node. No need to restore the stick

The fibaro roller shutters have a hardware reset aswell. In my case it was press the B Button for 15 seconds, release it and press it again. Afterwards they are reseted and they are in the automatic paring mode again.
Look at the manual of your devices for a similiar reset.