Whenever restart the Home Assistant docker container it tells me that there is no USB-stick in the server. I then have to plug the stick out, then in for it to work again. The Z-Wave stick is a Aeotec Z-Stick Gen5
I’m running Docker directly installed on Ubuntu Server 18.04 which is running on a computer (no virtualization).
I understand what you are are saying and I would agree normally to check to make sure of the bendor ID and such. And that could end up being good advice.
But if he is running an Aeotec Z-Stick Gen 5 then the info I gave him should work. As far as I know they all have that same info. Everything I’ve seen in researching this gives the same info for that stick. So copy and pasting my example should work.
However it is possible that they may have changed it recently so your above advice still is good to check.
And yes he could name the symlink whatever he wants. I just wanted to keep things simple and post up exactly what I had that worked for me. I’m not afraid of a little extra typing.
As to the last part, that will work as long as the USB stick is always assigned that address. If it changes on a reboot then he will lose functionality unless he makes the name persistent. Which is the point of the udev rule.
Doh, good point. I run the z-wave.me usb stick, so of course my values are different. I tried to make udev rules for the NUC I just moved to but that didn’t seem to work. I have rebooted twice and still have it at /dev/ttyACM0. If it gives me any issues I will pursue making the udev rules work right.
No problems with extra typing, I just like to keep things tidy. I think OP tried this and didn’t read the official hass z-wave docs or the docker install example. he could have put two and two together as to why he had this wrong, with correct examples commented out.
Thanks for the discussion. As it turns out the udev-rule didn’t work for me, and I don’t know why. I did check the vendor id and spelling and whatnot. I probably did something wront, but it doesn’t matter. I changed back to
/dev/ttyACM0:/dev/ttyACM0
and now it works. Even when i tear down, and rebuild the ha container. It still doesn’t work when restarting the server. I then have to unplug and plug the usb, but I can live with that - I’m not planning on restarting the server that often.
By using /dev/serial/by-id there is no need to create a udev rule. The device will work even if you move your configuration to a new machine. ls /dev/serial/by-id and put the resultant path in your config