New HA user. Can’t get Z-Wave up and running. I initially did the Z-Wave add-in integration, but realized what I wanted was more function/control, so I added Z-Wave JS UI. I’ve been trying to get that to work with my Aeotec Z-Wave Stick Gen5+ (ZW090) with the version 1.02 firmware on my 4GB Raspberry Pi with no luck.
I’ve tried stopping the Z-Wave JS add-in, I’ve tried disabling it, but that doesn’t seem to help.
I’m getting these messages:
Driver: Failed to open the serial port: Error Resource temporarily unavailable Cannot lock port (ZW0100)
Error: Driver: Failed to open the serial port: Error Resource temporarily unavailable Cannot lock port (ZW0100)
I don’t know if this is the issue but when I look at /dev/AMA0, it shows owner as root but group as “audio” and not “tty”.
You can’t run both add-ons at the same time. The integration will try to keep the official add-on running at all times. Either uninstall the integration and the add-ons, and start over with ZUI only, or follow the docs to switch:
I’m a little fuzzy on terms like integration vs add-ons. I’ve uninstalled the Z-Wave JS add-on. Not sure how or where to uninstall the integration. I keep going from screen to screen trying to find stuff and it’s very confusing as to where to disable things, etc. Right now, I’m only running the Z-Wave JS UI and it’s still telling me the port is locked.
I tried following the instructions to switch from JS to JS UI, unchecked using the Supervisor, but when I go to add the Z-Wave JS integration back in, it stops at the point where it’s asking for to connect to the URL ws://localhost:3000. It says can’t connect. I’ve also tried 0.0.0.0, still no dice.
In this case, the add-ons are communicating with the Z-Wave controller and hosting a server, and the Z-Wave integration talks to a server running in the add-on, instead of directly to the controller.
I’ve uninstalled the Z-Wave JS add-on. Not sure how or where to uninstall the integration.
Did you not install the integration in the first place to get to this point? Integrations are added/removed/configured in Settings → Devices & Services. Presumably, you installed the integration and said that you wanted to use the Supervisor add-on, and if you did that, HA will not stopping re-installing it, even if you uninstall it. To break this cycle requires either uninstalling the integration, or re-configuring it.
If you’re running full Home Assistant with supervisor, you will be presented with a dialog that asks if you want to use the Z-Wave JS Supervisor add-on. You must uncheck this box if you are running the Z-Wave JS server in any manner other than the official Z-Wave JS add-on, including using Z-Wave JS UI add-on.
If you’re not running the supervisor or you’ve unchecked the above-mentioned box, you will be asked to enter a websocket URL (defaults to ws://localhost:3000). It is very important that you fill in the correct (Docker) IP/hostname here. For example for the Z-Wave JS UI add-on this is ws://a0d7b954-zwavejs2mqtt:3000.
I was positive. I had a GEN 5+, but just to be sure I used a USB hub. And voilà! It now detected the correct stick, and added it to my system. There are still some issues, but I will create a new post for them as I have time.
Thank you very much for your assistance. It’s greatly appreciated!
I am in the same situation. I installed the Z-Wave JS add-on, and set up my network and devices, and now would like to use the Z-Wave JS UI now that I have found out about it.
I have added the same keys used in the JS integration into the JS UI integration, set the port and the server is set to ws://core-zwave-js/
Can I just stop the one add-on and start the UI add-on; will the devices still be connected or will I need to go through the process of adding them again?
I stopped the Z-Wave JS add-on, and it looks like the JS UI add on is working properly.
Edit: I was mistaken, devices were showing up on the UI, but all my dashboards and automations didn’t. I disabled the JS UI add on for now, and everything is back to where it was.
I’ll need to figure out more on how to properly set this up when I have more time. Any suggestions welcome.
To clarify, I disable the current JS integration, and then after configuring the JS UI add-on, I don’t enable it, I have to go through the “Add Integration” process?
I had just re-enabled it before, I’m guessing that was the issue.
Ugh, still no luck. Not sure what I did wrong (I’m sure I had the correct address, that’s the only thing I can assume was the issue), but I did find your other writeup on this, I’ll try that again this weekend.