<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMHomeDelegate/home(_:didEncounterError:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:objc(pl)HMHomeDelegate(im)home:didEncounterError:forAccessory:"
  },
  "title" : "home(_:didEncounterError:for:)"
}
-->

# home(_:didEncounterError:for:)

Tells the delegate that a configured accessory encountered an error.

```
optional func home(_ home: HMHome, didEncounterError error: any Error, for accessory: HMAccessory)
```

## Parameters

`home`

The home.

`error`

The error encountered by the accessory.

`accessory`

The accessory that encountered the error.

## Discussion

The delegate should check whether the accessory is blocked.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)