<!--
{
  "availability" : [
    "iOS: 26.1.0 -",
    "iPadOS: 26.1.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "EnergyKit",
  "identifier" : "/documentation/EnergyKit/EnergyVenue/venue(matchingHomeUniqueIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "EnergyKit"
    ],
    "preciseIdentifier" : "s:9EnergyKit0A5VenueV5venue28matchingHomeUniqueIdentifierAC10Foundation4UUIDV_tYaKFZ"
  },
  "title" : "venue(matchingHomeUniqueIdentifier:)"
}
-->

# venue(matchingHomeUniqueIdentifier:)

Returns an energy venue for the given HomeKit identifier.

```
static func venue(matchingHomeUniqueIdentifier: UUID) async throws -> EnergyVenue
```

## Parameters

`matchingHomeUniqueIdentifier`

A HomeKit identifier for the requested venue.

## Discussion

This method throws [`EnergyKitError.venueUnavailable`](/documentation/EnergyKit/EnergyKitError/venueUnavailable) if the framework can’t provide the requested venue.

---

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)