id
TypeScriptget id(): stringSwift declarationlet id: UUIDA unique identifier for the venue. Use this identifier to submit ``ElectricalLoadEvent``s for ``ElectricityGuidance``.
struct · iOS 26.0+ · SDK 27.1
struct EnergyVenueA physical site that uses or produces electricity at that location.
get id(): stringSwift declarationlet id: UUIDA unique identifier for the venue. Use this identifier to submit ``ElectricalLoadEvent``s for ``ElectricityGuidance``.
get name(): stringSwift declarationlet name: StringThe name of the Home to which the venue corresponds.
static venueMatchingHomeUniqueIdentifier(matchingHomeUniqueIdentifier: string): Promise<EnergyVenue>Swift declarationstatic func venue(matchingHomeUniqueIdentifier: UUID) async throws -> EnergyVenueReturns an energy venue for the given HomeKit identifier. Throws ``EnergyKitError/venueUnavailable`` if a matching venue wasn't found. - Parameter homeUniqueIdentifier: The <doc://com.apple.documentation/documentation/homekit/hmhome/uniqueidentifier>.
static venueFor(id: string): Promise<EnergyVenue>Swift declarationstatic func venue(for id: UUID) async throws -> EnergyVenueReturns an electricity venue for the given venue identifier, if found. Throws ``EnergyKitError/venueUnavailable`` if the system didn't find a matching venue. - Parameter id: The venue identifier.
static venues(): Promise<Array<EnergyVenue>>Swift declarationstatic func venues() async throws -> [EnergyVenue]Returns a list of electricity venues.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
EnergyVenue.submitEvents(_:)
This declaration needs Swift generic type arguments. (no canonical witness for Event)