---
title: HMError.Code.renameWithSimilarName
framework: homekit
role: symbol
role_heading: Case
path: homekit/hmerror/code/renamewithsimilarname
---

# HMError.Code.renameWithSimilarName

An attempt to rename an object with its current name.

## Declaration

```swift
case renameWithSimilarName
```

## See Also

### Collision errors

- [HMError.Code.homeWithSimilarNameExists](homekit/hmerror/code/homewithsimilarnameexists.md)
- [HMError.Code.objectWithSimilarNameExists](homekit/hmerror/code/objectwithsimilarnameexists.md)
- [HMError.Code.objectWithSimilarNameExistsInHome](homekit/hmerror/code/objectwithsimilarnameexistsinhome.md)
