[libopenzwave] notif_callback exception : notification.GetType

Hi,

I am currently attempting to set up my home assistant on a Windows machine.(Still debating whether I’m too brave and I should use a pi). I managed to build phyton_openzwave from source code (the latest from github); I’m using a nortek USB stick and the Silicon labs CP210x USB to UART Bridge drivers.

when I boot up hass I get the following errors relating to zwave, see below. notification.GetType() returns the value 31. Which is clearly out of range as an index to the array PyNotifications. Can someone please advise me on how to get ZWAVE & ZHA networks of ongoing? I jumped through a number hoops, I’m more than sure I made a mistake somewhere.

Thank you,
E.

2019-12-06 03:36:43 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.zha
2019-12-06 03:36:43 INFO (MainThread) [homeassistant.components.switch] Setting up switch.zha
2019-12-06 03:36:46 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 7.58s
2019-12-06 03:36:46 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2019-12-06 03:36:46 INFO (SyncWorker_7) [homeassistant.components.zwave] Starting Z-Wave network…
2019-12-06 03:36:46 INFO (SyncWorker_6) [homeassistant.components.zeroconf] Starting Zeroconf broadcast
2019-12-06 03:36:46 INFO (MainThread) [homeassistant.core] Timer:starting
2019-12-06 03:36:46 INFO (SyncWorker_7) [openzwave] Start Openzwave network.
2019-12-06 03:36:47 ERROR (Dummy-2) [libopenzwave] notif_callback exception : notification.GetType
Traceback (most recent call last):
File “src-lib\libopenzwave\libopenzwave.pyx”, line 512, in libopenzwave.notif_callback
IndexError: list index out of range
UnboundLocalError: local variable ‘n’ referenced before assignment
Exception ignored in: ‘libopenzwave.notif_callback’
UnboundLocalError: local variable ‘n’ referenced before assignment
2019-12-06 03:36:47 INFO (Dummy-2) [openzwave] Driver ready using library Static Controller version Z-Wave 4.05
2019-12-06 03:36:47 INFO (Dummy-2) [openzwave] home_id 0xf0eae64d, controller node id is 1
2019-12-06 03:36:47 INFO (Dummy-2) [homeassistant.components.zwave] Z-Wave network is complete. All nodes on the network have been queried
2019-12-06 03:36:48 INFO (MainThread) [homeassistant.components.zwave] Z-Wave ready after 1 seconds
2019-12-06 03:36:48 INFO (SyncWorker_3) [homeassistant.components.zwave] Z-Wave polling interval set to 60000 ms
2019-12-06 03:36:53 INFO (SyncWorker_5) [homeassistant.loader] Loaded axis from homeassistant.components.axis
2019-12-06 03:37:29 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
Traceback (most recent call last):
File “C:\Program Files\Python38\lib\asyncio\events.py”, line 81, in _run
self._context.run(self._callback, *self._args)
File “C:\Program Files\Python38\lib\asyncio\proactor_events.py”, line 162, in _call_connection_lost
self._sock.shutdown(socket.SHUT_RDWR)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

the exception isn’t fatal, but when i try to add a node, i get this in the log? what’s going wrong

019-12-06 23:08:20 INFO (SyncWorker_6) [homeassistant.components.zwave] Z-Wave add_node_secure have been initialized
2019-12-06 23:08:21 INFO (SyncWorker_2) [homeassistant.components.zwave] Z-Wave add_node_secure have been initialized
2019-12-06 23:08:21 WARNING (SyncWorker_2) [openzwave] Can’t lock controller for command : add_node
2019-12-06 23:08:34 INFO (SyncWorker_8) [somecomfort] Session refreshed
2019-12-06 23:09:31 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
Traceback (most recent call last):
File “C:\Program Files\Python38\lib\asyncio\events.py”, line 81, in _run
self._context.run(self._callback, *self._args)
File “C:\Program Files\Python38\lib\asyncio\proactor_events.py”, line 162, in _call_connection_lost
self._sock.shutdown(socket.SHUT_RDWR)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
2019-12-06 23:09:31 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
Traceback (most recent call last):
File “C:\Program Files\Python38\lib\asyncio\events.py”, line 81, in _run
self._context.run(self._callback, *self._args)
File “C:\Program Files\Python38\lib\asyncio\proactor_events.py”, line 162, in _call_connection_lost
self._sock.shutdown(socket.SHUT_RDWR)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

oops: please ignore the tcp/socket error. that’s unrelated but a known networking/firewall issue

You may be better off installing Home Assistant in a virtual machine on your Windows box.
Almost nobody here as far as I know works with Windows and zwave directly.