---
title: objectAssociatedToAnotherHome
framework: homekit
role: symbol
role_heading: Type Property
path: homekit/hmerror/objectassociatedtoanotherhome
---

# objectAssociatedToAnotherHome

An attempt to associate an object with a home when it’s already associated with another home.

## Declaration

```swift
static var objectAssociatedToAnotherHome: HMError.Code { get }
```

## See Also

### Detecting association errors

- [invalidAssociatedServiceType](homekit/hmerror/invalidassociatedservicetype.md)
- [objectAlreadyAssociatedToHome](homekit/hmerror/objectalreadyassociatedtohome.md)
- [objectNotAssociatedToAnyHome](homekit/hmerror/objectnotassociatedtoanyhome.md)
