The hub relies on the relationship between the Z-wave table, and the database. When you include a Z-wave device, it gets assigned a number.
You started from scratch (essentially) with Z-wave, and now the new number that is being assigned to a device in the Z-wave radio is associated with the old Z-wave device number.
In other words, this is what you had originally (generically speaking).
- Living room light [Z-wave node = 1] [database node = 1]
- Kitchen light [Z-wave node = 2] [database node = 2]
- Bedroom light [Z-wave node = 3] [database node = 3]
- Dining room light [Z-wave node = 4] [database node = 4]
And so on.
But what you have done by randomly pairing devices in a different order, or by not changing the DNI is this:
- Living room light [Z-wave node = 1] [database node = 4]
- Kitchen light [Z-wave node = 2] [database node = 3]
- Bedroom light [Z-wave node = 3] [database node = 1]
- Dining room light [Z-wave node = 4] [database node = 2]
Or something like that.
To prevent this, you have to break the association between the old device and the new one by changing the DNI.
Steps are as follows. I copied the relevant part of this post.
EDIT I am not sure you can fix this at this point, you might have to re-migrate and do this procedure to start fresh, so to speak.