If the devices are both Z-Wave and the original device is truly failed, then a Z-Wave Replace will probably do it (accessible from Settings > Z-Wave Details, but again, the node has to be failed first--which a "Refesh" will check and likely mark it as such after one or two tries if it isn't already). I've had mixed luck with this suceeding, personally, but some report better luck. If you're on a C-5 or earlier, this isn't an option, but on any model hub you could also do this with a secondary controller should you have/want one.
For Zigbee, you might be able to do it by swapping the Zigbee ID and Device Network ID (the old device to match the new), but I've never tried that, and it's definitely not "official" and may not work.
Otherwise, the typical advice is as above: swap it out in all apps, then remove the "old" device.
That being said, I think staff teased the idea of considering some hub-wide "device replace" feature in another thread not too long ago. I'm not sure if they ever got as far as serious consideration, and there was certainly no timeline, but that was the most hopeful I ever recall feeling about this feature. I think it would be helpful for cases like these--which admittedly aren't day-to-day occurrences for most people but still would make an already-frustrating situation less frustrating when it does happen.
Ya some option to say replace sensor/switch/light A with sensor/switch/light B would be dynamite! What a time saver when needing to replace or even upgrade to something new.
It does work. But it is fairly convoluted because you can't have two of the same ID simultaneously. You end up having to copy the old ID, change the old ID to something not in use (watch out!), and save. Then you can paste the old ID into the new device and save.
I have done this multiple times for Iris V1 contact sensors. There is some bug where when they fall of the network, and you can't rediscover them. The UI thinks (and says) that they are rediscovered but they don't work. So I have 1 spare where I play "round robin" to get them back into the system.
Release notes for 2.3.1 indicate that this is now a built-in feature. @bravenel looking at the interface it's clear that this tool will swap devices in local apps. Will it also swap devices that are shared via hub mesh?
Will this feature, to swap devices, works if I replace my C4 hubs for C7, restore a backup to them from the C4 and replace all devices one by one pairing them into the new C7 radios?
I want the new features of the new radios, I have some Ring sensors around and others, but I don't know how to migrate and start from scratch, if in the past I had many issues, now will be worse, my health condition is worse and I don't remember anything I did.
I know I should open a new thread about this, but maybe a yes or no for answer helps me to start buying new hubs.
So when you restore a C4 backup to a C7, none of those devices would work. For Zigbee devices you can simply reset the device, put the hub into pairing, and it will reconnect the device to the ones you had on the C4. For Z-Wave, you'd have to pair the Z-Wave device as a new device, then swap it for the old device. That should work.
Yes, I know, the zigbee was easier but the zwave was the worst, but now with the new feature of swapping devices, I don't have to touch the rules, if I touch anything at this point it will stop working, I'm very happy because HE has been working perfectly the last 2 years, I don't have many fancy rules but I have more than 100 devices connected and I use HSM also. Thank you again for answering, I know the community has grown a lot, is not the same as I started almost 4 years ago that I almost had you exclusively for me haha. Take care Bruce. Best Regards.
@bravenel thanks for the development on this. I appreciate it's been a difficult job for you, however it's a game changer for the community. This type of support is exactly why Hubitat differs from the lesser hubs in the market. Awesome!!!!
EDIT, also this is one of two enhancements I've requested. The other being "random" being available as a "delay" when turning a switch on.
Outstanding and thanks for listening to your members