Error setting up my z-wave

I have just received my Aeotec Z-Stick 7 Plus dongle in the mail, I’m trying to configure Z-Wave JS and I am getting an error when I try to add the integration so I can add devices. Specifically I click Add Integration > Check the box for “Use the Z-Wave JS Supervisor Add-on” and click Submit> then I get an error which reads “Failed to connect”. I’m not familiar with Z-Wave, but I have an extensive-ish zigbee network. I only have one z-wave device (thermostat) so I’m not interested in adding the UI or other convenience add-ons which will be wasted overhead in my use case. I’ve added my log output from z-wave js below

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/config.sh
[17:26:12] INFO: Both 'network_key' and 's0_legacy_key' are set and match. All ok.
[17:26:14] INFO: Soft-reset set to automatic
[17:26:14] INFO: Virtual Machine not detected, enabling soft-reset
cont-init: info: /etc/cont-init.d/config.sh exited 0
cont-init: info: running /etc/cont-init.d/structure.sh
cont-init: info: /etc/cont-init.d/structure.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun zwave_js (no readiness notification)
s6-rc: info: service legacy-services successfully started
[17:26:16] INFO: Successfully send discovery information to Home Assistant.
2023-11-10T22:26:19.501Z DRIVER   ███████╗        ██╗    ██╗  █████╗  ██╗   ██╗ ███████╗          ██╗ ███████╗
                                  ╚══███╔╝        ██║    ██║ ██╔══██╗ ██║   ██║ ██╔════╝          ██║ ██╔════╝
                                    ███╔╝  █████╗ ██║ █╗ ██║ ███████║ ██║   ██║ █████╗            ██║ ███████╗
                                   ███╔╝   ╚════╝ ██║███╗██║ ██╔══██║ ╚██╗ ██╔╝ ██╔══╝       ██   ██║ ╚════██║
                                  ███████╗        ╚███╔███╔╝ ██║  ██║  ╚████╔╝  ███████╗     ╚█████╔╝ ███████║
                                  ╚══════╝         ╚══╝╚══╝  ╚═╝  ╚═╝   ╚═══╝   ╚══════╝      ╚════╝  ╚══════╝
2023-11-10T22:26:19.511Z DRIVER   version 12.3.0
2023-11-10T22:26:19.513Z DRIVER   

<--- Last few GCs --->

[208:0x7f8a6cb340]  1007975 ms: Scavenge 1888.9 (1924.5) -> 1887.4 (1924.7) MB, 6.1 / 0.0 ms  (average mu = 0.255, current mu = 0.171) task; 
[208:0x7f8a6cb340]  1008034 ms: Scavenge 1889.0 (1924.7) -> 1887.5 (1924.7) MB, 4.0 / 0.0 ms  (average mu = 0.255, current mu = 0.171) task; 
[208:0x7f8a6cb340]  1008084 ms: Scavenge 1889.0 (1924.7) -> 1887.6 (1928.7) MB, 4.7 / 0.0 ms  (average mu = 0.255, current mu = 0.171) task; 


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
[22:43:10] INFO: Service restart after closing
[17:43:12] INFO: Successfully send discovery information to Home Assistant.
2023-11-10T22:43:15.766Z DRIVER   ███████╗        ██╗    ██╗  █████╗  ██╗   ██╗ ███████╗          ██╗ ███████╗
                                  ╚══███╔╝        ██║    ██║ ██╔══██╗ ██║   ██║ ██╔════╝          ██║ ██╔════╝
                                    ███╔╝  █████╗ ██║ █╗ ██║ ███████║ ██║   ██║ █████╗            ██║ ███████╗
                                   ███╔╝   ╚════╝ ██║███╗██║ ██╔══██║ ╚██╗ ██╔╝ ██╔══╝       ██   ██║ ╚════██║
                                  ███████╗        ╚███╔███╔╝ ██║  ██║  ╚████╔╝  ███████╗     ╚█████╔╝ ███████║
                                  ╚══════╝         ╚══╝╚══╝  ╚═╝  ╚═╝   ╚═══╝   ╚══════╝      ╚════╝  ╚══════╝
2023-11-10T22:43:15.776Z DRIVER   version 12.3.0
2023-11-10T22:43:15.778Z DRIVER   

<--- Last few GCs --->

[275:0x7f99e09340]   822353 ms: Scavenge 1889.7 (1927.7) -> 1886.7 (1927.7) MB, 9.6 / 0.0 ms  (average mu = 0.335, current mu = 0.318) task; 
[275:0x7f99e09340]   822435 ms: Scavenge 1889.8 (1927.7) -> 1886.9 (1928.0) MB, 10.8 / 0.0 ms  (average mu = 0.335, current mu = 0.318) task; 
[275:0x7f99e09340]   822510 ms: Scavenge 1890.0 (1928.0) -> 1887.0 (1928.2) MB, 10.2 / 0.0 ms  (average mu = 0.335, current mu = 0.318) task; 


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
[22:57:05] INFO: Service restart after closing
[17:57:07] INFO: Successfully send discovery information to Home Assistant.
2023-11-10T22:57:10.640Z DRIVER   ███████╗        ██╗    ██╗  █████╗  ██╗   ██╗ ███████╗          ██╗ ███████╗
                                  ╚══███╔╝        ██║    ██║ ██╔══██╗ ██║   ██║ ██╔════╝          ██║ ██╔════╝
                                    ███╔╝  █████╗ ██║ █╗ ██║ ███████║ ██║   ██║ █████╗            ██║ ███████╗
                                   ███╔╝   ╚════╝ ██║███╗██║ ██╔══██║ ╚██╗ ██╔╝ ██╔══╝       ██   ██║ ╚════██║
                                  ███████╗        ╚███╔███╔╝ ██║  ██║  ╚████╔╝  ███████╗     ╚█████╔╝ ███████║
                                  ╚══════╝         ╚══╝╚══╝  ╚═╝  ╚═╝   ╚═══╝   ╚══════╝      ╚════╝  ╚══════╝
2023-11-10T22:57:10.649Z DRIVER   version 12.3.0
2023-11-10T22:57:10.652Z DRIVER   

Not enough RAM on the host?

I checked that actually, Pi4B 4GB version and I’m only using around 40% of the RAM at any given time.

Update, I restarted the add-on and I still get the failed to connect message but the add on log output doesn’t seem to have any error messages now

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/config.sh
[19:03:52] INFO: Both 'network_key' and 's0_legacy_key' are set and match. All ok.
[19:03:55] INFO: Soft-reset set to automatic
[19:03:55] INFO: Virtual Machine not detected, enabling soft-reset
cont-init: info: /etc/cont-init.d/config.sh exited 0
cont-init: info: running /etc/cont-init.d/structure.sh
cont-init: info: /etc/cont-init.d/structure.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun zwave_js (no readiness notification)
s6-rc: info: service legacy-services successfully started
[19:03:57] INFO: Successfully send discovery information to Home Assistant.
2023-11-11T00:04:00.411Z DRIVER   ███████╗        ██╗    ██╗  █████╗  ██╗   ██╗ ███████╗          ██╗ ███████╗
                                  ╚══███╔╝        ██║    ██║ ██╔══██╗ ██║   ██║ ██╔════╝          ██║ ██╔════╝
                                    ███╔╝  █████╗ ██║ █╗ ██║ ███████║ ██║   ██║ █████╗            ██║ ███████╗
                                   ███╔╝   ╚════╝ ██║███╗██║ ██╔══██║ ╚██╗ ██╔╝ ██╔══╝       ██   ██║ ╚════██║
                                  ███████╗        ╚███╔███╔╝ ██║  ██║  ╚████╔╝  ███████╗     ╚█████╔╝ ███████║
                                  ╚══════╝         ╚══╝╚══╝  ╚═╝  ╚═╝   ╚═══╝   ╚══════╝      ╚════╝  ╚══════╝
2023-11-11T00:04:00.422Z DRIVER   version 12.3.0
2023-11-11T00:04:00.423Z DRIVER   

OK, so I’ve been watching the memory use for a while now and I’m noticing a “trend”
Memory use Zwave JS

OK, turns out I’m an idiot and had selected the wrong USB device, everything seems to be working fine now.

2 Likes