Z-wave device added but doesn't exist

I added a new z-wave device (zcombo smoke alarm) successfully via the z-wave JS UI integration. After the interview results showing successfull I clicked “view device” and I got an error “Device / service does not exist”. So I went to the to the Z-wave JS UI add-on and opened the web UI and in here I see that a new device was created and working fine with ID 42. So I restarted the Z-wave JS UI integration and navigated to the devices for this integration and it wasn’t in the list. I checked the filter which auto filters disabled devices but this did not change anything. Then I view the entities for the z-wave integration and I found several for the device which is very odd. When I click the gear icon on any of those entities it’s an empty modal window and if i click the the 3 vertical dots and view device, i get the same error mentioned above. I view the core, supervisor z-wave JS addon and integration logs and don’t see any errors.

At this point I decided somthing was very wrong and maybe I should start over.
I went back to the integration and excluded and then re-added the device. This time I had the same symptoms with the only difference being that the add-on web ui showed the device had ID 43. I also noticed that when in the integration page, it says there are 39 devices but if I click configure, it says there are 40 devices.

Other things to mention. The controller is a silicon labs 700 series connected via USB and the network is stable for other devices. The firmware is 7.21.4 which is recommended for stability. A couple months ago I removed all of my z-wave devices and re-added many of them. What I noticed is that the old IDs are somehow still in some backend database so when I get around to adding a device, it will name it one of the old devices I had previously removed. I see this with the smoke detector: when it was ID 42 it named it ‘front door’ and when i removed it and added it at 43, it named it ‘backyard slider’. I don’t usually have any issue with this because I just rename the device. But in this case I can’t rename it because HASS says it doesn’t exist so I’m stumped.

I am pretty tech savy and am willing to use a CLI to edit the backend database but I don’t know where that is and what software is needed. Any tips would be appreciated.

I was just poking around in the add-on web UI and found the nodes.json file (see below). Note that ID 42 is missing so presumably when I removed the device the first time the DB was edited and it was removed from this file. I don’t see a way to edit this file but it seems like I should delete anything that isn’t in use and maybe that will fix it?

  "0xe90fe086": {
    "2": {
      "name": "kc workbench light",
      "loc": "garage"
    },
    "3": {
      "name": "Under cabinet lights",
      "loc": "Kitchen"
    },
    "4": {
      "name": "Pendant lights",
      "loc": "Kitchen"
    },
    "5": {
      "name": "Kitchen Cans",
      "loc": "Kitchen"
    },
    "6": {
      "name": "Backyard lights",
      "loc": "Family room"
    },
    "7": {
      "name": "Hallway lights",
      "loc": "Family room"
    },
    "8": {
      "name": "double car motion",
      "loc": "garage"
    },
    "9": {
      "name": "Built-in lights",
      "loc": "Family room"
    },
    "10": {
      "name": "Family room cans",
      "loc": "Family room"
    },
    "11": {
      "name": "Backyard lights 2",
      "loc": "Dining room"
    },
    "12": {
      "name": "Closet door",
      "loc": "Living room"
    },
    "13": {
      "name": "Dining Chandelier",
      "loc": "Dining room"
    },
    "14": {
      "loc": "Garage",
      "name": "Kev Workbench"
    },
    "15": {
      "name": "South speaker",
      "loc": "Backyard"
    },
    "16": {
      "name": "Hallway Light"
    },
    "18": {
      "name": "Unused String Light Switch"
    },
    "22": {
      "name": "bbq speakers"
    },
    "24": {
      "name": "North Motion Light"
    },
    "25": {
      "name": "Kitchen Cabinet Lights"
    },
    "27": {
      "name": "Dining Room Light"
    },
    "28": {
      "name": "Living Room Motion"
    },
    "29": {
      "name": "Built-in Switch"
    },
    "31": {
      "name": "Pendant Lights"
    },
    "35": {
      "name": "Main Garage Lights"
    },
    "36": {
      "name": "South Backyard Speaker"
    },
    "37": {
      "name": "Garage Entry Door"
    },
    "38": {
      "name": "Upstairs Hall Lights"
    },
    "39": {
      "name": "Stairs Chandelier"
    },
    "43": {
      "name": "Backyard Slider"
    },
    "44": {
      "name": "Dining Room Doors"
    },
    "45": {
      "name": "Front Door Sensor"
    },
    "51": {
      "name": "Outer Gate"
    },
    "52": {
      "name": "Backyard Inner Gate"
    },
    "54": {
      "name": "Jacuzzi Power Sensor"
    },
    "55": {
      "name": "Backyard Light Switch"
    },
    "57": {
      "name": "Dining Room Lock"
    },
    "58": {
      "name": "Front Door Lock"
    },
    "59": {
      "name": "Kitchen Smoke Alarm"
    },
    "60": {
      "name": "Upstairs Hall Smoke Detector"
    },
    "61": {
      "name": "Paige Smoke Detector"
    },
    "63": {
      "name": "Master smoke detector"
    },
    "74": {
      "name": "Single Car Motion"
    },
    "75": {
      "name": "Double Car Motion"
    },
    "76": {
      "name": "Master Window",
      "loc": ""
    },
    "82": {
      "name": "Guest Bedroom Smoke"
    }
  }
}```

have you restarted HA itself yet?

Uhh ofcourse not. And … That worked? The device is found now. What the heck? Haha thanks :slight_smile:

I’ve needed to do that with plenty of zwave devices with zwavejs. :smile:

I’m glad I could help.