Z-Wave JS and SkyConnect integrations both stopped working

Both Z-Wave JS and SkyConnect v1.0 have started failing to setup.

I think this must have occurred after an update. But I wasn’t paying close attention and I’m not certain.

I haven’t had time to troubleshoot so I have applied a couple of updates since this problem started. Neither update seemed to help.

I’m using a SkyConnect stick and the Aeotech zwave USB stick.

Z-Wave JS error:

Retrying setup: Failed to connect: Cannot connect to host a0d7b954-zwavejs2mqtt:3000 ssl:default [Connect call failed ('172.30.33.0', 3000)]

SkyConnect logs:

2023-04-05 19:52:25.461 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry SkyConnect v1.0 for zha
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 122, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 205, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 191, in new
    await app.startup(auto_form=auto_form)
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 165, in startup
    await self.connect()
  File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 125, in connect
    self._ezsp = await bellows.ezsp.EZSP.initialize(self.config)
  File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 106, in initialize
    await ezsp._startup_reset()
  File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 97, in _startup_reset
    await self.reset()
  File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 126, in reset
    await self._gw.reset()
asyncio.exceptions.CancelledError
2023-04-05 19:56:57.135 ERROR (MainThread) [frontend.js.latest.202304050] http://homeassistant.local:8123/hacsfiles/kiosk-mode/kiosk-mode.js?hacstag=497319128173:57:96 Uncaught TypeError: Cannot read properties of null (reading 'querySelector')
2023-04-05 19:57:09.295 ERROR (MainThread) [frontend.js.latest.202304050] http://homeassistant.local:8123/hacsfiles/kiosk-mode/kiosk-mode.js?hacstag=497319128173:13:44 Uncaught TypeError: Cannot read properties of null (reading 'shadowRoot')
2023-04-05 20:02:37.633 WARNING (Thread-5) [pychromecast.socket_client] [Roof WiFi(192.168.86.147):8009] Heartbeat timeout, resetting connection

Recommendations for how to proceed? Should I try rolling back to an old version?

For Z-Wave JS UI, check the add-on logs or the ZUI logs.

The add-on logs for Z-Wave JS is full of:

2023-04-06T21:17:30.403Z DRIVER   ███████╗ ██╗    ██╗  █████╗  ██╗   ██╗ ███████╗             ██╗ ███████╗
                                  ╚══███╔╝ ██║    ██║ ██╔══██╗ ██║   ██║ ██╔════╝             ██║ ██╔════╝
                                    ███╔╝  ██║ █╗ ██║ ███████║ ██║   ██║ █████╗   █████╗      ██║ ███████╗
                                   ███╔╝   ██║███╗██║ ██╔══██║ ╚██╗ ██╔╝ ██╔══╝   ╚════╝ ██   ██║ ╚════██║
                                  ███████╗ ╚███╔███╔╝ ██║  ██║  ╚████╔╝  ███████╗        ╚█████╔╝ ███████║
                                  ╚══════╝  ╚══╝╚══╝  ╚═╝  ╚═╝   ╚═══╝   ╚══════╝         ╚════╝  ╚══════╝
2023-04-06T21:17:30.404Z DRIVER   version 10.13.0
2023-04-06T21:17:30.404Z DRIVER   
2023-04-06 17:17:30.413 INFO Z-WAVE: Zwavejs usage statistics ENABLED
2023-04-06 17:17:30.413 WARN Z-WAVE: Zwavejs driver is not ready yet, statistics will be enabled on driver initialization
2023-04-06T21:17:31.419Z CONFIG   version 10.13.0
2023-04-06T21:17:32.444Z CNTRLR   querying controller IDs...
2023-04-06T21:17:33.455Z CNTRLR   Failed to execute controller command after 1/3 attempts. Scheduling next try i
                                  n 100 ms.
2023-04-06T21:17:34.561Z CNTRLR   Failed to execute controller command after 2/3 attempts. Scheduling next try i
                                  n 1100 ms.
2023-04-06T21:17:36.672Z DRIVER   Failed to initialize the driver: ZWaveError: Timeout while waiting for an ACK 
                                  from the controller (ZW0200)
                                      at Driver.sendMessage (/opt/node_modules/zwave-js/src/lib/driver/Driver.ts
                                  :4181:23)
                                      at ZWaveController.identify (/opt/node_modules/zwave-js/src/lib/controller
                                  /Controller.ts:967:33)
                                      at Driver.initializeControllerAndNodes (/opt/node_modules/zwave-js/src/lib
                                  /driver/Driver.ts:1291:26)
                                      at Immediate.<anonymous> (/opt/node_modules/zwave-js/src/lib/driver/Driver
                                  .ts:1097:16)
2023-04-06 17:17:36.673 INFO Z-WAVE-SERVER: Server closed
2023-04-06 17:17:36.675 INFO Z-WAVE: Client closed
2023-04-06 17:17:36.681 INFO Z-WAVE: Connecting to /dev/ttyUSB0

Is it possible the USB controller on my Raspberry Pi has died? Like I don’t understand what could cause both to stop working simultaneously.

Are you sure the device paths of the two sticks didn’t swap? Using the raw device paths like this is highly discouraged. You should be using /dev/serial/by-id paths so they cannot change.

Aha!

Ok I switched the USB path over to the id for the zwave controller and rebooted and that fixed both zwave and skyconnect.

It’s not clear to me if zwave pointing at the wrong usb device was somehow messing up skyconnect, or if doing a full machine reboot is what fixed skyconnect.

Thank you very much!