Hi,
In ioBroker it was possible to use a “replace” function if a device was bugged and needed to be reset, or if a device was defective and had to be replaced with a new one (but the same model).
How can I do that with Home Assistant? I would like to keep my node number so I don’t have to change my automations.
My device is no longer responding. I would like to try a reset and re-include it, and if that doesn’t work, replace it with a new one.
If I understood correctly, this should be possible with “Z-Wave JS UI”. However, I installed the official “Z-Wave JS” add-on. Is there a reason why there are two different versions?
Node isn’t needed to replace device. Device name (in zwavejsui) is important as it determines the entity_id in HA
-Take note of device name/area in Zwavejsui
-Exclude device
-Readd device or add new device
-Name device same as device it replace in zwavejsui
-HA >> settings >> device and service >> zwave >> 3dots >> reload
-device replaced. Done
There is no one button replace in HA unfortunately but as long as you give device same name in addon/service it will get same entity_id in HA.
you have zero control over the node ID. the zwave controller decides that and it will ALWAYS just pick the next available node number and assign that. it will even do the same thing if you simply exclude the device and re-include it. for example if the old node ID was 35 and the next available is 40 then the device will get re-assigned node ID 40 when you include it again. it won’t ever use the same node ID until it uses up all the possible subsequent node ID’s (I think that is 255 but not sure) then it will start circling back around to node 1.
the best way to solve this is as mentioned is to give the device a name in zwavejs-ui. but even then you could run into issues if the entity registry in HA hasn’t been purged of the old device entity id. then you could get a new entity_id in HA with a number appended to it. At that point you need to make sure to delete the old entity_id and rename the new entity_id to be the same as the old.
All of this also assumes that you are using entity_id’s in your automations etc. if you are using device ID’s then none of what I said will help you. you’ll have to edit everything and replace the old device ID’s with the new one.
I know that the node ID is assigned automatically by the Z‑Wave controller and that we can’t manually change it. That’s just how the protocol works: every time you include a device, the controller gives it the next available ID.
What I was referring to is the “Replace Failed Node” function in ioBroker. That feature allowed you to replace a failed device with a new one while keeping the same node ID. In other words, instead of assigning a new number, the controller would reuse the old ID for the replacement device. This was really useful because it meant all existing automations, associations, and references to that node stayed intact without having to reconfigure everything.
So:
Normal inclusion → new node ID is always assigned.
Replace Failed Node → lets you swap in a new device under the same node ID, avoiding broken setups.
But do you know why i have this problem with Zwavejs UI ? see previous answer
Not sure honestly. I only ever used ZUI. No idea what is available with zwavejs. Honestly ZUI is simply best as you may add name and area and this propogates to HA. No reason to use zwavejs.