Z-Wave JS - Device not showing in automation UI (but in YAML) after been replaced

I´m not quite sure how to explain this in a proper way, but I do my best…

I´m trying to figure out the proper way to replace a dead Z-Wave node and still keep the automations intact.
After some playing around I have found two behaviors that I don´t understand and would appreciate if someone could help to explain.

What I have done:

  1. Include a Telldus TZWP-102 Z-Wave switch to Z-Wave JS through the UI. (Works as expected)
  2. Make a simpel test automation to send a notification then the switch is turned on.
  3. Pull out the switch causing it to be marked as dead i HA.
  4. Remove the “dead” node from Z-Wave JS by deleting it (not remove/exclude as it is “dead”)
  5. Factory reset the switch.
  6. Include the switch again through the UI.

After above steps following appear:

  • The inclusion to replace the “dead” node looks like it was succeeded, but then showing the device it is not correct with a lot missing. No brand, named as “Node [device number]” instead of “Telldus socket and energy meter”, entities missing, and so on. Waiting some time and/or interview it again may add some entity but it is not working correctly.
    Sometimes it shows to be a part of the test automation in step 2.

  • The corrupt node is able to been removed/excluded normally through the UI.

  • Include the device a second time makes it appear correctly, but it is not showed as a part of any automation.
    However, the automation looks lite it works!
    Editing the automation shows that nothing is used as trigger, but switching to YAML the node shows up in the code.

  • Am I doing something wrong then replacing a dead node then it looks like I have to add it twice?

  • Do I have to do something more to make the replaced node to show up in the UI?

/Anders