<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMHome/builtinActionSet(ofType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HMHome(im)builtinActionSetOfType:"
  },
  "title" : "builtinActionSet(ofType:)"
}
-->

# builtinActionSet(ofType:)

Retrieves the builtin action set for the specified type.

```
func builtinActionSet(ofType actionSetType: String) -> HMActionSet?
```

## Parameters

`actionSetType`

Type of the builtin action set. Supported action set types are [`HMActionSetTypeWakeUp`](/documentation/HomeKit/HMActionSetTypeWakeUp), [`HMActionSetTypeSleep`](/documentation/HomeKit/HMActionSetTypeSleep), [`HMActionSetTypeHomeDeparture`](/documentation/HomeKit/HMActionSetTypeHomeDeparture) and [`HMActionSetTypeHomeArrival`](/documentation/HomeKit/HMActionSetTypeHomeArrival).

## Return Value

The builtin action set corresponding to the type argument.

## Discussion

Returns `nil` if no action set is found.

---

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)