The process of connecting a Z-Wave device to a Z-Wave network is referred to as inclusion. The process of removing the device from a Z-Wave network is referred to as exclusion. There are various ways to complete inclusion and exclusion steps, dependant on the equipment used. The following describes the process inclusion when using "Home Assistant" with "Z-Wave JS", "ZWaveJS2MQTT" and Aeotec devices.
The following description is based on the use of the equipment and versions listed here.
Aeotec Z-Stick Gen5+ https://aeotec.com/z-wave-usb-stick/index.html
Aeotec Smart Switch 6 https://www.aeotec.com.au/aeotec-smart-switch-6.html
"Home Assistant" - core-2021.12.10
"Z-Wave JS" - Driver Version: 8.11.1, Server Version: 1.14.1
"Z-Wave JS to MQTT" - version: 0.34.1
It's possible to include devices into the Z-Wave network three different ways.
use the functionality which is built into the Aeotec Z-Stick,
use the functionality with "Z-Wave JS", or
use the functionality within "ZWaveJS2MQTT"
Method 1 is described in Aeotec documentation. I'll describe method 2 and 3 here.
Within Home Assistant go to "+ ADD DEVICES" with the following selection.
Configuration -> Devices & Services -> Integrations(tab) -> Z-Wave JS (CONFIGURE) -> + ADD DEVICES (button lower RHS)
The dialogue (as per shown here) displays and the button on the actual physical "Aeotec Smart Switch 6" can then be pressed (as per the inclusion instructions provided by Aeotec) to complete the inclusion.
Configuration -> Add-ons, Backups & Supervisor -> Add-ons (tab) -> Z-Wave JS to MQTT -> OPEN WEB UI (button lower RHS)
Within the ZWaveJS2MQTT Control Panel choose "Manage Nodes" (as per shown here).
Select the "Inclusion" option and then "NEXT". Select "NEXT" (leaving settings as default from the next two dialogue screens). The controller (the Aeotec Z-Stick) will be placed into inclusion mode and the button on the actual physical "Aeotec Smart Switch 6" can then be pressed (as per the inclusion instructions provided by Aeotec) to complete the inclusion.
The process of exclusion is similar to the process of inclusion. It's possible to complete this step via either of:
use the functionality which is built into the Aeotec Z-Stick,
use the functionality with "Z-Wave JS", or
use the functionality within "ZWaveJS2MQTT".
In addition it's also possible to factory reset the device and then remove the device (or node) using either of "Z-Wave JS" or "ZWaveJS2MQTT".