---
title: "builtinActionSet(ofType:)"
framework: homekit
role: symbol
role_heading: Instance Method
path: "homekit/hmhome/builtinactionset(oftype:)"
---

# builtinActionSet(ofType:)

Retrieves the builtin action set for the specified type.

## Declaration

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

## Parameters

- `actionSetType`: Type of the builtin action set. Supported action set types are doc://com.apple.homekit/documentation/HomeKit/HMActionSetTypeWakeUp, doc://com.apple.homekit/documentation/HomeKit/HMActionSetTypeSleep, doc://com.apple.homekit/documentation/HomeKit/HMActionSetTypeHomeDeparture and doc://com.apple.homekit/documentation/HomeKit/HMActionSetTypeHomeArrival.

## Return Value

Return Value The builtin action set corresponding to the type argument.

## Discussion

Discussion Returns nil if no action set is found.

## See Also

### Creating action sets

- [actionSets](homekit/hmhome/actionsets.md)
- [addActionSet(withName:completionHandler:)](homekit/hmhome/addactionset(withname:completionhandler:).md)
- [removeActionSet(_:completionHandler:)](homekit/hmhome/removeactionset(_:completionhandler:).md)
- [executeActionSet(_:completionHandler:)](homekit/hmhome/executeactionset(_:completionhandler:).md)
- [HMActionSet](homekit/hmactionset.md)
