Are DNI's that were previously used hidden somewhere? I'm getting errors in my logs about conflicting DNI's and is impacting me adding new devices. When I go to "devices" and look at all the DNI's, there are no conflicting ones, which is leading me to believe there are hidden / unused DNI's registered in the database but not shown in the gui.
example logs..
java.lang.IllegalArgumentException: A device with the same device network ID exists, Please use a different DNI on line 2953 (method parse)
java.lang.IllegalArgumentException: A device with the same device network ID exists, Please use a different DNI on line 700 (method updated)
Normally you get those when you've deleted an app without deleting its child devices (good practice is for an app to take care of that for you when it is removed but sometimes the developer forgets that aspect), and then try to reinstall the app - the app will generate those errors as it's trying to recreate the child device and can't (so you'll never see two of the same DNI). What app is generating the errors?
Since both of those a custom, community integrations, I would recommend reaching out to the developers of each and ask them to help troubleshoot the issue. Parent Apps and Parent Drivers should always be programmed to remove all child devices when the parent is removed. The Hubitat platform also is designed to clean up orphaned child devices as well. If orphan child devices are the issue, this is the first I have heard of it for a few years.
I think I just realized what's going on. All my devices are randomly dropping DNI's and it's showing as null. When I'm trying to add a new wemo device, the mac shows up as null and that's where the conflict is.
I am having the same issue here. Been using Hubitat for a couple of years now. I started on a project to move devices to an alternative network and started going down the process of removing devices using an older tasmota integration with the new version that creates a parent and child device.
While everything works, I'm getting these entries in the log:
dev:24372022-06-10 06:23:09.503 pm errorjava.lang.IllegalArgumentException: A device with the same device network ID exists, Please use a different DNI on line 2953 (method parse)
I don't know for sure, but in my case it could be some conflict with older deleted devices and those being added back in with different driver....but I'm not sure.
In any event, I'd like to chase this down...any advice on how to proceed?
That issue is typically caused by having multiple devices defined on your hub with the same DNI (device network ID). With LAN devices, the DNI is often based on the physical LAN Device’s TCP/IP address or Hardware MAC address. It seemed like you were already troubleshooting this exact problem a year ago, as you mentioned changing from one Tasmota integration to another. If you’re still having this issue, it sounds like one of the old devices is still lingering on your hub.