---
title: accessoryPairingFailed
framework: homekit
role: symbol
role_heading: Type Property
path: homekit/hmerror/accessorypairingfailed
---

# accessoryPairingFailed

An attempt to pair with the accessory has failed.

## Declaration

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

## See Also

### Detecting communication errors

- [accessDenied](homekit/hmerror/accessdenied.md)
- [accessoryCommunicationFailure](homekit/hmerror/accessorycommunicationfailure.md)
- [accessorySentInvalidResponse](homekit/hmerror/accessorysentinvalidresponse.md)
- [clientRequestError](homekit/hmerror/clientrequesterror.md)
- [communicationFailure](homekit/hmerror/communicationfailure.md)
- [dataResetFailure](homekit/hmerror/dataresetfailure.md)
- [timedOutWaitingForAccessory](homekit/hmerror/timedoutwaitingforaccessory.md)
- [partialCommunicationFailure](homekit/hmerror/partialcommunicationfailure.md)
