Switching from Zwave 1.4 (Deprecated) to Zwave JS

I have followed the steps above deleting the old zwave integration, removed the integration in configuration.yaml, deleted all zwave related files in /config and rebooted twice, but the Z-Wave JS integration won’t install.
From my old core.config_entries I have:

"usb_path": "/dev/ttyACM0"
"network_key": null

I am on

HASSOS: 5.12
HASS Core: 2021.3.3

If I leave the network_key blank or if I put “null”, I get the same error message:
Failed to set Z-Wave JS configuration.

Anything I have missed or do I need to?

I opted for the OpenZWave(beta) instead, and the integration completed the installation without fail. Now waiting for nodes to come back up…

Removed integration and started over with Z-Wave JS.

What errors were in your zwave logs?

I have installed the addon through the Supervisor Official Addons, and it has started, but I can’t see it in integrations. No OZW log file yet.

When I try to add the integration now, I get “Failed to connect.”

Edit: After stopping the Z-Wave JS addon, the integration now shows both USBpath and a network_key, which I did not generate. It then stops with “Failed to start Z-Wave JS addon” and does not add the integration.

You can’t use openzwave with zwave js. You should remove openzwave and go the zwave js route.

Yes, I have removed the OpenZWave integration and trying to add Z-Wave JS.

Ok what do the zwave js logs say? There’s a log tab on the addon

I am getting the same error as above with zwave js.

Did you remove all references to the v1.4 integration? Did you shutdown and restart in between?


[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] config.sh: executing... 
[15:20:25] INFO: No Network Key is set, generate one...
[cont-init.d] config.sh: exited 0.
[cont-init.d] structure.sh: executing... 
[cont-init.d] structure.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[15:20:29] INFO: Successfully send discovery information to Home Assistant.
15:20:32.381 DRIVER   ███████╗ ██╗    ██╗  █████╗  ██╗   ██╗ ███████╗             ██╗ ███████╗
                      ╚══███╔╝ ██║    ██║ ██╔══██╗ ██║   ██║ ██╔════╝             ██║ ██╔════╝
                        ███╔╝  ██║ █╗ ██║ ███████║ ██║   ██║ █████╗   █████╗      ██║ ███████╗
                       ███╔╝   ██║███╗██║ ██╔══██║ ╚██╗ ██╔╝ ██╔══╝   ╚════╝ ██   ██║ ╚════██║
                      ███████╗ ╚███╔███╔╝ ██║  ██║  ╚████╔╝  ███████╗        ╚█████╔╝ ███████║
                      ╚══════╝  ╚══╝╚══╝  ╚═╝  ╚═╝   ╚═══╝   ╚══════╝         ╚════╝  ╚══════╝
15:20:32.399 DRIVER   version 6.5.0
15:20:32.402 DRIVER

That is when I start the zwave js addon, but then the integration gives me the error “Failed to connect.”

Yes, according to post above:
I have followed the steps above deleting the old zwave integration, removed the integration in configuration.yaml, deleted all zwave related files in /config and rebooted twice, but the Z-Wave JS integration won’t install.
From my old core.config_entries I have:

"usb_path": "/dev/ttyACM0"
"network_key": null

And in the addon you configured it properly?

I belive so, but after a refresh, I find the following in the log file:

15:20:32.402 DRIVER   
<--- Last few GCs --->
[272:0x74263200]   284295 ms: Scavenge 229.5 (231.2) -> 229.1 (231.2) MB, 7.2 / 0.0 ms  (average mu = 0.184, current mu = 0.123) task 
[272:0x74263200]   284325 ms: Scavenge 229.5 (231.2) -> 229.2 (231.2) MB, 6.3 / 0.0 ms  (average mu = 0.184, current mu = 0.123) task 
[272:0x74263200]   284358 ms: Scavenge 229.6 (232.2) -> 229.2 (232.4) MB, 6.8 / 0.0 ms  (average mu = 0.184, current mu = 0.123) task 
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

That’s the wrong usb string. AMA vs ACM.

Click the drop down and select the correct usb. It might be the absolute string, which will differ from the ACM.

I see that now, but the string I want: /dev/ttyACM0 is not available in the list.

And still no zwave js in integrations, just the addon.

Then select the one with your usb stick, read my reply above

Sorry if I don’t follow, I was under the impression that my USB stick was at the same address as I used with zwave 1.4, i.e. /dev/ttyACM0. The ones available in the list are:

/dev/ttyAMA0
/dev/serial/by-id/usb-0658_0200-if00
/dev/serial/by-id/usb-RFXCOM_RFXtrx433_A11I6GZ0-if00-port0

Trying No. 2 now.
Edit: Same error, “Failed to connect.”

It’s most likely the second one

After some restarts of the addon, the integration suddenly went through with the No 2 path above. I’ll see what I get with it now.
Thanks