Hi, I detached my zwave stick from my Intel NUC with proxmox and HassOS on top of it.
Now after reinserting the stick the zwave network disappeared, even after a restart. From the log seems not present in the USB port, but I reconnected in the same USB.
What happened?
How to get the correct USB from HASSOS?
2019-12-19 14:39:25 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Z-Wave (import from configuration.yaml) for zwave
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/openzwave/option.py”, line 78, in init
raise ZWaveException(u"Can’t find device %s : %s" % (device, traceback.format_exception(*sys.exc_info())))
openzwave.object.ZWaveException: "Zwave Generic Exception : Can’t find device /dev/ttyACM0 : ['NoneType: None\n
You should not be removing the Zwave stick from the host. When adding zwave devices to your network, go to Configuration -> Zwave -> Add-Node (or Add-Node Secure).
I suspect if you do a complete shutdown and startup of the system with the zwave stick inserted, you should get it back.
If you remove the USB stick and re-insert it, often it will have a new path, incremented by one. /dev/ttyACM0 will change to /dev/ttyACM1. As @dap35 mentions, rebooting the host will solve that, the name will go back to ACM0.
A better long term solution would be to use a by-id path instead, which would allow unplugging and re-plugging (the path will not change). An Aeotec Z-Stick (and friends) usually is /dev/serial/by-id/usb-0658_0200-if00. A Nortek Z-wave/Zigbee combo will have something similar. The hardware command or UI page will show the paths.
With the recent releases of HassOS, you can see the deviceID from the Web UI in HassIO -> Host Systems -> Hardware. But as I mentioned, use the WebUI to add your devices. In fact, if you are adding devices in secure mode, this can not be done from the zwave stick, only via HomeAssistant.
As long as the new device is in range of your zwave mesh, when you use the HA menu as I outlined above, it is the same as if you had the stick and pushed the button. It is also one of the reasons to have some powered zwave devices in your fabric, since they extend the coverage of the zwave fabric.
NWI == Network Wide Inclusion. Older, mostly non-Z-Wave Plus devices, that do not support NWI must be included directly by the controller, inclusion cannot be routed through other devices. This is why for old devices many manuals tell you to get close to the controller when including.
My wording was a little unclear, what I meant was that the device has to be within direct range of the controller (no hops). You shouldn’t use the button on the stick, use HA and the Add Node button. The Aeotec is the only controller that has this capability anyways, so it’s not an option for any other brand of controller.
There are 3 types of inclusion, Low Power, High Power, and NWI [12]. OZW defaults to High Power + NWI. Low or High power mode require the device to be within direct range of the controller, whereas NWI allows the inclusion process to be routed through existing nodes (which must also support NWI), which means it can be further away.
If you have an older device that doesn’t support NWI and the installed location is out of direct range of the controller, than you must bring the device within a few feet of the “hub” and include it, or move the “hub” to the device. With High Power mode you may get away with including it further away, it’s heavily dependent on your particular environment (walls, materials, objects, etc.).
Of course in either case (NWI or not), if the device in its installed location is out of direct range you will need mains-powered devices in-between to repeat and route messages. NWI let’s you skip the hassle of moving things around.
In my case, I have some Schlage locks that don’t reach the controller directly and now that I moved to a server it’s not fun including such devices. Is it possible to shutdown Hass, remove the stick, put it in a laptop or something, include the device, put stick back in Hass machine with no ill effects?