We should be able to replace a device by another one with similar entities, in case of failure, upgrade or non-static IDs when batteries fail (rfxcom sensors for example) and still retain most history and automations.
I know some integrations can do it, like rfxcom, but it seems like a ugly hack (HA logs are often complaining) and is quite limited (same model).
There should be a migration helper, listing all entities from the old device, all entities from the new device, and a way to map or ignore them, and retain history.
Listing linked automation and incompatibilities, with migration, would be nice too.